From ded4957ec42791c84753bbf30bbb23ef3fe5ebde Mon Sep 17 00:00:00 2001 From: Harsha Nalluru Date: Thu, 14 Mar 2024 16:21:31 -0700 Subject: [PATCH 01/20] [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 02/20] [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 03/20] [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 04/20] [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 05/20] [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 06/20] 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 07/20] [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 08/20] [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 09/20] [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 10/20] 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 11/20] [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 12/20] [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 3ca120042cd3e9e3a38468df7f0ee0c55f11f7be Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 18 Mar 2024 10:54:37 -0400 Subject: [PATCH 13/20] Sync eng/common directory with azure-sdk-tools for PR 7841 (#28948) Sync eng/common directory with azure-sdk-tools for PR https://github.com/Azure/azure-sdk-tools/pull/7841 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) Co-authored-by: Praveen Kuttappan --- .../templates/steps/create-apireview.yml | 19 +- eng/common/scripts/Create-APIReview.ps1 | 307 ++++++++++++------ .../scripts/Helpers/ApiView-Helpers.ps1 | 87 ++++- 3 files changed, 300 insertions(+), 113 deletions(-) diff --git a/eng/common/pipelines/templates/steps/create-apireview.yml b/eng/common/pipelines/templates/steps/create-apireview.yml index e85006943772..c69d05d5ae31 100644 --- a/eng/common/pipelines/templates/steps/create-apireview.yml +++ b/eng/common/pipelines/templates/steps/create-apireview.yml @@ -2,28 +2,37 @@ parameters: ArtifactPath: $(Build.ArtifactStagingDirectory) Artifacts: [] ConfigFileDir: $(Build.ArtifactStagingDirectory)/PackageInfo + MarkPackageAsShipped: false + GenerateApiReviewForManualOnly: false + ArtifactName: 'packages' + PackageName: '' steps: # ideally this should be done as initial step of a job in caller template # We can remove this step later once it is added in caller - template: /eng/common/pipelines/templates/steps/set-default-branch.yml - - ${{ each artifact in parameters.Artifacts }}: + # Automatic API review is generated for a package when pipeline runs irrespective of how pipeline gets triggered. + # Below condition ensures that API review is generated only for manual pipeline runs when flag GenerateApiReviewForManualOnly is set to true. + - ${{ if or(ne(parameters.GenerateApiReviewForManualOnly, true), eq(variables['Build.Reason'], 'Manual')) }}: - task: Powershell@2 inputs: filePath: $(Build.SourcesDirectory)/eng/common/scripts/Create-APIReview.ps1 arguments: > + -ArtifactList ('${{ convertToJson(parameters.Artifacts) }}' | ConvertFrom-Json | Select-Object Name) -ArtifactPath ${{parameters.ArtifactPath}} - -APIViewUri $(azuresdk-apiview-uri) + -ArtifactName ${{ parameters.ArtifactName }} -APIKey $(azuresdk-apiview-apikey) - -APILabel "Auto Review - $(Build.SourceVersion)" - -PackageName ${{artifact.name}} + -PackageName '${{parameters.PackageName}}' -SourceBranch $(Build.SourceBranchName) -DefaultBranch $(DefaultBranch) -ConfigFileDir '${{parameters.ConfigFileDir}}' + -BuildId $(Build.BuildId) + -RepoName '$(Build.Repository.Name)' + -MarkPackageAsShipped $${{parameters.MarkPackageAsShipped}} pwsh: true workingDirectory: $(Pipeline.Workspace) - displayName: Create API Review for ${{ artifact.name}} + displayName: Create API Review condition: >- and( succeededOrFailed(), diff --git a/eng/common/scripts/Create-APIReview.ps1 b/eng/common/scripts/Create-APIReview.ps1 index 3d1f549458b7..cdf467180269 100644 --- a/eng/common/scripts/Create-APIReview.ps1 +++ b/eng/common/scripts/Create-APIReview.ps1 @@ -1,27 +1,37 @@ [CmdletBinding()] Param ( [Parameter(Mandatory=$True)] - [string] $ArtifactPath, + [array] $ArtifactList, [Parameter(Mandatory=$True)] - [string] $APIViewUri, + [string] $ArtifactPath, [Parameter(Mandatory=$True)] - [string] $APIKey, - [Parameter(Mandatory=$True)] - [string] $APILabel, - [string] $PackageName, + [string] $APIKey, [string] $SourceBranch, [string] $DefaultBranch, - [string] $ConfigFileDir = "" + [string] $RepoName, + [string] $BuildId, + [string] $PackageName = "", + [string] $ConfigFileDir = "", + [string] $APIViewUri = "https://apiview.dev/AutoReview", + [string] $ArtifactName = "packages", + [bool] $MarkPackageAsShipped = $false ) +Set-StrictMode -Version 3 +. (Join-Path $PSScriptRoot common.ps1) +. (Join-Path $PSScriptRoot Helpers ApiView-Helpers.ps1) + # 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, $packageVersion) +function Upload-SourceArtifact($filePath, $apiLabel, $releaseStatus, $packageVersion) { + Write-Host "File path: $filePath" + $fileName = Split-Path -Leaf $filePath + Write-Host "File name: $fileName" $multipartContent = [System.Net.Http.MultipartFormDataContent]::new() $FileStream = [System.IO.FileStream]::new($filePath, [System.IO.FileMode]::Open) $fileHeader = [System.Net.Http.Headers.ContentDispositionHeaderValue]::new("form-data") $fileHeader.Name = "file" - $fileHeader.FileName = $packagename + $fileHeader.FileName = $fileName $fileContent = [System.Net.Http.StreamContent]::new($FileStream) $fileContent.Headers.ContentDisposition = $fileHeader $fileContent.Headers.ContentType = [System.Net.Http.Headers.MediaTypeHeaderValue]::Parse("application/octet-stream") @@ -41,6 +51,13 @@ function Submit-APIReview($packagename, $filePath, $uri, $apiKey, $apiLabel, $re $versionContent.Headers.ContentDisposition = $versionParam $multipartContent.Add($versionContent) Write-Host "Request param, packageVersion: $packageVersion" + + $releaseTagParam = [System.Net.Http.Headers.ContentDispositionHeaderValue]::new("form-data") + $releaseTagParam.Name = "setReleaseTag" + $releaseTagParamContent = [System.Net.Http.StringContent]::new($MarkPackageAsShipped) + $releaseTagParamContent.Headers.ContentDisposition = $releaseTagParam + $multipartContent.Add($releaseTagParamContent) + Write-Host "Request param, setReleaseTag: $MarkPackageAsShipped" if ($releaseStatus -and ($releaseStatus -ne "Unreleased")) { @@ -52,6 +69,7 @@ function Submit-APIReview($packagename, $filePath, $uri, $apiKey, $apiLabel, $re Write-Host "Request param, compareAllRevisions: true" } + $uri = "${APIViewUri}/UploadAutoReview" $headers = @{ "ApiKey" = $apiKey; "content-type" = "multipart/form-data" @@ -60,7 +78,6 @@ function Submit-APIReview($packagename, $filePath, $uri, $apiKey, $apiLabel, $re try { $Response = Invoke-WebRequest -Method 'POST' -Uri $uri -Body $multipartContent -Headers $headers - Write-Host "API Review URL: $($Response.Content)" $StatusCode = $Response.StatusCode } catch @@ -72,119 +89,225 @@ function Submit-APIReview($packagename, $filePath, $uri, $apiKey, $apiLabel, $re return $StatusCode } +function Upload-ReviewTokenFile($packageName, $apiLabel, $releaseStatus, $reviewFileName, $packageVersion) +{ + $params = "buildId=${BuildId}&artifactName=${ArtifactName}&originalFilePath=${packageName}&reviewFilePath=${reviewFileName}" + $params += "&label=${apiLabel}&repoName=${RepoName}&packageName=${packageName}&project=internal&packageVersion=${packageVersion}" + if($MarkPackageAsShipped) { + $params += "&setReleaseTag=true" + } + $uri = "${APIViewUri}/CreateApiReview?${params}" + if ($releaseStatus -and ($releaseStatus -ne "Unreleased")) + { + $uri += "&compareAllRevisions=true" + } -. (Join-Path $PSScriptRoot common.ps1) + Write-Host "Request to APIView: $uri" + $headers = @{ + "ApiKey" = $APIKey; + } -Write-Host "Artifact path: $($ArtifactPath)" -Write-Host "Package Name: $($PackageName)" -Write-Host "Source branch: $($SourceBranch)" -Write-Host "Config File directory: $($ConfigFileDir)" + try + { + $Response = Invoke-WebRequest -Method 'GET' -Uri $uri -Headers $headers + $StatusCode = $Response.StatusCode + } + catch + { + Write-Host "Exception details: $($_.Exception)" + $StatusCode = $_.Exception.Response.StatusCode + } -$packages = @{} -if ($FindArtifactForApiReviewFn -and (Test-Path "Function:$FindArtifactForApiReviewFn")) -{ - $packages = &$FindArtifactForApiReviewFn $ArtifactPath $PackageName + return $StatusCode } -else + +function Get-APITokenFileName($packageName) { - Write-Host "The function for 'FindArtifactForApiReviewFn' was not found.` - Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.` - See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure" - exit(1) + $reviewTokenFileName = "${packageName}_${LanguageShort}.json" + $tokenFilePath = Join-Path $ArtifactPath $packageName $reviewTokenFileName + if (Test-Path $tokenFilePath) { + Write-Host "Review token file is present at $tokenFilePath" + return $reviewTokenFileName + } + else { + Write-Host "Review token file is not present at $tokenFilePath" + return $null + } } -# Check if package config file is present. This file has package version, SDK type etc info. -if (-not $ConfigFileDir) +function Submit-APIReview($packageInfo, $packagePath) { - $ConfigFileDir = Join-Path -Path $ArtifactPath "PackageInfo" + $packageName = $packageInfo.Name + $apiLabel = "Source Branch:${SourceBranch}" + + # Get generated review token file if present + # APIView processes request using different API if token file is already generated + $reviewTokenFileName = Get-APITokenFileName $packageName + if ($reviewTokenFileName) { + Write-Host "Uploading review token file $reviewTokenFileName to APIView." + return Upload-ReviewTokenFile $packageName $apiLabel $packageInfo.ReleaseStatus $reviewTokenFileName $packageInfo.Version + } + else { + Write-Host "Uploading $packagePath to APIView." + return Upload-SourceArtifact $packagePath $apiLabel $packageInfo.ReleaseStatus $packageInfo.Version + } } -if ($packages) + +function ProcessPackage($packageName) { - foreach($pkgPath in $packages.Values) + $packages = @{} + if ($FindArtifactForApiReviewFn -and (Test-Path "Function:$FindArtifactForApiReviewFn")) { - $pkg = Split-Path -Leaf $pkgPath - $pkgPropPath = Join-Path -Path $ConfigFileDir "$PackageName.json" - if (-Not (Test-Path $pkgPropPath)) - { - Write-Host " Package property file path $($pkgPropPath) is invalid." - continue - } - # 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." - exit 1 - } - - Write-Host "Version: $($version)" - Write-Host "SDK Type: $($pkgInfo.SdkType)" - Write-Host "Release Status: $($pkgInfo.ReleaseStatus)" + $packages = &$FindArtifactForApiReviewFn $ArtifactPath $packageName + } + else + { + Write-Host "The function for 'FindArtifactForApiReviewFn' was not found.` + Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.` + See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure" + return 1 + } - # Run create review step only if build is triggered from main branch or if version is GA. - # This is to avoid invalidating review status by a build triggered from feature branch - if ( ($SourceBranch -eq $DefaultBranch) -or (-not $version.IsPrerelease)) + if ($packages) + { + foreach($pkgPath in $packages.Values) { - Write-Host "Submitting API Review for package $($pkg)" - $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') - { - Write-Host "API review is in approved status." - } - elseif ($version.IsPrerelease) + $pkg = Split-Path -Leaf $pkgPath + $pkgPropPath = Join-Path -Path $ConfigFileDir "$packageName.json" + if (-Not (Test-Path $pkgPropPath)) { - # Check if package name is approved. Preview version cannot be released without package name approval - if ($respCode -eq '202' -and $pkgInfo.ReleaseStatus -and $pkgInfo.ReleaseStatus -ne "Unreleased") - { - Write-Host "Package name is not yet approved on APIView for $($PackageName). Package name must be approved by an API approver for a beta release if it was never released a stable version." - Write-Host "You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on package name approval." - exit 1 - } - # Ignore API review status for prerelease version - Write-Host "Package version is not GA. Ignoring API view approval status" + Write-Host " Package property file path $($pkgPropPath) is invalid." + continue } - elseif (!$pkgInfo.ReleaseStatus -or $pkgInfo.ReleaseStatus -eq "Unreleased") + # Get package info from json file created before updating version to daily dev + $pkgInfo = Get-Content $pkgPropPath | ConvertFrom-Json + $version = [AzureEngSemanticVersion]::ParseVersionString($pkgInfo.Version) + if ($version -eq $null) { - Write-Host "Release date is not set for current version in change log file for package. Ignoring API review approval status since package is not yet ready for release." + 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." + return 1 } - else + + Write-Host "Version: $($version)" + Write-Host "SDK Type: $($pkgInfo.SdkType)" + Write-Host "Release Status: $($pkgInfo.ReleaseStatus)" + + # Run create review step only if build is triggered from main branch or if version is GA. + # This is to avoid invalidating review status by a build triggered from feature branch + if ( ($SourceBranch -eq $DefaultBranch) -or (-not $version.IsPrerelease) -or $MarkPackageAsShipped) { - # Return error code if status code is 201 for new data plane package - # Temporarily enable API review for spring SDK types. Ideally this should be done be using 'IsReviewRequired' method in language side - # to override default check of SDK type client - if (($pkgInfo.SdkType -eq "client" -or $pkgInfo.SdkType -eq "spring") -and $pkgInfo.IsNewSdk) + Write-Host "Submitting API Review request for package $($pkg), File path: $($pkgPath)" + $respCode = Submit-APIReview $pkgInfo $pkgPath + Write-Host "HTTP Response code: $($respCode)" + + # no need to check API review status when marking a package as shipped + if ($MarkPackageAsShipped) { - if ($respCode -eq '201') + if ($respCode -eq '500') { - Write-Host "Package version $($version) is GA and automatic API Review is not yet approved for package $($PackageName)." - Write-Host "Build and release is not allowed for GA package without API review approval." - Write-Host "You will need to queue another build to proceed further after API review is approved" - Write-Host "You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on API Approval." + Write-Host "Failed to mark package ${packageName} as released. Please reach out to Azure SDK engineering systems on teams channel." + return 1 } - else + Write-Host "Package ${packageName} is marked as released." + return 0 + } + + $apiStatus = [PSCustomObject]@{ + IsApproved = $false + Details = "" + } + $pkgNameStatus = [PSCustomObject]@{ + IsApproved = $false + Details = "" + } + Process-ReviewStatusCode $respCode $packageName $apiStatus $pkgNameStatus + + if ($apiStatus.IsApproved) { + Write-Host "API status: $($apiStatus.Details)" + } + elseif (!$pkgInfo.ReleaseStatus -or $pkgInfo.ReleaseStatus -eq "Unreleased") { + Write-Host "Release date is not set for current version in change log file for package. Ignoring API review approval status since package is not yet ready for release." + } + elseif ($version.IsPrerelease) + { + # Check if package name is approved. Preview version cannot be released without package name approval + if (!$pkgNameStatus.IsApproved) { - Write-Host "Failed to create API Review for package $($PackageName). Please reach out to Azure SDK engineering systems on teams channel and share this build details." + Write-Error $($pkgNameStatus.Details) + return 1 } - exit 1 - } + # Ignore API review status for prerelease version + Write-Host "Package version is not GA. Ignoring API view approval status" + } else { - Write-Host "API review is not approved for package $($PackageName), however it is not required for this package type so it can still be released without API review approval." + # Return error code if status code is 201 for new data plane package + # Temporarily enable API review for spring SDK types. Ideally this should be done be using 'IsReviewRequired' method in language side + # to override default check of SDK type client + if (($pkgInfo.SdkType -eq "client" -or $pkgInfo.SdkType -eq "spring") -and $pkgInfo.IsNewSdk) + { + if (!$apiStatus.IsApproved) + { + Write-Host "Package version $($version) is GA and automatic API Review is not yet approved for package $($packageName)." + Write-Host "Build and release is not allowed for GA package without API review approval." + Write-Host "You will need to queue another build to proceed further after API review is approved" + Write-Host "You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on API Approval." + } + return 1 + } + else { + Write-Host "API review is not approved for package $($packageName), however it is not required for this package type so it can still be released without API review approval." + } } } + else { + Write-Host "Build is triggered from $($SourceBranch) with prerelease version. Skipping API review status check." + } } - else - { - Write-Host "Build is triggered from $($SourceBranch) with prerelease version. Skipping API review status check." - } } + else { + Write-Host "No package is found in artifact path to submit review request" + } + return 0 +} + +$responses = @{} +# Check if package config file is present. This file has package version, SDK type etc info. +if (-not $ConfigFileDir) +{ + $ConfigFileDir = Join-Path -Path $ArtifactPath "PackageInfo" +} + +Write-Host "Artifact path: $($ArtifactPath)" +Write-Host "Source branch: $($SourceBranch)" +Write-Host "Config File directory: $($ConfigFileDir)" + +# if package name param is not empty then process only that package +if ($PackageName) +{ + Write-Host "Processing $($PackageName)" + $result = ProcessPackage -packageName $PackageName + $responses[$PackageName] = $result } else { - Write-Host "No package is found in artifact path to submit review request" + # process all packages in the artifact + foreach ($artifact in $ArtifactList) + { + Write-Host "Processing $($artifact.name)" + $result = ProcessPackage -packageName $artifact.name + $responses[$artifact.name] = $result + } +} + +$exitCode = 0 +foreach($pkg in $responses.keys) +{ + if ($responses[$pkg] -eq 1) + { + Write-Host "API changes are not approved for $($pkg)" + $exitCode = 1 + } } +exit $exitCode \ No newline at end of file diff --git a/eng/common/scripts/Helpers/ApiView-Helpers.ps1 b/eng/common/scripts/Helpers/ApiView-Helpers.ps1 index 73144204f4ec..bf8b16a99e02 100644 --- a/eng/common/scripts/Helpers/ApiView-Helpers.ps1 +++ b/eng/common/scripts/Helpers/ApiView-Helpers.ps1 @@ -20,7 +20,7 @@ function MapLanguageName($language) return $lang } -function Check-ApiReviewStatus($packageName, $packageVersion, $language, $url, $apiKey) +function Check-ApiReviewStatus($packageName, $packageVersion, $language, $url, $apiKey, $apiApprovalStatus = $null, $packageNameStatus = $null) { # Get API view URL and API Key to check status Write-Host "Checking API review status" @@ -35,31 +35,86 @@ function Check-ApiReviewStatus($packageName, $packageVersion, $language, $url, $ packageVersion = $packageVersion } + if (!$apiApprovalStatus) { + $apiApprovalStatus = [PSCustomObject]@{ + IsApproved = $false + Details = "" + } + } + + if (!$packageNameStatus) { + $packageNameStatus = [PSCustomObject]@{ + IsApproved = $false + Details = "" + } + } + try { $response = Invoke-WebRequest $url -Method 'GET' -Headers $headers -Body $body - if ($response.StatusCode -eq '200') - { - Write-Host "API Review is approved for package $($packageName)" + Process-ReviewStatusCode -statusCode $response.StatusCode -packageName $packageName -apiApprovalStatus $apiApprovalStatus -packageNameStatus $packageNameStatus + if ($apiApprovalStatus.IsApproved) { + Write-Host $($apiApprovalStatus.Details) } - elseif ($response.StatusCode -eq '202') - { - Write-Host "Package name $($packageName) is not yet approved by an SDK API approver. Package name must be approved to release a beta version if $($packageName) was never released a stable version." - Write-Host "You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on package name Approval." + else { + Write-warning $($apiApprovalStatus.Details) } - elseif ($response.StatusCode -eq '201') - { - Write-Warning "API Review is not approved for package $($packageName). Release pipeline will fail if API review is not approved for a stable version release." - Write-Host "You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on API Approval." + if ($packageNameStatus.IsApproved) { + Write-Host $($packageNameStatus.Details) } - else - { - Write-Warning "API review status check returned unexpected response. $($response)" - Write-Host "You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on API Approval." + else { + Write-warning $($packageNameStatus.Details) } } catch { Write-Warning "Failed to check API review status for package $($PackageName). You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on API Approval." } +} + +function Process-ReviewStatusCode($statusCode, $packageName, $apiApprovalStatus, $packageNameStatus) +{ + $apiApproved = $false + $apiApprovalDetails = "API Review is not approved for package $($packageName). Release pipeline will fail if API review is not approved for a GA version release. You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on API Approval." + + $packageNameApproved = $false + $packageNameApprovalDetails = "" + + # 200 API approved and Package name approved + # 201 API review is not approved, Package name is approved + # 202 API review is not approved, Package name is not approved + + switch ($statusCode) + { + 200 + { + $apiApprovalDetails = "API Review is approved for package $($packageName)" + $apiApproved = $true + + $packageNameApproved = $true + $packageNameApprovalDetails = "Package name is approved for package $($packageName)" + } + 201 + { + $packageNameApproved = $true + $packageNameApprovalDetails = "Package name is approved for package $($packageName)" + } + 202 + { + $packageNameApprovalDetails = "Package name $($packageName) is not yet approved by an SDK API approver. Package name must be approved to release a beta version if $($packageName) was never released as a stable version." + $packageNameApprovalDetails += " You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on package name Approval." + } + default + { + $apiApprovalDetails = "Invalid status code from APIView. status code $($statusCode)" + $packageNameApprovalDetails = "Invalid status code from APIView. status code $($statusCode)" + Write-Error "Failed to process API Review status for for package $($PackageName). Please reach out to Azure SDK engineering systems on teams channel." + } + } + + $apiApprovalStatus.IsApproved = $apiApproved + $apiApprovalStatus.Details = $apiApprovalDetails + + $packageNameStatus.IsApproved = $packageNameApproved + $packageNameStatus.Details = $packageNameApprovalDetails } \ No newline at end of file From a17c49445d5631bb5482ffac41019660dca8f19a Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 18 Mar 2024 14:05:01 -0400 Subject: [PATCH 14/20] [EngSys] automatic rush update --full (#28952) This is an automatic PR generated weekly with changes from running the command rush update --full --- common/config/rush/pnpm-lock.yaml | 3231 +++++++++++++++-------------- 1 file changed, 1635 insertions(+), 1596 deletions(-) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 816dce76b2c1..c1abeafa46e3 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1180,8 +1180,8 @@ packages: tslib: 2.6.2 dev: false - /@azure/abort-controller@2.0.0: - resolution: {integrity: sha512-RP/mR/WJchR+g+nQFJGOec+nzeN/VvjlwbinccoqfhTsTHbb8X5+mLDp48kHT0ueyum0BNSwGm0kX0UZuIqTGg==} + /@azure/abort-controller@2.1.0: + resolution: {integrity: sha512-SYtcG13aiV7znycu6plCClWUzD9BBtfnsbIxT89nkkRvQRB4n0kuZyJJvJ7hqdKOn7x7YoGKZ9lVStLJpLnOFw==} engines: {node: '>=18.0.0'} dependencies: tslib: 2.6.2 @@ -1192,15 +1192,15 @@ packages: engines: {node: '>=16.0.0'} dependencies: '@azure/abort-controller': 1.1.0 - '@azure/core-auth': 1.6.0 - '@azure/core-client': 1.8.0 - '@azure/core-http-compat': 2.0.1 - '@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/core-util': 1.7.0 - '@azure/logger': 1.0.4 + '@azure/core-auth': 1.7.0 + '@azure/core-client': 1.9.0 + '@azure/core-http-compat': 2.1.0 + '@azure/core-lro': 2.7.0 + '@azure/core-paging': 1.6.0 + '@azure/core-rest-pipeline': 1.15.0 + '@azure/core-tracing': 1.1.0 + '@azure/core-util': 1.8.0 + '@azure/logger': 1.1.0 tslib: 2.6.2 transitivePeerDependencies: - supports-color @@ -1211,11 +1211,11 @@ packages: engines: {node: '>=14.0.0'} dependencies: '@azure/abort-controller': 1.1.0 - '@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-auth': 1.7.0 + '@azure/core-client': 1.9.0 + '@azure/core-lro': 2.7.0 + '@azure/core-paging': 1.6.0 + '@azure/core-rest-pipeline': 1.15.0 tslib: 2.6.2 transitivePeerDependencies: - supports-color @@ -1226,11 +1226,11 @@ packages: engines: {node: '>=14.0.0'} dependencies: '@azure/abort-controller': 1.1.0 - '@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-auth': 1.7.0 + '@azure/core-client': 1.9.0 + '@azure/core-lro': 2.7.0 + '@azure/core-paging': 1.6.0 + '@azure/core-rest-pipeline': 1.15.0 tslib: 2.6.2 transitivePeerDependencies: - supports-color @@ -1241,10 +1241,10 @@ packages: 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 + '@azure/core-auth': 1.7.0 + '@azure/core-rest-pipeline': 1.15.0 + '@azure/core-tracing': 1.1.0 + '@azure/core-util': 1.8.0 events: 3.3.0 jwt-decode: 4.0.0 tslib: 2.6.2 @@ -1258,13 +1258,13 @@ packages: 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 + '@azure/core-auth': 1.7.0 + '@azure/core-client': 1.9.0 + '@azure/core-lro': 2.7.0 + '@azure/core-paging': 1.6.0 + '@azure/core-rest-pipeline': 1.15.0 + '@azure/core-tracing': 1.1.0 + '@azure/logger': 1.1.0 events: 3.3.0 tslib: 2.6.2 uuid: 8.3.2 @@ -1285,37 +1285,37 @@ packages: - encoding dev: false - /@azure/core-auth@1.6.0: - resolution: {integrity: sha512-3X9wzaaGgRaBCwhLQZDtFp5uLIXCPrGbwJNWPPugvL4xbIGgScv77YzzxToKGLAKvG9amDoofMoP+9hsH1vs1w==} + /@azure/core-auth@1.7.0: + resolution: {integrity: sha512-OuDVn9z2LjyYbpu6e7crEwSipa62jX7/ObV/pmXQfnOG8cHwm363jYtg3FSX3GB1V7jsIKri1zgq7mfXkFk/qw==} engines: {node: '>=18.0.0'} dependencies: - '@azure/abort-controller': 2.0.0 - '@azure/core-util': 1.7.0 + '@azure/abort-controller': 2.1.0 + '@azure/core-util': 1.8.0 tslib: 2.6.2 dev: false - /@azure/core-client@1.8.0: - resolution: {integrity: sha512-+gHS3gEzPlhyQBMoqVPOTeNH031R5DM/xpCvz72y38C09rg4Hui/1sJS/ujoisDZbbSHyuRLVWdFlwL0pIFwbg==} + /@azure/core-client@1.9.0: + resolution: {integrity: sha512-x50SSD7bbG5wen3tMDI2oWVSAjt1K1xw6JZSnc6239RmBwqLJF9dPsKsh9w0Rzh5+mGpsu9FDu3DlsT0lo1+Uw==} engines: {node: '>=18.0.0'} dependencies: - '@azure/abort-controller': 2.0.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 - '@azure/logger': 1.0.4 + '@azure/abort-controller': 2.1.0 + '@azure/core-auth': 1.7.0 + '@azure/core-rest-pipeline': 1.15.0 + '@azure/core-tracing': 1.1.0 + '@azure/core-util': 1.8.0 + '@azure/logger': 1.1.0 tslib: 2.6.2 transitivePeerDependencies: - supports-color dev: false - /@azure/core-http-compat@2.0.1: - resolution: {integrity: sha512-xpQZz/q7E0jSW4rckrTo2mDFDQgo6I69hBU4voMQi7REi6JRW5a+KfVkbJCFCWnkFmP6cAJ0IbuudTdf/MEBOQ==} - engines: {node: '>=14.0.0'} + /@azure/core-http-compat@2.1.0: + resolution: {integrity: sha512-FMGEmHaxpeLNdt7hw+i3V4VkFLCMi8y9zF/eiIV5EK1vt/1Ra5Olc1mSY9m9plxKjSp0kVvgc/uZVsdO1YNvzQ==} + engines: {node: '>=18.0.0'} dependencies: - '@azure/abort-controller': 1.1.0 - '@azure/core-client': 1.8.0 - '@azure/core-rest-pipeline': 1.14.0 + '@azure/abort-controller': 2.1.0 + '@azure/core-client': 1.9.0 + '@azure/core-rest-pipeline': 1.15.0 transitivePeerDependencies: - supports-color dev: false @@ -1325,9 +1325,9 @@ packages: engines: {node: '>=14.0.0'} dependencies: '@azure/abort-controller': 1.1.0 - '@azure/core-auth': 1.6.0 + '@azure/core-auth': 1.7.0 '@azure/core-tracing': 1.0.0-preview.13 - '@azure/core-util': 1.7.0 + '@azure/core-util': 1.8.0 '@azure/logger': 1.0.4 '@types/node-fetch': 2.6.11 '@types/tunnel': 0.0.3 @@ -1348,10 +1348,10 @@ packages: engines: {node: '>=14.0.0'} dependencies: '@azure/abort-controller': 1.1.0 - '@azure/core-auth': 1.6.0 + '@azure/core-auth': 1.7.0 '@azure/core-tracing': 1.0.0-preview.13 - '@azure/core-util': 1.7.0 - '@azure/logger': 1.0.4 + '@azure/core-util': 1.8.0 + '@azure/logger': 1.1.0 '@types/node-fetch': 2.6.11 '@types/tunnel': 0.0.3 form-data: 4.0.0 @@ -1365,34 +1365,34 @@ packages: - encoding dev: false - /@azure/core-lro@2.6.0: - resolution: {integrity: sha512-PyRNcaIOfMgoUC01/24NoG+k8O81VrKxYARnDlo+Q2xji0/0/j2nIt8BwQh294pb1c5QnXTDPbNR4KzoDKXEoQ==} + /@azure/core-lro@2.7.0: + resolution: {integrity: sha512-oj7d8vWEvOREIByH1+BnoiFwszzdE7OXUEd6UTv+cmx5HvjBBlkVezm3uZgpXWaxDj5ATL/k89+UMeGx1Ou9TQ==} engines: {node: '>=18.0.0'} dependencies: - '@azure/abort-controller': 2.0.0 - '@azure/core-util': 1.7.0 - '@azure/logger': 1.0.4 + '@azure/abort-controller': 2.1.0 + '@azure/core-util': 1.8.0 + '@azure/logger': 1.1.0 tslib: 2.6.2 dev: false - /@azure/core-paging@1.5.0: - resolution: {integrity: sha512-zqWdVIt+2Z+3wqxEOGzR5hXFZ8MGKK52x4vFLw8n58pR6ZfKRx3EXYTxTaYxYHc/PexPUTyimcTWFJbji9Z6Iw==} - engines: {node: '>=14.0.0'} + /@azure/core-paging@1.6.0: + resolution: {integrity: sha512-W8eRv7MVFx/jbbYfcRT5+pGnZ9St/P1UvOi+63vxPwuQ3y+xj+wqWTGxpkXUETv3szsqGu0msdxVtjszCeB4zA==} + engines: {node: '>=18.0.0'} dependencies: tslib: 2.6.2 dev: false - /@azure/core-rest-pipeline@1.14.0: - resolution: {integrity: sha512-Tp4M6NsjCmn9L5p7HsW98eSOS7A0ibl3e5ntZglozT0XuD/0y6i36iW829ZbBq0qihlGgfaeFpkLjZ418KDm1Q==} + /@azure/core-rest-pipeline@1.15.0: + resolution: {integrity: sha512-6kBQwE75ZVlOjBbp0/PX0fgNLHxoMDxHe3aIPV/RLVwrIDidxTbsHtkSbPNTkheMset3v9s1Z08XuMNpWRK/7w==} engines: {node: '>=18.0.0'} dependencies: - '@azure/abort-controller': 2.0.0 - '@azure/core-auth': 1.6.0 - '@azure/core-tracing': 1.0.1 - '@azure/core-util': 1.7.0 - '@azure/logger': 1.0.4 - http-proxy-agent: 5.0.0 - https-proxy-agent: 5.0.1 + '@azure/abort-controller': 2.1.0 + '@azure/core-auth': 1.7.0 + '@azure/core-tracing': 1.1.0 + '@azure/core-util': 1.8.0 + '@azure/logger': 1.1.0 + http-proxy-agent: 7.0.0 + https-proxy-agent: 7.0.2 tslib: 2.6.2 transitivePeerDependencies: - supports-color @@ -1406,18 +1406,18 @@ packages: tslib: 2.6.2 dev: false - /@azure/core-tracing@1.0.1: - resolution: {integrity: sha512-I5CGMoLtX+pI17ZdiFJZgxMJApsK6jjfm85hpgp3oazCdq5Wxgh4wMr7ge/TTWW1B5WBuvIOI1fMU/FrOAMKrw==} - engines: {node: '>=12.0.0'} + /@azure/core-tracing@1.1.0: + resolution: {integrity: sha512-MVeJvGHB4jmF7PeHhyr72vYJsBJ3ff1piHikMgRaabPAC4P3rxhf9fm42I+DixLysBunskJWhsDQD2A+O+plkQ==} + engines: {node: '>=18.0.0'} dependencies: tslib: 2.6.2 dev: false - /@azure/core-util@1.7.0: - resolution: {integrity: sha512-Zq2i3QO6k9DA8vnm29mYM4G8IE9u1mhF1GUabVEqPNX8Lj833gdxQ2NAFxt2BZsfAL+e9cT8SyVN7dFVJ/Hf0g==} + /@azure/core-util@1.8.0: + resolution: {integrity: sha512-w8NrGnrlGDF7fj36PBnJhGXDK2Y3kpTOgL7Ksb5snEHXq/3EAbKYOp1yqme0yWCUlSDq5rjqvxSBAJmsqYac3w==} engines: {node: '>=18.0.0'} dependencies: - '@azure/abort-controller': 2.0.0 + '@azure/abort-controller': 2.1.0 tslib: 2.6.2 dev: false @@ -1434,12 +1434,12 @@ packages: engines: {node: '>=14.0.0'} dependencies: '@azure/abort-controller': 1.1.0 - '@azure/core-auth': 1.6.0 - '@azure/core-client': 1.8.0 - '@azure/core-rest-pipeline': 1.14.0 - '@azure/core-tracing': 1.0.1 - '@azure/core-util': 1.7.0 - '@azure/logger': 1.0.4 + '@azure/core-auth': 1.7.0 + '@azure/core-client': 1.9.0 + '@azure/core-rest-pipeline': 1.15.0 + '@azure/core-tracing': 1.1.0 + '@azure/core-util': 1.8.0 + '@azure/logger': 1.1.0 '@azure/msal-browser': 3.10.0 '@azure/msal-node': 2.6.4 events: 3.3.0 @@ -1456,12 +1456,12 @@ packages: engines: {node: '>=18.0.0'} dependencies: '@azure/abort-controller': 1.1.0 - '@azure/core-auth': 1.6.0 - '@azure/core-client': 1.8.0 - '@azure/core-rest-pipeline': 1.14.0 - '@azure/core-tracing': 1.0.1 - '@azure/core-util': 1.7.0 - '@azure/logger': 1.0.4 + '@azure/core-auth': 1.7.0 + '@azure/core-client': 1.9.0 + '@azure/core-rest-pipeline': 1.15.0 + '@azure/core-tracing': 1.1.0 + '@azure/core-util': 1.8.0 + '@azure/logger': 1.1.0 '@azure/msal-browser': 3.10.0 '@azure/msal-node': 2.6.4 events: 3.3.0 @@ -1478,15 +1478,15 @@ packages: engines: {node: '>=18.0.0'} dependencies: '@azure/abort-controller': 1.1.0 - '@azure/core-auth': 1.6.0 - '@azure/core-client': 1.8.0 - '@azure/core-http-compat': 2.0.1 - '@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/core-util': 1.7.0 - '@azure/logger': 1.0.4 + '@azure/core-auth': 1.7.0 + '@azure/core-client': 1.9.0 + '@azure/core-http-compat': 2.1.0 + '@azure/core-lro': 2.7.0 + '@azure/core-paging': 1.6.0 + '@azure/core-rest-pipeline': 1.15.0 + '@azure/core-tracing': 1.1.0 + '@azure/core-util': 1.8.0 + '@azure/logger': 1.1.0 tslib: 2.6.2 transitivePeerDependencies: - supports-color @@ -1499,15 +1499,22 @@ packages: tslib: 2.6.2 dev: false + /@azure/logger@1.1.0: + resolution: {integrity: sha512-BnfkfzVEsrgbVCtqq0RYRMePSH2lL/cgUUR5sYRF4yNN10zJZq/cODz0r89k3ykY83MqeM3twR292a3YBNgC3w==} + engines: {node: '>=18.0.0'} + dependencies: + tslib: 2.6.2 + dev: false + /@azure/maps-common@1.0.0-beta.2: resolution: {integrity: sha512-PB9GlnfojcQ4nf9WXdQvWeAk7gm8P74o+Z5IHz5YLK/W+3vrNrmVVVuFpGOvCPrLjag50UinaZsMBtPtxoiobg==} engines: {node: '>=14.0.0'} dependencies: '@azure/abort-controller': 1.1.0 - '@azure/core-auth': 1.6.0 - '@azure/core-client': 1.8.0 - '@azure/core-lro': 2.6.0 - '@azure/core-rest-pipeline': 1.14.0 + '@azure/core-auth': 1.7.0 + '@azure/core-client': 1.9.0 + '@azure/core-lro': 2.7.0 + '@azure/core-rest-pipeline': 1.15.0 transitivePeerDependencies: - supports-color dev: false @@ -1566,11 +1573,11 @@ packages: resolution: {integrity: sha512-c0941sREjSPE6/KMVd3vrLYKwwjrKZabOP/i1YOoBS4RquFIi3aA4wUPBvsVhOs4JzN79Ztcn7/ZvO4HyzrSVQ==} engines: {node: '>=12.0.0'} dependencies: - '@azure/core-auth': 1.6.0 - '@azure/core-client': 1.8.0 - '@azure/core-rest-pipeline': 1.14.0 - '@azure/core-tracing': 1.0.1 - '@azure/logger': 1.0.4 + '@azure/core-auth': 1.7.0 + '@azure/core-client': 1.9.0 + '@azure/core-rest-pipeline': 1.15.0 + '@azure/core-tracing': 1.1.0 + '@azure/logger': 1.1.0 tslib: 2.6.2 transitivePeerDependencies: - supports-color @@ -1582,10 +1589,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/core-http': 3.0.4 - '@azure/core-lro': 2.6.0 - '@azure/core-paging': 1.5.0 + '@azure/core-lro': 2.7.0 + '@azure/core-paging': 1.6.0 '@azure/core-tracing': 1.0.0-preview.13 - '@azure/logger': 1.0.4 + '@azure/logger': 1.1.0 events: 3.3.0 tslib: 2.6.2 transitivePeerDependencies: @@ -1598,9 +1605,9 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/core-http': 3.0.4 - '@azure/core-paging': 1.5.0 + '@azure/core-paging': 1.6.0 '@azure/core-tracing': 1.0.0-preview.13 - '@azure/logger': 1.0.4 + '@azure/logger': 1.1.0 '@azure/storage-blob': 12.17.0 events: 3.3.0 tslib: 2.6.2 @@ -1614,9 +1621,9 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/core-http': 3.0.4 - '@azure/core-paging': 1.5.0 + '@azure/core-paging': 1.6.0 '@azure/core-tracing': 1.0.0-preview.13 - '@azure/logger': 1.0.4 + '@azure/logger': 1.1.0 events: 3.3.0 tslib: 2.6.2 transitivePeerDependencies: @@ -1628,8 +1635,8 @@ packages: engines: {node: '>=14.0.0'} dependencies: '@azure/abort-controller': 1.1.0 - '@azure/core-util': 1.7.0 - '@azure/logger': 1.0.4 + '@azure/core-util': 1.8.0 + '@azure/logger': 1.1.0 buffer: 6.0.3 tslib: 2.6.2 ws: 7.5.9 @@ -2094,8 +2101,8 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: false - /@grpc/grpc-js@1.10.2: - resolution: {integrity: sha512-lSbgu8iayAod8O0YcoXK3+bMFGThY2svtN35Zlm9VepsB3jfyIcoupKknEht7Kh9Q8ITjsp0J4KpYo9l4+FhNg==} + /@grpc/grpc-js@1.10.3: + resolution: {integrity: sha512-qiO9MNgYnwbvZ8MK0YLWbnGrNX3zTcj6/Ef7UHu5ZofER3e2nF3Y35GaPo9qNJJ/UJQKa4KL+z/F4Q8Q+uCdUQ==} engines: {node: '>=12.10.0'} dependencies: '@grpc/proto-loader': 0.7.10 @@ -2216,22 +2223,22 @@ packages: lodash: 4.17.21 dev: false - /@microsoft/api-extractor-model@7.28.13(@types/node@16.18.87): + /@microsoft/api-extractor-model@7.28.13(@types/node@16.18.89): 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.87) + '@rushstack/node-core-library': 4.0.2(@types/node@16.18.89) transitivePeerDependencies: - '@types/node' dev: false - /@microsoft/api-extractor-model@7.28.13(@types/node@18.19.22): + /@microsoft/api-extractor-model@7.28.13(@types/node@18.19.24): 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.22) + '@rushstack/node-core-library': 4.0.2(@types/node@18.19.24) transitivePeerDependencies: - '@types/node' dev: false @@ -2266,17 +2273,17 @@ packages: - '@types/node' dev: false - /@microsoft/api-extractor@7.42.3(@types/node@16.18.87): + /@microsoft/api-extractor@7.42.3(@types/node@16.18.89): resolution: {integrity: sha512-JNLJFpGHz6ekjS6bvYXxUBeRGnSHeCMFNvRbCQ+7XXB/ZFrgLSMPwWtEq40AiWAy+oyG5a4RSNwdJTp0B2USvQ==} hasBin: true dependencies: - '@microsoft/api-extractor-model': 7.28.13(@types/node@16.18.87) + '@microsoft/api-extractor-model': 7.28.13(@types/node@16.18.89) '@microsoft/tsdoc': 0.14.2 '@microsoft/tsdoc-config': 0.16.2 - '@rushstack/node-core-library': 4.0.2(@types/node@16.18.87) + '@rushstack/node-core-library': 4.0.2(@types/node@16.18.89) '@rushstack/rig-package': 0.5.2 - '@rushstack/terminal': 0.10.0(@types/node@16.18.87) - '@rushstack/ts-command-line': 4.19.1(@types/node@16.18.87) + '@rushstack/terminal': 0.10.0(@types/node@16.18.89) + '@rushstack/ts-command-line': 4.19.1(@types/node@16.18.89) lodash: 4.17.21 minimatch: 3.0.8 resolve: 1.22.8 @@ -2287,17 +2294,17 @@ packages: - '@types/node' dev: false - /@microsoft/api-extractor@7.42.3(@types/node@18.19.22): + /@microsoft/api-extractor@7.42.3(@types/node@18.19.24): resolution: {integrity: sha512-JNLJFpGHz6ekjS6bvYXxUBeRGnSHeCMFNvRbCQ+7XXB/ZFrgLSMPwWtEq40AiWAy+oyG5a4RSNwdJTp0B2USvQ==} hasBin: true dependencies: - '@microsoft/api-extractor-model': 7.28.13(@types/node@18.19.22) + '@microsoft/api-extractor-model': 7.28.13(@types/node@18.19.24) '@microsoft/tsdoc': 0.14.2 '@microsoft/tsdoc-config': 0.16.2 - '@rushstack/node-core-library': 4.0.2(@types/node@18.19.22) + '@rushstack/node-core-library': 4.0.2(@types/node@18.19.24) '@rushstack/rig-package': 0.5.2 - '@rushstack/terminal': 0.10.0(@types/node@18.19.22) - '@rushstack/ts-command-line': 4.19.1(@types/node@18.19.22) + '@rushstack/terminal': 0.10.0(@types/node@18.19.24) + '@rushstack/ts-command-line': 4.19.1(@types/node@18.19.24) lodash: 4.17.21 minimatch: 3.0.8 resolve: 1.22.8 @@ -2383,7 +2390,7 @@ packages: peerDependencies: '@opentelemetry/api': ^1.0.0 dependencies: - '@grpc/grpc-js': 1.10.2 + '@grpc/grpc-js': 1.10.3 '@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) @@ -2545,7 +2552,7 @@ packages: '@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 + require-in-the-middle: 7.2.1 semver: 7.6.0 shimmer: 1.2.1 transitivePeerDependencies: @@ -2568,7 +2575,7 @@ packages: peerDependencies: '@opentelemetry/api': ^1.0.0 dependencies: - '@grpc/grpc-js': 1.10.2 + '@grpc/grpc-js': 1.10.3 '@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) @@ -2794,8 +2801,8 @@ packages: resolution: {integrity: sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==} dev: false - /@puppeteer/browsers@2.1.0: - resolution: {integrity: sha512-xloWvocjvryHdUjDam/ZuGMh7zn4Sn3ZAaV4Ah2e2EwEt90N3XphZlSsU3n0VDc1F7kggCjMuH0UuxfPQ5mD9w==} + /@puppeteer/browsers@2.2.0: + resolution: {integrity: sha512-MC7LxpcBtdfTbzwARXIkqGZ1Osn3nnZJlm+i0+VqHl72t//Xwl9wICrXT8BwtgC6s1xJNHsxOpvzISUqe92+sw==} engines: {node: '>=18'} hasBin: true dependencies: @@ -2811,7 +2818,7 @@ packages: - supports-color dev: false - /@rollup/plugin-commonjs@25.0.7(rollup@4.12.1): + /@rollup/plugin-commonjs@25.0.7(rollup@4.13.0): resolution: {integrity: sha512-nEvcR+LRjEjsaSsc4x3XZfCCvZIaSMenZu/OiwOKGN2UhQpAYI7ru7czFvyWbErlpoGjnSX3D5Ch5FcMA3kRWQ==} engines: {node: '>=14.0.0'} peerDependencies: @@ -2820,16 +2827,16 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.12.1) + '@rollup/pluginutils': 5.1.0(rollup@4.13.0) commondir: 1.0.1 estree-walker: 2.0.2 glob: 8.1.0 is-reference: 1.2.1 magic-string: 0.30.8 - rollup: 4.12.1 + rollup: 4.13.0 dev: false - /@rollup/plugin-inject@5.0.5(rollup@4.12.1): + /@rollup/plugin-inject@5.0.5(rollup@4.13.0): resolution: {integrity: sha512-2+DEJbNBoPROPkgTDNe8/1YXWcqxbN5DTjASVIOx8HS+pITXushyNiBV56RB08zuptzz8gT3YfkqriTBVycepg==} engines: {node: '>=14.0.0'} peerDependencies: @@ -2838,13 +2845,13 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.12.1) + '@rollup/pluginutils': 5.1.0(rollup@4.13.0) estree-walker: 2.0.2 magic-string: 0.30.8 - rollup: 4.12.1 + rollup: 4.13.0 dev: false - /@rollup/plugin-json@6.1.0(rollup@4.12.1): + /@rollup/plugin-json@6.1.0(rollup@4.13.0): resolution: {integrity: sha512-EGI2te5ENk1coGeADSIwZ7G2Q8CJS2sF120T7jLw4xFw9n7wIOXHo+kIYRAoVpJAN+kmqZSoO3Fp4JtoNF4ReA==} engines: {node: '>=14.0.0'} peerDependencies: @@ -2853,11 +2860,11 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.12.1) - rollup: 4.12.1 + '@rollup/pluginutils': 5.1.0(rollup@4.13.0) + rollup: 4.13.0 dev: false - /@rollup/plugin-multi-entry@6.0.1(rollup@4.12.1): + /@rollup/plugin-multi-entry@6.0.1(rollup@4.13.0): resolution: {integrity: sha512-AXm6toPyTSfbYZWghQGbom1Uh7dHXlrGa+HoiYNhQtDUE3Q7LqoUYdVQx9E1579QWS1uOiu+cZRSE4okO7ySgw==} engines: {node: '>=14.0.0'} peerDependencies: @@ -2866,12 +2873,12 @@ packages: rollup: optional: true dependencies: - '@rollup/plugin-virtual': 3.0.2(rollup@4.12.1) + '@rollup/plugin-virtual': 3.0.2(rollup@4.13.0) matched: 5.0.1 - rollup: 4.12.1 + rollup: 4.13.0 dev: false - /@rollup/plugin-node-resolve@15.2.3(rollup@4.12.1): + /@rollup/plugin-node-resolve@15.2.3(rollup@4.13.0): resolution: {integrity: sha512-j/lym8nf5E21LwBT4Df1VD6hRO2L2iwUeUmP7litikRsVp1H6NWx20NEp0Y7su+7XGc476GnXXc4kFeZNGmaSQ==} engines: {node: '>=14.0.0'} peerDependencies: @@ -2880,16 +2887,16 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.12.1) + '@rollup/pluginutils': 5.1.0(rollup@4.13.0) '@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.1 + rollup: 4.13.0 dev: false - /@rollup/plugin-virtual@3.0.2(rollup@4.12.1): + /@rollup/plugin-virtual@3.0.2(rollup@4.13.0): resolution: {integrity: sha512-10monEYsBp3scM4/ND4LNH5Rxvh3e/cVeL3jWTgZ2SrQ+BmUoQcopVQvnaMcOnykb1VkxUFuDAN+0FnpTFRy2A==} engines: {node: '>=14.0.0'} peerDependencies: @@ -2898,10 +2905,10 @@ packages: rollup: optional: true dependencies: - rollup: 4.12.1 + rollup: 4.13.0 dev: false - /@rollup/pluginutils@5.1.0(rollup@4.12.1): + /@rollup/pluginutils@5.1.0(rollup@4.13.0): resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==} engines: {node: '>=14.0.0'} peerDependencies: @@ -2913,107 +2920,107 @@ packages: '@types/estree': 1.0.5 estree-walker: 2.0.2 picomatch: 2.3.1 - rollup: 4.12.1 + rollup: 4.13.0 dev: false - /@rollup/rollup-android-arm-eabi@4.12.1: - resolution: {integrity: sha512-iU2Sya8hNn1LhsYyf0N+L4Gf9Qc+9eBTJJJsaOGUp+7x4n2M9dxTt8UvhJl3oeftSjblSlpCfvjA/IfP3g5VjQ==} + /@rollup/rollup-android-arm-eabi@4.13.0: + resolution: {integrity: sha512-5ZYPOuaAqEH/W3gYsRkxQATBW3Ii1MfaT4EQstTnLKViLi2gLSQmlmtTpGucNP3sXEpOiI5tdGhjdE111ekyEg==} cpu: [arm] os: [android] requiresBuild: true dev: false optional: true - /@rollup/rollup-android-arm64@4.12.1: - resolution: {integrity: sha512-wlzcWiH2Ir7rdMELxFE5vuM7D6TsOcJ2Yw0c3vaBR3VOsJFVTx9xvwnAvhgU5Ii8Gd6+I11qNHwndDscIm0HXg==} + /@rollup/rollup-android-arm64@4.13.0: + resolution: {integrity: sha512-BSbaCmn8ZadK3UAQdlauSvtaJjhlDEjS5hEVVIN3A4bbl3X+otyf/kOJV08bYiRxfejP3DXFzO2jz3G20107+Q==} cpu: [arm64] os: [android] requiresBuild: true dev: false optional: true - /@rollup/rollup-darwin-arm64@4.12.1: - resolution: {integrity: sha512-YRXa1+aZIFN5BaImK+84B3uNK8C6+ynKLPgvn29X9s0LTVCByp54TB7tdSMHDR7GTV39bz1lOmlLDuedgTwwHg==} + /@rollup/rollup-darwin-arm64@4.13.0: + resolution: {integrity: sha512-Ovf2evVaP6sW5Ut0GHyUSOqA6tVKfrTHddtmxGQc1CTQa1Cw3/KMCDEEICZBbyppcwnhMwcDce9ZRxdWRpVd6g==} cpu: [arm64] os: [darwin] requiresBuild: true dev: false optional: true - /@rollup/rollup-darwin-x64@4.12.1: - resolution: {integrity: sha512-opjWJ4MevxeA8FhlngQWPBOvVWYNPFkq6/25rGgG+KOy0r8clYwL1CFd+PGwRqqMFVQ4/Qd3sQu5t7ucP7C/Uw==} + /@rollup/rollup-darwin-x64@4.13.0: + resolution: {integrity: sha512-U+Jcxm89UTK592vZ2J9st9ajRv/hrwHdnvyuJpa5A2ngGSVHypigidkQJP+YiGL6JODiUeMzkqQzbCG3At81Gg==} cpu: [x64] os: [darwin] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-arm-gnueabihf@4.12.1: - resolution: {integrity: sha512-uBkwaI+gBUlIe+EfbNnY5xNyXuhZbDSx2nzzW8tRMjUmpScd6lCQYKY2V9BATHtv5Ef2OBq6SChEP8h+/cxifQ==} + /@rollup/rollup-linux-arm-gnueabihf@4.13.0: + resolution: {integrity: sha512-8wZidaUJUTIR5T4vRS22VkSMOVooG0F4N+JSwQXWSRiC6yfEsFMLTYRFHvby5mFFuExHa/yAp9juSphQQJAijQ==} cpu: [arm] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-arm64-gnu@4.12.1: - resolution: {integrity: sha512-0bK9aG1kIg0Su7OcFTlexkVeNZ5IzEsnz1ept87a0TUgZ6HplSgkJAnFpEVRW7GRcikT4GlPV0pbtVedOaXHQQ==} + /@rollup/rollup-linux-arm64-gnu@4.13.0: + resolution: {integrity: sha512-Iu0Kno1vrD7zHQDxOmvweqLkAzjxEVqNhUIXBsZ8hu8Oak7/5VTPrxOEZXYC1nmrBVJp0ZcL2E7lSuuOVaE3+w==} cpu: [arm64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-arm64-musl@4.12.1: - resolution: {integrity: sha512-qB6AFRXuP8bdkBI4D7UPUbE7OQf7u5OL+R94JE42Z2Qjmyj74FtDdLGeriRyBDhm4rQSvqAGCGC01b8Fu2LthQ==} + /@rollup/rollup-linux-arm64-musl@4.13.0: + resolution: {integrity: sha512-C31QrW47llgVyrRjIwiOwsHFcaIwmkKi3PCroQY5aVq4H0A5v/vVVAtFsI1nfBngtoRpeREvZOkIhmRwUKkAdw==} cpu: [arm64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-riscv64-gnu@4.12.1: - resolution: {integrity: sha512-sHig3LaGlpNgDj5o8uPEoGs98RII8HpNIqFtAI8/pYABO8i0nb1QzT0JDoXF/pxzqO+FkxvwkHZo9k0NJYDedg==} + /@rollup/rollup-linux-riscv64-gnu@4.13.0: + resolution: {integrity: sha512-Oq90dtMHvthFOPMl7pt7KmxzX7E71AfyIhh+cPhLY9oko97Zf2C9tt/XJD4RgxhaGeAraAXDtqxvKE1y/j35lA==} cpu: [riscv64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-x64-gnu@4.12.1: - resolution: {integrity: sha512-nD3YcUv6jBJbBNFvSbp0IV66+ba/1teuBcu+fBBPZ33sidxitc6ErhON3JNavaH8HlswhWMC3s5rgZpM4MtPqQ==} + /@rollup/rollup-linux-x64-gnu@4.13.0: + resolution: {integrity: sha512-yUD/8wMffnTKuiIsl6xU+4IA8UNhQ/f1sAnQebmE/lyQ8abjsVyDkyRkWop0kdMhKMprpNIhPmYlCxgHrPoXoA==} cpu: [x64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-x64-musl@4.12.1: - resolution: {integrity: sha512-7/XVZqgBby2qp/cO0TQ8uJK+9xnSdJ9ct6gSDdEr4MfABrjTyrW6Bau7HQ73a2a5tPB7hno49A0y1jhWGDN9OQ==} + /@rollup/rollup-linux-x64-musl@4.13.0: + resolution: {integrity: sha512-9RyNqoFNdF0vu/qqX63fKotBh43fJQeYC98hCaf89DYQpv+xu0D8QFSOS0biA7cGuqJFOc1bJ+m2rhhsKcw1hw==} cpu: [x64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-win32-arm64-msvc@4.12.1: - resolution: {integrity: sha512-CYc64bnICG42UPL7TrhIwsJW4QcKkIt9gGlj21gq3VV0LL6XNb1yAdHVp1pIi9gkts9gGcT3OfUYHjGP7ETAiw==} + /@rollup/rollup-win32-arm64-msvc@4.13.0: + resolution: {integrity: sha512-46ue8ymtm/5PUU6pCvjlic0z82qWkxv54GTJZgHrQUuZnVH+tvvSP0LsozIDsCBFO4VjJ13N68wqrKSeScUKdA==} cpu: [arm64] os: [win32] requiresBuild: true dev: false optional: true - /@rollup/rollup-win32-ia32-msvc@4.12.1: - resolution: {integrity: sha512-LN+vnlZ9g0qlHGlS920GR4zFCqAwbv2lULrR29yGaWP9u7wF5L7GqWu9Ah6/kFZPXPUkpdZwd//TNR+9XC9hvA==} + /@rollup/rollup-win32-ia32-msvc@4.13.0: + resolution: {integrity: sha512-P5/MqLdLSlqxbeuJ3YDeX37srC8mCflSyTrUsgbU1c/U9j6l2g2GiIdYaGD9QjdMQPMSgYm7hgg0551wHyIluw==} cpu: [ia32] os: [win32] requiresBuild: true dev: false optional: true - /@rollup/rollup-win32-x64-msvc@4.12.1: - resolution: {integrity: sha512-n+vkrSyphvmU0qkQ6QBNXCGr2mKjhP08mPRM/Xp5Ck2FV4NrHU+y6axzDeixUrCBHVUS51TZhjqrKBBsHLKb2Q==} + /@rollup/rollup-win32-x64-msvc@4.13.0: + resolution: {integrity: sha512-UKXUQNbO3DOhzLRwHSpa0HnhhCgNODvfoPWv2FCXme8N/ANFfhIPMGuOT+QuKd16+B5yxZ0HdpNlqPvTMS1qfw==} cpu: [x64] os: [win32] requiresBuild: true @@ -3038,7 +3045,7 @@ packages: z-schema: 5.0.5 dev: false - /@rushstack/node-core-library@4.0.2(@types/node@16.18.87): + /@rushstack/node-core-library@4.0.2(@types/node@16.18.89): resolution: {integrity: sha512-hyES82QVpkfQMeBMteQUnrhASL/KHPhd7iJ8euduwNJG4mu2GSOKybf0rOEjOm1Wz7CwJEUm9y0yD7jg2C1bfg==} peerDependencies: '@types/node': '*' @@ -3046,7 +3053,7 @@ packages: '@types/node': optional: true dependencies: - '@types/node': 16.18.87 + '@types/node': 16.18.89 fs-extra: 7.0.1 import-lazy: 4.0.0 jju: 1.4.0 @@ -3055,7 +3062,7 @@ packages: z-schema: 5.0.5 dev: false - /@rushstack/node-core-library@4.0.2(@types/node@18.19.22): + /@rushstack/node-core-library@4.0.2(@types/node@18.19.24): resolution: {integrity: sha512-hyES82QVpkfQMeBMteQUnrhASL/KHPhd7iJ8euduwNJG4mu2GSOKybf0rOEjOm1Wz7CwJEUm9y0yD7jg2C1bfg==} peerDependencies: '@types/node': '*' @@ -3063,7 +3070,7 @@ packages: '@types/node': optional: true dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 fs-extra: 7.0.1 import-lazy: 4.0.0 jju: 1.4.0 @@ -3086,7 +3093,7 @@ packages: strip-json-comments: 3.1.1 dev: false - /@rushstack/terminal@0.10.0(@types/node@16.18.87): + /@rushstack/terminal@0.10.0(@types/node@16.18.89): resolution: {integrity: sha512-UbELbXnUdc7EKwfH2sb8ChqNgapUOdqcCIdQP4NGxBpTZV2sQyeekuK3zmfQSa/MN+/7b4kBogl2wq0vpkpYGw==} peerDependencies: '@types/node': '*' @@ -3094,12 +3101,12 @@ packages: '@types/node': optional: true dependencies: - '@rushstack/node-core-library': 4.0.2(@types/node@16.18.87) - '@types/node': 16.18.87 + '@rushstack/node-core-library': 4.0.2(@types/node@16.18.89) + '@types/node': 16.18.89 supports-color: 8.1.1 dev: false - /@rushstack/terminal@0.10.0(@types/node@18.19.22): + /@rushstack/terminal@0.10.0(@types/node@18.19.24): resolution: {integrity: sha512-UbELbXnUdc7EKwfH2sb8ChqNgapUOdqcCIdQP4NGxBpTZV2sQyeekuK3zmfQSa/MN+/7b4kBogl2wq0vpkpYGw==} peerDependencies: '@types/node': '*' @@ -3107,8 +3114,8 @@ packages: '@types/node': optional: true dependencies: - '@rushstack/node-core-library': 4.0.2(@types/node@18.19.22) - '@types/node': 18.19.22 + '@rushstack/node-core-library': 4.0.2(@types/node@18.19.24) + '@types/node': 18.19.24 supports-color: 8.1.1 dev: false @@ -3121,10 +3128,10 @@ packages: string-argv: 0.3.2 dev: false - /@rushstack/ts-command-line@4.19.1(@types/node@16.18.87): + /@rushstack/ts-command-line@4.19.1(@types/node@16.18.89): resolution: {integrity: sha512-J7H768dgcpG60d7skZ5uSSwyCZs/S2HrWP1Ds8d1qYAyaaeJmpmmLr9BVw97RjFzmQPOYnoXcKA4GkqDCkduQg==} dependencies: - '@rushstack/terminal': 0.10.0(@types/node@16.18.87) + '@rushstack/terminal': 0.10.0(@types/node@16.18.89) '@types/argparse': 1.0.38 argparse: 1.0.10 string-argv: 0.3.2 @@ -3132,10 +3139,10 @@ packages: - '@types/node' dev: false - /@rushstack/ts-command-line@4.19.1(@types/node@18.19.22): + /@rushstack/ts-command-line@4.19.1(@types/node@18.19.24): resolution: {integrity: sha512-J7H768dgcpG60d7skZ5uSSwyCZs/S2HrWP1Ds8d1qYAyaaeJmpmmLr9BVw97RjFzmQPOYnoXcKA4GkqDCkduQg==} dependencies: - '@rushstack/terminal': 0.10.0(@types/node@18.19.22) + '@rushstack/terminal': 0.10.0(@types/node@18.19.24) '@types/argparse': 1.0.38 argparse: 1.0.10 string-argv: 0.3.2 @@ -3181,11 +3188,6 @@ packages: resolution: {integrity: sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg==} dev: false - /@tootallnate/once@2.0.0: - resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==} - engines: {node: '>= 10'} - dev: false - /@tootallnate/quickjs-emscripten@0.23.0: resolution: {integrity: sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==} dev: false @@ -3233,13 +3235,13 @@ packages: resolution: {integrity: sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==} dependencies: '@types/connect': 3.4.38 - '@types/node': 18.19.22 + '@types/node': 18.19.24 dev: false /@types/bunyan@1.8.9: resolution: {integrity: sha512-ZqS9JGpBxVOvsawzmVt30sP++gSQMTejCkIAQ3VdadOcRE8izTyW66hufvwLeH+YEGP6Js2AW7Gz+RMyvrEbmw==} dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 dev: false /@types/chai-as-promised@7.1.8: @@ -3261,7 +3263,7 @@ packages: /@types/connect@3.4.38: resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==} dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 dev: false /@types/cookie@0.4.1: @@ -3271,7 +3273,7 @@ packages: /@types/cors@2.8.17: resolution: {integrity: sha512-8CGDvrBj1zgo2qE+oS3pOCyYNqCPryMWY2bGfwA0dcfopWGgxs+78df0Rs3rc9THP4JkOhLsAa+15VdpAqkcUA==} dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 dev: false /@types/debug@4.1.12: @@ -3283,7 +3285,7 @@ packages: /@types/decompress@4.2.7: resolution: {integrity: sha512-9z+8yjKr5Wn73Pt17/ldnmQToaFHZxK0N1GHysuk/JIPT8RIdQeoInM01wWPgypRcvb6VH1drjuFpQ4zmY437g==} dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 dev: false /@types/eslint@8.44.9: @@ -3300,7 +3302,7 @@ packages: /@types/express-serve-static-core@4.17.43: resolution: {integrity: sha512-oaYtiBirUOPQGSWNGPWnzyAFJ0BP3cwvN4oWZQY+zUBwpVIGsKUkpBpSztp74drYcjavs7SKFZ4DX1V2QeN8rg==} dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/qs': 6.9.12 '@types/range-parser': 1.2.7 '@types/send': 0.17.4 @@ -3319,19 +3321,19 @@ packages: resolution: {integrity: sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==} dependencies: '@types/jsonfile': 6.1.4 - '@types/node': 18.19.22 + '@types/node': 18.19.24 dev: false /@types/fs-extra@8.1.5: resolution: {integrity: sha512-0dzKcwO+S8s2kuF5Z9oUWatQJj5Uq/iqphEtE3GQJVRRYm/tD1LglU2UnXi2A8jLq5umkGouOXOR9y0n613ZwQ==} dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 dev: false /@types/fs-extra@9.0.13: resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==} dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 dev: false /@types/http-errors@2.0.4: @@ -3348,7 +3350,7 @@ packages: /@types/is-buffer@2.0.2: resolution: {integrity: sha512-G6OXy83Va+xEo8XgqAJYOuvOMxeey9xM5XKkvwJNmN8rVdcB+r15HvHsG86hl86JvU0y1aa7Z2ERkNFYWw9ySg==} dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 dev: false /@types/istanbul-lib-coverage@2.0.6: @@ -3366,19 +3368,19 @@ packages: /@types/jsonfile@6.1.4: resolution: {integrity: sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==} dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 dev: false /@types/jsonwebtoken@9.0.6: resolution: {integrity: sha512-/5hndP5dCjloafCXns6SZyESp3Ldq7YjH3zwzwczYnjxIT0Fqzk5ROSYVGfFyczIue7IUEj8hkvLbPoLQ18vQw==} dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 dev: false /@types/jws@3.2.9: resolution: {integrity: sha512-xAqC7PI7QSBY3fXV1f2pbcdbBFoR4dF8+lH2z6MfZQVcGe14twYVfjzJ3CHhLS1NHxE+DnjUR5xaHu2/U9GGaQ==} dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 dev: false /@types/linkify-it@3.0.5: @@ -3429,22 +3431,22 @@ packages: /@types/mysql@2.15.22: resolution: {integrity: sha512-wK1pzsJVVAjYCSZWQoWHziQZbNggXFDUEIGf54g4ZM/ERuP86uGdWeKZWMYlqTPMZfHJJvLPyogXGvCOg87yLQ==} dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 dev: false /@types/node-fetch@2.6.11: resolution: {integrity: sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==} dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 form-data: 4.0.0 dev: false - /@types/node@16.18.87: - resolution: {integrity: sha512-+IzfhNirR/MDbXz6Om5eHV54D9mQlEMGag6AgEzlju0xH3M8baCXYwqQ6RKgGMpn9wSTx6Ltya/0y4Z8eSfdLw==} + /@types/node@16.18.89: + resolution: {integrity: sha512-QlrE8QI5z62nfnkiUZysUsAaxWaTMoGqFVcB3PvK1WxJ0c699bacErV4Fabe9Hki6ZnaHalgzihLbTl2d34XfQ==} dev: false - /@types/node@18.19.22: - resolution: {integrity: sha512-p3pDIfuMg/aXBmhkyanPshdfJuX5c5+bQjYLIikPLXAUycEogij/c50n/C+8XOA5L93cU4ZRXtn+dNQGi0IZqQ==} + /@types/node@18.19.24: + resolution: {integrity: sha512-eghAz3gnbQbvnHqB+mgB2ZR3aH6RhdEmHGS48BnV75KceQPHqabkxKI0BbUSsqhqy2Ddhc2xD/VAR9ySZd57Lw==} dependencies: undici-types: 5.26.5 dev: false @@ -3468,7 +3470,7 @@ packages: /@types/pg@8.6.1: resolution: {integrity: sha512-1Kc4oAGzAl7uqUStZCDvaLFqZrW9qWSjXOmBfdgyBP5La7Us6Mg4GBvRlSoaZMhQF/zSj1C8CtKMBkoiT8eL8w==} dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 pg-protocol: 1.6.0 pg-types: 2.2.0 dev: false @@ -3488,7 +3490,7 @@ packages: /@types/readdir-glob@1.1.5: resolution: {integrity: sha512-raiuEPUYqXu+nvtY2Pe8s8FEmZ3x5yAH4VkLdihcPdalvsHltomrRC9BzuStrJ9yk06470hS0Crw0f1pXqD+Hg==} dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 dev: false /@types/resolve@1.20.2: @@ -3507,7 +3509,7 @@ packages: resolution: {integrity: sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==} dependencies: '@types/mime': 1.3.5 - '@types/node': 18.19.22 + '@types/node': 18.19.24 dev: false /@types/serve-static@1.15.5: @@ -3515,7 +3517,7 @@ packages: dependencies: '@types/http-errors': 2.0.4 '@types/mime': 3.0.4 - '@types/node': 18.19.22 + '@types/node': 18.19.24 dev: false /@types/shimmer@1.0.5: @@ -3535,13 +3537,13 @@ packages: /@types/stoppable@1.1.3: resolution: {integrity: sha512-7wGKIBJGE4ZxFjk9NkjAxZMLlIXroETqP1FJCdoSvKmEznwmBxQFmTB1dsCkAvVcNemuSZM5qkkd9HE/NL2JTw==} dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 dev: false /@types/through@0.0.33: resolution: {integrity: sha512-HsJ+z3QuETzP3cswwtzt2vEIiHBk/dCcHGhbmG5X3ecnwFD/lPrMpliGXxSCg03L9AhrdwA4Oz/qfspkDW+xGQ==} dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 dev: false /@types/trusted-types@2.0.7: @@ -3551,7 +3553,7 @@ packages: /@types/tunnel@0.0.3: resolution: {integrity: sha512-sOUTGn6h1SfQ+gbgqC364jLFBw2lnFqkgF3q0WovEHRLMrVD1sd5aufqi/aJObLekJO+Aq5z646U4Oxy6shXMA==} dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 dev: false /@types/underscore@1.11.15: @@ -3569,13 +3571,13 @@ packages: /@types/ws@7.4.7: resolution: {integrity: sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==} dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 dev: false /@types/ws@8.5.10: resolution: {integrity: sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A==} dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 dev: false /@types/wtfnode@0.7.2: @@ -3596,7 +3598,7 @@ packages: resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} requiresBuild: true dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 dev: false optional: true @@ -3747,12 +3749,12 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: false - /@vitest/browser@1.3.1(playwright@1.42.1)(vitest@1.3.1): - resolution: {integrity: sha512-pRof8G8nqRWwg3ouyIctyhfIVk5jXgF056uF//sqdi37+pVtDz9kBI/RMu0xlc8tgCyJ2aEMfbgJZPUydlEVaQ==} + /@vitest/browser@1.4.0(playwright@1.42.1)(vitest@1.4.0): + resolution: {integrity: sha512-kC44DzuqPZZrqe2P7SX2a3zHDAt919WtpkUMAxzv9eP5uPfVXtpk2Ipms2NXJGY5190aJc1uY+ambfJ3rwDJRA==} peerDependencies: playwright: '*' safaridriver: '*' - vitest: 1.3.1 + vitest: 1.4.0 webdriverio: '*' peerDependenciesMeta: playwright: @@ -3762,64 +3764,64 @@ packages: webdriverio: optional: true dependencies: - '@vitest/utils': 1.3.1 + '@vitest/utils': 1.4.0 magic-string: 0.30.8 playwright: 1.42.1 sirv: 2.0.4 - vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) dev: false - /@vitest/coverage-istanbul@1.3.1(vitest@1.3.1): - resolution: {integrity: sha512-aBVgQ2eY9gzrxBJjGKbWgatTU2w1CacEx0n8OMctPzl9836KqoM5X/WigJpjM7wZEtX2N0ZTE5KDGPmVM+o2Wg==} + /@vitest/coverage-istanbul@1.4.0(vitest@1.4.0): + resolution: {integrity: sha512-39TjURYyAY6CLDx8M1RNYGoAuWicPWoofk+demJbAZROLCwUgGPgMRSg51GN+snbmQRTpSizuS9XC3cMSdQH2Q==} peerDependencies: - vitest: 1.3.1 + vitest: 1.4.0 dependencies: debug: 4.3.4(supports-color@8.1.1) istanbul-lib-coverage: 3.2.2 istanbul-lib-instrument: 6.0.2 istanbul-lib-report: 3.0.1 - istanbul-lib-source-maps: 4.0.1 + istanbul-lib-source-maps: 5.0.4 istanbul-reports: 3.1.7 magicast: 0.3.3 picocolors: 1.0.0 test-exclude: 6.0.0 - vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - supports-color dev: false - /@vitest/expect@1.3.1: - resolution: {integrity: sha512-xofQFwIzfdmLLlHa6ag0dPV8YsnKOCP1KdAeVVh34vSjN2dcUiXYCD9htu/9eM7t8Xln4v03U9HLxLpPlsXdZw==} + /@vitest/expect@1.4.0: + resolution: {integrity: sha512-Jths0sWCJZ8BxjKe+p+eKsoqev1/T8lYcrjavEaz8auEJ4jAVY0GwW3JKmdVU4mmNPLPHixh4GNXP7GFtAiDHA==} dependencies: - '@vitest/spy': 1.3.1 - '@vitest/utils': 1.3.1 + '@vitest/spy': 1.4.0 + '@vitest/utils': 1.4.0 chai: 4.3.10 dev: false - /@vitest/runner@1.3.1: - resolution: {integrity: sha512-5FzF9c3jG/z5bgCnjr8j9LNq/9OxV2uEBAITOXfoe3rdZJTdO7jzThth7FXv/6b+kdY65tpRQB7WaKhNZwX+Kg==} + /@vitest/runner@1.4.0: + resolution: {integrity: sha512-EDYVSmesqlQ4RD2VvWo3hQgTJ7ZrFQ2VSJdfiJiArkCerDAGeyF1i6dHkmySqk573jLp6d/cfqCN+7wUB5tLgg==} dependencies: - '@vitest/utils': 1.3.1 + '@vitest/utils': 1.4.0 p-limit: 5.0.0 pathe: 1.1.2 dev: false - /@vitest/snapshot@1.3.1: - resolution: {integrity: sha512-EF++BZbt6RZmOlE3SuTPu/NfwBF6q4ABS37HHXzs2LUVPBLx2QoY/K0fKpRChSo8eLiuxcbCVfqKgx/dplCDuQ==} + /@vitest/snapshot@1.4.0: + resolution: {integrity: sha512-saAFnt5pPIA5qDGxOHxJ/XxhMFKkUSBJmVt5VgDsAqPTX6JP326r5C/c9UuCMPoXNzuudTPsYDZCoJ5ilpqG2A==} dependencies: magic-string: 0.30.8 pathe: 1.1.2 pretty-format: 29.7.0 dev: false - /@vitest/spy@1.3.1: - resolution: {integrity: sha512-xAcW+S099ylC9VLU7eZfdT9myV67Nor9w9zhf0mGCYJSO+zM2839tOeROTdikOi/8Qeusffvxb/MyBSOja1Uig==} + /@vitest/spy@1.4.0: + resolution: {integrity: sha512-Ywau/Qs1DzM/8Uc+yA77CwSegizMlcgTJuYGAi0jujOteJOUf1ujunHThYo243KG9nAyWT3L9ifPYZ5+As/+6Q==} dependencies: tinyspy: 2.2.1 dev: false - /@vitest/utils@1.3.1: - resolution: {integrity: sha512-d3Waie/299qqRyHTm2DjADeTaNdNSVsnwHPWrs20JMpjh6eiVq7ggggweO8rc4arhf6rRkWuHKwvxGvejUXZZQ==} + /@vitest/utils@1.4.0: + resolution: {integrity: sha512-mx3Yd1/6e2Vt/PUC98DcqTirtfxUyAZ32uK82r8rZzbtBeBo+nqgnjx/LvqQdWsrvNtm14VmurNgcf4nqY5gJg==} dependencies: diff-sequences: 29.6.3 estree-walker: 3.0.3 @@ -3869,15 +3871,6 @@ packages: hasBin: true dev: false - /agent-base@6.0.2: - resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==} - engines: {node: '>= 6.0.0'} - dependencies: - debug: 4.3.4(supports-color@8.1.1) - transitivePeerDependencies: - - supports-color - dev: false - /agent-base@7.1.0: resolution: {integrity: sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==} engines: {node: '>= 14'} @@ -4163,19 +4156,19 @@ packages: dev: false optional: true - /bare-fs@2.2.1: - resolution: {integrity: sha512-+CjmZANQDFZWy4PGbVdmALIwmt33aJg8qTkVjClU6X4WmZkTPBDxRHiBn7fpqEWEfF3AC2io++erpViAIQbSjg==} + /bare-fs@2.2.2: + resolution: {integrity: sha512-X9IqgvyB0/VA5OZJyb5ZstoN62AzD7YxVGog13kkfYWYqJYcK0kcqLZ6TrmH5qr4/8//ejVcX4x/a0UvaogXmA==} requiresBuild: true dependencies: bare-events: 2.2.1 - bare-os: 2.2.0 + bare-os: 2.2.1 bare-path: 2.1.0 streamx: 2.16.1 dev: false optional: true - /bare-os@2.2.0: - resolution: {integrity: sha512-hD0rOPfYWOMpVirTACt4/nK8mC55La12K5fY1ij8HAdfQakD62M+H4o4tpfKzVGLgRDTuk3vjA4GqGXXCeFbag==} + /bare-os@2.2.1: + resolution: {integrity: sha512-OwPyHgBBMkhC29Hl3O4/YfxW9n7mdTr2+SsO29XBWKKJsbgj3mnorDB80r5TiCQgQstgE5ga1qNYrpes6NvX2w==} requiresBuild: true dev: false optional: true @@ -4184,7 +4177,7 @@ packages: resolution: {integrity: sha512-DIIg7ts8bdRKwJRJrUMy/PICEaQZaPGZ26lsSx9MJSwIhSrcdHn7/C8W+XmnG/rKi6BaRcz+JO00CjZteybDtw==} requiresBuild: true dependencies: - bare-os: 2.2.0 + bare-os: 2.2.1 dev: false optional: true @@ -4202,8 +4195,8 @@ packages: engines: {node: '>=10.0.0'} dev: false - /binary-extensions@2.2.0: - resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==} + /binary-extensions@2.3.0: + resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} engines: {node: '>=8'} dev: false @@ -4273,8 +4266,8 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true dependencies: - caniuse-lite: 1.0.30001597 - electron-to-chromium: 1.4.700 + caniuse-lite: 1.0.30001599 + electron-to-chromium: 1.4.708 node-releases: 2.0.14 update-browserslist-db: 1.0.13(browserslist@4.23.0) dev: false @@ -4395,8 +4388,8 @@ packages: engines: {node: '>=10'} dev: false - /caniuse-lite@1.0.30001597: - resolution: {integrity: sha512-7LjJvmQU6Sj7bL0j5b5WY/3n7utXUJvAe1lxhsHDbLmwX9mdL86Yjtr+5SRCyf8qME4M7pU2hswj0FpyBVCv9w==} + /caniuse-lite@1.0.30001599: + resolution: {integrity: sha512-LRAQHZ4yT1+f9LemSMeqdMpMxZcc4RMWdj4tiFe3G8tNkWK+E58g+/tzotb5cU6TbcVJLr4fySiAW7XmxQvZQA==} dev: false /catharsis@0.9.0: @@ -4523,14 +4516,15 @@ packages: resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==} dev: false - /chromium-bidi@0.5.12(devtools-protocol@0.0.1249869): - resolution: {integrity: sha512-sZMgEBWKbupD0Q7lyFu8AWkrE+rs5ycE12jFkGwIgD/VS8lDPtelPlXM7LYaq4zrkZ/O2L3f4afHUHL0ICdKog==} + /chromium-bidi@0.5.13(devtools-protocol@0.0.1249869): + resolution: {integrity: sha512-OHbYCetDxdW/xmlrafgOiLsIrw4Sp1BEeolbZ1UGJO5v/nekQOJBj/Kzyw6sqKcAVabUTo0GS3cTYgr6zIf00g==} peerDependencies: devtools-protocol: '*' dependencies: devtools-protocol: 0.0.1249869 mitt: 3.0.1 urlpattern-polyfill: 10.0.0 + zod: 3.22.4 dev: false /cjs-module-lexer@1.2.3: @@ -4783,14 +4777,6 @@ packages: cross-spawn: 7.0.3 dev: false - /cross-fetch@4.0.0: - resolution: {integrity: sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==} - dependencies: - node-fetch: 2.7.0 - transitivePeerDependencies: - - encoding - dev: false - /cross-spawn@7.0.3: resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} engines: {node: '>= 8'} @@ -4813,6 +4799,33 @@ packages: engines: {node: '>= 14'} dev: false + /data-view-buffer@1.0.1: + resolution: {integrity: sha512-0lht7OugA5x3iJLOWFhWK/5ehONdprk0ISXqVFn/NFrDu+cuc8iADFrGQz5BnRK7LLU3JmkbXSxaqX+/mXYtUA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + is-data-view: 1.0.1 + dev: false + + /data-view-byte-length@1.0.1: + resolution: {integrity: sha512-4J7wRJD3ABAzr8wP+OcIcqq2dlUKp4DVflx++hs5h5ZKydWMI6/D/fAot+yh6g2tHh8fLFTvNOaVN357NvSrOQ==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + is-data-view: 1.0.1 + dev: false + + /data-view-byte-offset@1.0.0: + resolution: {integrity: sha512-t/Ygsytq+R995EJ5PZlD4Cu56sWa8InXySaViRzw9apusqsOO2bQP+SbYzAhR0pFKoB+43lYy8rWban9JSuXnA==} + engines: {node: '>= 0.4'} + dependencies: + call-bind: 1.0.7 + es-errors: 1.3.0 + is-data-view: 1.0.1 + dev: false + /date-fns@2.30.0: resolution: {integrity: sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==} engines: {node: '>=0.11'} @@ -5091,8 +5104,8 @@ packages: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} dev: false - /electron-to-chromium@1.4.700: - resolution: {integrity: sha512-40dqKQ3F7C8fbBEmjSeJ+qEHCKzPyrP9SkeIBZ3wSCUH9nhWStrDz030XlDzlhNhlul1Z0fz7TpDFnsIzo4Jtg==} + /electron-to-chromium@1.4.708: + resolution: {integrity: sha512-iWgEEvREL4GTXXHKohhh33+6Y8XkPI5eHihDmm8zUk5Zo7HICEW+wI/j5kJ2tbuNUCXJ/sNXa03ajW635DiJXA==} dev: false /emitter-component@1.1.2: @@ -5129,7 +5142,7 @@ packages: dependencies: '@types/cookie': 0.4.1 '@types/cors': 2.8.17 - '@types/node': 18.19.22 + '@types/node': 18.19.24 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.4.2 @@ -5198,8 +5211,60 @@ packages: regexp.prototype.flags: 1.5.2 safe-array-concat: 1.1.2 safe-regex-test: 1.0.3 - string.prototype.trim: 1.2.8 - string.prototype.trimend: 1.0.7 + string.prototype.trim: 1.2.9 + string.prototype.trimend: 1.0.8 + string.prototype.trimstart: 1.0.7 + typed-array-buffer: 1.0.2 + typed-array-byte-length: 1.0.1 + typed-array-byte-offset: 1.0.2 + typed-array-length: 1.0.5 + unbox-primitive: 1.0.2 + which-typed-array: 1.1.15 + dev: false + + /es-abstract@1.23.2: + resolution: {integrity: sha512-60s3Xv2T2p1ICykc7c+DNDPLDMm9t4QxCOUU0K9JxiLjM3C1zB9YVdN7tjxrFd4+AkZ8CdX1ovUga4P2+1e+/w==} + engines: {node: '>= 0.4'} + dependencies: + array-buffer-byte-length: 1.0.1 + arraybuffer.prototype.slice: 1.0.3 + available-typed-arrays: 1.0.7 + call-bind: 1.0.7 + data-view-buffer: 1.0.1 + data-view-byte-length: 1.0.1 + data-view-byte-offset: 1.0.0 + es-define-property: 1.0.0 + es-errors: 1.3.0 + es-object-atoms: 1.0.0 + es-set-tostringtag: 2.0.3 + es-to-primitive: 1.2.1 + function.prototype.name: 1.1.6 + get-intrinsic: 1.2.4 + get-symbol-description: 1.0.2 + globalthis: 1.0.3 + gopd: 1.0.1 + has-property-descriptors: 1.0.2 + has-proto: 1.0.3 + has-symbols: 1.0.3 + hasown: 2.0.2 + internal-slot: 1.0.7 + is-array-buffer: 3.0.4 + is-callable: 1.2.7 + is-data-view: 1.0.1 + is-negative-zero: 2.0.3 + is-regex: 1.1.4 + is-shared-array-buffer: 1.0.3 + is-string: 1.0.7 + is-typed-array: 1.1.13 + is-weakref: 1.0.2 + object-inspect: 1.13.1 + object-keys: 1.1.1 + object.assign: 4.1.5 + regexp.prototype.flags: 1.5.2 + safe-array-concat: 1.1.2 + safe-regex-test: 1.0.3 + string.prototype.trim: 1.2.9 + string.prototype.trimend: 1.0.8 string.prototype.trimstart: 1.0.7 typed-array-buffer: 1.0.2 typed-array-byte-length: 1.0.1 @@ -5225,6 +5290,13 @@ packages: engines: {node: '>= 0.4'} dev: false + /es-object-atoms@1.0.0: + resolution: {integrity: sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==} + engines: {node: '>= 0.4'} + dependencies: + es-errors: 1.3.0 + dev: false + /es-set-tostringtag@2.0.3: resolution: {integrity: sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ==} engines: {node: '>= 0.4'} @@ -5751,8 +5823,8 @@ packages: resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} dev: false - /fast-xml-parser@4.3.5: - resolution: {integrity: sha512-sWvP1Pl8H03B8oFJpFR3HE31HUfwtX7Rlf9BNsvdpujD4n7WMhfmu8h9wOV2u+c1k0ZilTADhPqypzx2J690ZQ==} + /fast-xml-parser@4.3.6: + resolution: {integrity: sha512-M2SovcRxD4+vC493Uc2GZVcZaj66CCJhWurC4viynVSTvrpErCShNcDz1lAho6n9REQKvL/ll4A4/fw6Y9z8nw==} hasBin: true dependencies: strnum: 1.0.5 @@ -5879,8 +5951,8 @@ packages: resolution: {integrity: sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==} dev: false - /follow-redirects@1.15.5(debug@4.3.4): - resolution: {integrity: sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==} + /follow-redirects@1.15.6(debug@4.3.4): + resolution: {integrity: sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==} engines: {node: '>=4.0'} peerDependencies: debug: '*' @@ -6283,17 +6355,6 @@ packages: toidentifier: 1.0.1 dev: false - /http-proxy-agent@5.0.0: - resolution: {integrity: sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==} - engines: {node: '>= 6'} - dependencies: - '@tootallnate/once': 2.0.0 - agent-base: 6.0.2 - debug: 4.3.4(supports-color@8.1.1) - transitivePeerDependencies: - - supports-color - dev: false - /http-proxy-agent@7.0.0: resolution: {integrity: sha512-+ZT+iBxVUQ1asugqnD6oWoRiS25AkjNfG085dKJGtGxkdwLQrMKU5wJr2bOOFAXzKcTuqq+7fZlTMgG3SRfIYQ==} engines: {node: '>= 14'} @@ -6319,22 +6380,12 @@ packages: engines: {node: '>=8.0.0'} dependencies: eventemitter3: 4.0.7 - follow-redirects: 1.15.5(debug@4.3.4) + follow-redirects: 1.15.6(debug@4.3.4) requires-port: 1.0.0 transitivePeerDependencies: - debug dev: false - /https-proxy-agent@5.0.1: - resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==} - engines: {node: '>= 6'} - dependencies: - agent-base: 6.0.2 - debug: 4.3.4(supports-color@8.1.1) - transitivePeerDependencies: - - supports-color - dev: false - /https-proxy-agent@7.0.2: resolution: {integrity: sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA==} engines: {node: '>= 14'} @@ -6524,7 +6575,7 @@ packages: resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} engines: {node: '>=8'} dependencies: - binary-extensions: 2.2.0 + binary-extensions: 2.3.0 dev: false /is-boolean-object@1.1.2: @@ -6558,6 +6609,13 @@ packages: hasown: 2.0.2 dev: false + /is-data-view@1.0.1: + resolution: {integrity: sha512-AHkaJrsUVW6wq6JS8y3JnM/GJF/9cf+k20+iDzlSaJrinEo5+7vRiteOSwBhHRiAyQATN1AmY4hwzxJKPmYf+w==} + engines: {node: '>= 0.4'} + dependencies: + is-typed-array: 1.1.13 + dev: false + /is-date-object@1.0.5: resolution: {integrity: sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==} engines: {node: '>= 0.4'} @@ -6830,6 +6888,17 @@ packages: - supports-color dev: false + /istanbul-lib-source-maps@5.0.4: + resolution: {integrity: sha512-wHOoEsNJTVltaJp8eVkm8w+GVkVNHT2YDYo53YdzQEL2gWm1hBX5cGFR9hQJtuGLebidVX7et3+dmDZrmclduw==} + engines: {node: '>=10'} + dependencies: + '@jridgewell/trace-mapping': 0.3.25 + debug: 4.3.4(supports-color@8.1.1) + istanbul-lib-coverage: 3.2.2 + transitivePeerDependencies: + - supports-color + dev: false + /istanbul-reports@3.1.7: resolution: {integrity: sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==} engines: {node: '>=8'} @@ -7178,7 +7247,7 @@ packages: qjobs: 1.2.0 range-parser: 1.2.1 rimraf: 3.0.2 - socket.io: 4.7.4 + socket.io: 4.7.5 source-map: 0.6.1 tmp: 0.2.3 ua-parser-js: 0.7.37 @@ -7401,7 +7470,7 @@ packages: dependencies: '@babel/parser': 7.24.0 '@babel/types': 7.24.0 - source-map-js: 1.0.2 + source-map-js: 1.1.0 dev: false /make-dir@1.3.0: @@ -7662,7 +7731,7 @@ packages: acorn: 8.11.3 pathe: 1.1.2 pkg-types: 1.0.3 - ufo: 1.4.0 + ufo: 1.5.2 dev: false /mocha@10.3.0: @@ -8295,13 +8364,13 @@ packages: engines: {node: '>= 0.4'} dev: false - /postcss@8.4.35: - resolution: {integrity: sha512-u5U8qYpBCpN13BsiEB0CbR1Hhh4Gc0zLFuedrHJKMctHCHAGrMdG0PRM/KErzAL3CU6/eckEtmHNB3x6e3c0vA==} + /postcss@8.4.36: + resolution: {integrity: sha512-/n7eumA6ZjFHAsbX30yhHup/IMkOmlmvtEi7P+6RMYf+bGJSUHc3geH4a0NSZxAz/RJfiS9tooCTs9LAVYUZKw==} engines: {node: ^10 || ^12 || >=14} dependencies: nanoid: 3.3.7 picocolors: 1.0.0 - source-map-js: 1.0.2 + source-map-js: 1.1.0 dev: false /postgres-array@2.0.0: @@ -8447,7 +8516,7 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 18.19.22 + '@types/node': 18.19.24 long: 5.2.3 dev: false @@ -8495,35 +8564,32 @@ packages: engines: {node: '>=6'} dev: false - /puppeteer-core@22.4.1: - resolution: {integrity: sha512-l9nf8NcirYOHdID12CIMWyy7dqcJCVtgVS+YAiJuUJHg8+9yjgPiG2PcNhojIEEpCkvw3FxvnyITVfKVmkWpjA==} + /puppeteer-core@22.5.0: + resolution: {integrity: sha512-bcfmM1nNSysjnES/ZZ1KdwFAFFGL3N76qRpisBb4WL7f4UAD4vPDxlhKZ1HJCDgMSWeYmeder4kftyp6lKqMYg==} engines: {node: '>=18'} dependencies: - '@puppeteer/browsers': 2.1.0 - chromium-bidi: 0.5.12(devtools-protocol@0.0.1249869) - cross-fetch: 4.0.0 + '@puppeteer/browsers': 2.2.0 + chromium-bidi: 0.5.13(devtools-protocol@0.0.1249869) debug: 4.3.4(supports-color@8.1.1) devtools-protocol: 0.0.1249869 ws: 8.16.0 transitivePeerDependencies: - bufferutil - - encoding - supports-color - utf-8-validate dev: false - /puppeteer@22.4.1(typescript@5.3.3): - resolution: {integrity: sha512-Mag1wRLanzwS4yEUyrDRBUgsKlH3dpL6oAfVwNHG09oxd0+ySsatMvYj7HwjynWy/S+Hg+XHLgjyC/F6CsL/lg==} + /puppeteer@22.5.0(typescript@5.3.3): + resolution: {integrity: sha512-PNVflixb6w3FMhehYhLcaQHTCcNKVkjxekzyvWr0n0yBnhUYF0ZhiG4J1I14Mzui2oW8dGvUD8kbXj0GiN1pFg==} engines: {node: '>=18'} hasBin: true requiresBuild: true dependencies: - '@puppeteer/browsers': 2.1.0 + '@puppeteer/browsers': 2.2.0 cosmiconfig: 9.0.0(typescript@5.3.3) - puppeteer-core: 22.4.1 + puppeteer-core: 22.5.0 transitivePeerDependencies: - bufferutil - - encoding - supports-color - typescript - utf-8-validate @@ -8678,8 +8744,8 @@ packages: engines: {node: '>=0.10.0'} dev: false - /require-in-the-middle@7.2.0: - resolution: {integrity: sha512-3TLx5TGyAY6AOqLBoXmHkNql0HIf2RGbuMgCDT2WO/uGVAPJs6h7Kl+bN6TIZGd9bWhWPwnDnTHGtW8Iu77sdw==} + /require-in-the-middle@7.2.1: + resolution: {integrity: sha512-u5XngygsJ+XV2dBV/Pl4SrcNpUXQfmYmXtuFeHDXfzk4i4NnGnret6xKWkkJHjMHS/16yMV9pEAlAunqmjllkA==} engines: {node: '>=8.6.0'} dependencies: debug: 4.3.4(supports-color@8.1.1) @@ -8797,16 +8863,16 @@ packages: glob: 10.3.10 dev: false - /rollup-plugin-polyfill-node@0.13.0(rollup@4.12.1): + /rollup-plugin-polyfill-node@0.13.0(rollup@4.13.0): 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.1) - rollup: 4.12.1 + '@rollup/plugin-inject': 5.0.5(rollup@4.13.0) + rollup: 4.13.0 dev: false - /rollup-plugin-visualizer@5.12.0(rollup@4.12.1): + /rollup-plugin-visualizer@5.12.0(rollup@4.13.0): resolution: {integrity: sha512-8/NU9jXcHRs7Nnj07PF2o4gjxmm9lXIrZ8r175bT9dK8qoLlvKTwRMArRCMgpMGlq8CTLugRvEmyMeMXIU2pNQ==} engines: {node: '>=14'} hasBin: true @@ -8818,31 +8884,31 @@ packages: dependencies: open: 8.4.2 picomatch: 2.3.1 - rollup: 4.12.1 + rollup: 4.13.0 source-map: 0.7.4 yargs: 17.7.2 dev: false - /rollup@4.12.1: - resolution: {integrity: sha512-ggqQKvx/PsB0FaWXhIvVkSWh7a/PCLQAsMjBc+nA2M8Rv2/HG0X6zvixAB7KyZBRtifBUhy5k8voQX/mRnABPg==} + /rollup@4.13.0: + resolution: {integrity: sha512-3YegKemjoQnYKmsBlOHfMLVPPA5xLkQ8MHLLSw/fBrFaVkEayL51DilPpNNLq1exr98F2B1TzrV0FUlN3gWRPg==} 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.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 + '@rollup/rollup-android-arm-eabi': 4.13.0 + '@rollup/rollup-android-arm64': 4.13.0 + '@rollup/rollup-darwin-arm64': 4.13.0 + '@rollup/rollup-darwin-x64': 4.13.0 + '@rollup/rollup-linux-arm-gnueabihf': 4.13.0 + '@rollup/rollup-linux-arm64-gnu': 4.13.0 + '@rollup/rollup-linux-arm64-musl': 4.13.0 + '@rollup/rollup-linux-riscv64-gnu': 4.13.0 + '@rollup/rollup-linux-x64-gnu': 4.13.0 + '@rollup/rollup-linux-x64-musl': 4.13.0 + '@rollup/rollup-win32-arm64-msvc': 4.13.0 + '@rollup/rollup-win32-ia32-msvc': 4.13.0 + '@rollup/rollup-win32-x64-msvc': 4.13.0 fsevents: 2.3.3 dev: false @@ -9102,8 +9168,8 @@ packages: - supports-color dev: false - /socket.io@4.7.4: - resolution: {integrity: sha512-DcotgfP1Zg9iP/dH9zvAQcWrE0TtbMVwXmlV4T4mqsvY+gw+LqUGPfx2AoVyRk0FLME+GQhufDMyacFmw7ksqw==} + /socket.io@4.7.5: + resolution: {integrity: sha512-DmeAkF6cwM9jSfmp6Dr/5/mfMwb5Z5qRrSXLpo3Fq5SqyU8CMF15jIN4ZhfSwu35ksM1qmHZDQ/DK5XTccSTvA==} engines: {node: '>=10.2.0'} dependencies: accepts: 1.3.8 @@ -9138,8 +9204,8 @@ packages: smart-buffer: 4.2.0 dev: false - /source-map-js@1.0.2: - resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==} + /source-map-js@1.1.0: + resolution: {integrity: sha512-9vC2SfsJzlej6MAaMPLu8HiBSHGdRAJ9hVFYN1ibZoNkeanmDmLUcIrj6G9DGL7XMJ54AKg/G75akXl1/izTOw==} engines: {node: '>=0.10.0'} dev: false @@ -9256,21 +9322,22 @@ packages: strip-ansi: 7.1.0 dev: false - /string.prototype.trim@1.2.8: - resolution: {integrity: sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==} + /string.prototype.trim@1.2.9: + resolution: {integrity: sha512-klHuCNxiMZ8MlsOihJhJEBJAiMVqU3Z2nEXWfWnIqjN0gEFS9J9+IxKozWWtQGcgoa1WUZzLjKPTr4ZHNFTFxw==} engines: {node: '>= 0.4'} dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.5 + es-abstract: 1.23.2 + es-object-atoms: 1.0.0 dev: false - /string.prototype.trimend@1.0.7: - resolution: {integrity: sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==} + /string.prototype.trimend@1.0.8: + resolution: {integrity: sha512-p73uL5VCHCO2BZZ6krwwQE3kCzM7NKmis8S//xEC6fQonchbum4eP6kR4DLEjQFO3Wnj3Fuo8NM0kOSjVdHjZQ==} dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.5 + es-object-atoms: 1.0.0 dev: false /string.prototype.trimstart@1.0.7: @@ -9421,7 +9488,7 @@ packages: pump: 3.0.0 tar-stream: 3.1.7 optionalDependencies: - bare-fs: 2.2.1 + bare-fs: 2.2.2 bare-path: 2.1.0 dev: false @@ -9559,7 +9626,7 @@ packages: code-block-writer: 13.0.1 dev: false - /ts-node@10.9.2(@types/node@16.18.87)(typescript@5.3.3): + /ts-node@10.9.2(@types/node@16.18.89)(typescript@5.3.3): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: @@ -9578,7 +9645,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 16.18.87 + '@types/node': 16.18.89 acorn: 8.11.3 acorn-walk: 8.3.2 arg: 4.1.3 @@ -9590,7 +9657,7 @@ packages: yn: 3.1.1 dev: false - /ts-node@10.9.2(@types/node@18.19.22)(typescript@5.2.2): + /ts-node@10.9.2(@types/node@18.19.24)(typescript@5.2.2): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: @@ -9609,7 +9676,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 18.19.22 + '@types/node': 18.19.24 acorn: 8.11.3 acorn-walk: 8.3.2 arg: 4.1.3 @@ -9621,7 +9688,7 @@ packages: yn: 3.1.1 dev: false - /ts-node@10.9.2(@types/node@18.19.22)(typescript@5.3.3): + /ts-node@10.9.2(@types/node@18.19.24)(typescript@5.3.3): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: @@ -9640,7 +9707,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 18.19.22 + '@types/node': 18.19.24 acorn: 8.11.3 acorn-walk: 8.3.2 arg: 4.1.3 @@ -9873,8 +9940,8 @@ packages: resolution: {integrity: sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==} dev: false - /ufo@1.4.0: - resolution: {integrity: sha512-Hhy+BhRBleFjpJ2vchUNN40qgkh0366FWJGqVLYBHev0vpHTrXSA0ryT+74UiW6KWsldNurQMKGqCm1M2zBciQ==} + /ufo@1.5.2: + resolution: {integrity: sha512-eiutMaL0J2MKdhcOM1tUy13pIrYnyR87fEd8STJQFrrAwImwvlXkxlZEjaKah8r2viPohld08lt73QfLG1NxMg==} dev: false /uglify-js@3.17.4: @@ -9907,8 +9974,8 @@ packages: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} dev: false - /undici@6.7.1: - resolution: {integrity: sha512-+Wtb9bAQw6HYWzCnxrPTMVEV3Q1QjYanI0E4q02ehReMuquQdLTEFEYbfs7hcImVYKcQkWSwT6buEmSVIiDDtQ==} + /undici@6.9.0: + resolution: {integrity: sha512-XPWfXzJedevUziHwun70EKNvGnxv4CnfraFZ4f/JV01+fcvMYzHE26r/j8AY/9c/70nkN4B1zX7E2Oyuqwz4+Q==} engines: {node: '>=18.0'} dev: false @@ -10027,8 +10094,8 @@ packages: engines: {node: '>= 0.8'} dev: false - /vite-node@1.3.1(@types/node@18.19.22): - resolution: {integrity: sha512-azbRrqRxlWTJEVbzInZCTchx0X69M/XPTCz4H+TLvlTcR/xH/3hkRqhOakT41fMJCMzXTu4UvegkZiEoJAWvng==} + /vite-node@1.4.0(@types/node@18.19.24): + resolution: {integrity: sha512-VZDAseqjrHgNd4Kh8icYHWzTKSCZMhia7GyHfhtzLW33fZlG9SwsB6CEhgyVOWkJfJ2pFLrp/Gj1FSfAiqH9Lw==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true dependencies: @@ -10036,7 +10103,7 @@ packages: debug: 4.3.4(supports-color@8.1.1) pathe: 1.1.2 picocolors: 1.0.0 - vite: 5.1.6(@types/node@18.19.22) + vite: 5.1.6(@types/node@18.19.24) transitivePeerDependencies: - '@types/node' - less @@ -10048,7 +10115,7 @@ packages: - terser dev: false - /vite@5.1.6(@types/node@18.19.22): + /vite@5.1.6(@types/node@18.19.24): resolution: {integrity: sha512-yYIAZs9nVfRJ/AiOLCA91zzhjsHUgMjB+EigzFb6W2XTLO8JixBCKCjvhKZaye+NKYHCrkv3Oh50dH9EdLU2RA==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -10076,23 +10143,23 @@ packages: terser: optional: true dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 esbuild: 0.19.12 - postcss: 8.4.35 - rollup: 4.12.1 + postcss: 8.4.36 + rollup: 4.13.0 optionalDependencies: fsevents: 2.3.3 dev: false - /vitest@1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1): - resolution: {integrity: sha512-/1QJqXs8YbCrfv/GPQ05wAZf2eakUPLPa18vkJAKE7RXOKfVHqMZZ1WlTjiwl6Gcn65M5vpNUB6EFLnEdRdEXQ==} + /vitest@1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0): + resolution: {integrity: sha512-gujzn0g7fmwf83/WzrDTnncZt2UiXP41mHuFYFrdwaLRVQ6JYQEiME2IfEjU3vcFL3VKa75XhI3lFgn+hfVsQw==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: '@edge-runtime/vm': '*' '@types/node': ^18.0.0 || >=20.0.0 - '@vitest/browser': 1.3.1 - '@vitest/ui': 1.3.1 + '@vitest/browser': 1.4.0 + '@vitest/ui': 1.4.0 happy-dom: '*' jsdom: '*' peerDependenciesMeta: @@ -10109,13 +10176,13 @@ packages: jsdom: optional: true dependencies: - '@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 - '@vitest/spy': 1.3.1 - '@vitest/utils': 1.3.1 + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/expect': 1.4.0 + '@vitest/runner': 1.4.0 + '@vitest/snapshot': 1.4.0 + '@vitest/spy': 1.4.0 + '@vitest/utils': 1.4.0 acorn-walk: 8.3.2 chai: 4.3.10 debug: 4.3.4(supports-color@8.1.1) @@ -10128,8 +10195,8 @@ packages: strip-literal: 2.0.0 tinybench: 2.6.0 tinypool: 0.8.2 - vite: 5.1.6(@types/node@18.19.22) - vite-node: 1.3.1(@types/node@18.19.22) + vite: 5.1.6(@types/node@18.19.24) + vite-node: 1.4.0(@types/node@18.19.24) why-is-node-running: 2.2.2 transitivePeerDependencies: - less @@ -10486,15 +10553,19 @@ packages: readable-stream: 4.5.2 dev: false + /zod@3.22.4: + resolution: {integrity: sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==} + dev: false + 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: - '@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) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) eslint: 8.57.0 playwright: 1.42.1 prettier: 3.2.5 @@ -10502,7 +10573,7 @@ packages: tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -10525,10 +10596,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -10551,7 +10622,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10569,10 +10640,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -10595,7 +10666,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10613,10 +10684,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -10638,7 +10709,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10657,10 +10728,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -10682,7 +10753,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10700,10 +10771,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -10725,7 +10796,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10744,11 +10815,11 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) - '@rollup/plugin-node-resolve': 15.2.3(rollup@4.12.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@rollup/plugin-node-resolve': 15.2.3(rollup@4.13.0) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -10770,9 +10841,9 @@ packages: mocha: 10.3.0 prettier: 3.2.5 rimraf: 5.0.5 - rollup: 4.12.1 + rollup: 4.13.0 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10791,11 +10862,11 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -10819,7 +10890,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -10838,12 +10909,12 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@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.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -10867,7 +10938,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10884,9 +10955,9 @@ packages: name: '@rush-temp/ai-language-textauthoring' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 dotenv: 16.4.5 @@ -10895,7 +10966,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10910,10 +10981,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -10935,7 +11006,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10953,10 +11024,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -10978,7 +11049,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10997,11 +11068,11 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -11024,7 +11095,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -11042,10 +11113,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -11067,7 +11138,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -11127,13 +11198,13 @@ packages: name: '@rush-temp/api-management-custom-widgets-scaffolder' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) - '@rollup/plugin-node-resolve': 15.2.3(rollup@4.12.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@rollup/plugin-node-resolve': 15.2.3(rollup@4.13.0) '@types/chai': 4.3.12 '@types/inquirer': 8.2.10 '@types/mocha': 10.0.6 '@types/mustache': 4.2.5 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/yargs': 17.0.32 '@types/yargs-parser': 21.0.3 @@ -11150,9 +11221,9 @@ packages: mustache: 4.2.0 prettier: 3.2.5 rimraf: 5.0.5 - rollup: 4.12.1 + rollup: 4.13.0 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -11171,12 +11242,12 @@ packages: dependencies: '@azure/identity': 4.0.1 '@azure/storage-blob': 12.17.0 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mime': 3.0.4 '@types/mocha': 10.0.6 '@types/mustache': 4.2.5 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/yargs': 17.0.32 '@types/yargs-parser': 21.0.3 @@ -11201,7 +11272,7 @@ packages: prettier: 3.2.5 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -11222,10 +11293,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -11260,17 +11331,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11287,16 +11358,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11313,16 +11384,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11339,10 +11410,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -11350,7 +11421,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11367,17 +11438,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11394,16 +11465,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11420,17 +11491,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11447,17 +11518,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11473,16 +11544,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11499,10 +11570,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -11510,7 +11581,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11527,10 +11598,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -11538,7 +11609,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11555,17 +11626,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11581,10 +11652,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -11606,7 +11677,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -11625,10 +11696,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -11636,7 +11707,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11652,16 +11723,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11677,17 +11748,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11704,17 +11775,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11730,17 +11801,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11757,17 +11828,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11784,17 +11855,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11811,16 +11882,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11836,16 +11907,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11862,17 +11933,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11889,10 +11960,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -11900,7 +11971,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11917,10 +11988,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -11928,7 +11999,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11945,16 +12016,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11971,16 +12042,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11997,17 +12068,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12024,17 +12095,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12050,16 +12121,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12075,16 +12146,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12102,10 +12173,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.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12113,7 +12184,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12130,17 +12201,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12156,17 +12227,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12182,16 +12253,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12207,16 +12278,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12233,10 +12304,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12244,7 +12315,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12262,10 +12333,10 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/arm-network': 32.2.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12273,7 +12344,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12290,17 +12361,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12317,10 +12388,10 @@ packages: dependencies: '@azure/arm-network': 32.2.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -12342,7 +12413,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -12361,17 +12432,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12388,10 +12459,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12399,7 +12470,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12416,17 +12487,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12442,17 +12513,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12469,17 +12540,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12496,10 +12567,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12507,7 +12578,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12524,10 +12595,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12535,7 +12606,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12551,10 +12622,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -12576,7 +12647,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -12595,10 +12666,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12606,7 +12677,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12623,10 +12694,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12634,7 +12705,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12651,17 +12722,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12678,17 +12749,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12705,16 +12776,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12731,10 +12802,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12742,7 +12813,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12759,17 +12830,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12786,17 +12857,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12813,16 +12884,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12839,10 +12910,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12850,7 +12921,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12867,16 +12938,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12893,10 +12964,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12904,7 +12975,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12921,10 +12992,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12932,7 +13003,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12949,16 +13020,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12975,16 +13046,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13001,10 +13072,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -13012,7 +13083,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13029,17 +13100,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13056,16 +13127,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13081,17 +13152,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13108,17 +13179,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13134,17 +13205,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13161,17 +13232,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13188,10 +13259,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -13199,7 +13270,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13216,16 +13287,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13242,16 +13313,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13268,17 +13339,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13295,17 +13366,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13322,16 +13393,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13348,17 +13419,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13375,16 +13446,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13401,17 +13472,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13427,17 +13498,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13454,17 +13525,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13481,10 +13552,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -13492,7 +13563,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13509,10 +13580,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -13520,7 +13591,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13537,17 +13608,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13565,17 +13636,17 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/arm-network': 32.2.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13592,17 +13663,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13618,16 +13689,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13643,17 +13714,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13670,17 +13741,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13697,17 +13768,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13724,16 +13795,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13750,10 +13821,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -13761,7 +13832,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13778,17 +13849,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13805,17 +13876,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13832,16 +13903,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13858,10 +13929,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -13869,7 +13940,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13886,10 +13957,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -13897,7 +13968,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13913,17 +13984,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13940,10 +14011,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -13951,7 +14022,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13968,16 +14039,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13994,10 +14065,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -14005,7 +14076,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14022,10 +14093,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -14033,7 +14104,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14050,16 +14121,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14075,17 +14146,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14102,17 +14173,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14129,17 +14200,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14156,17 +14227,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14183,10 +14254,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -14194,7 +14265,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14211,17 +14282,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14238,17 +14309,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14265,17 +14336,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14292,10 +14363,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -14303,7 +14374,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14319,16 +14390,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14345,17 +14416,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14371,17 +14442,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14397,16 +14468,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14423,17 +14494,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14450,16 +14521,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14476,16 +14547,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14501,17 +14572,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14527,10 +14598,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -14551,17 +14622,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14578,17 +14649,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14605,16 +14676,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14630,17 +14701,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14656,17 +14727,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14683,16 +14754,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14708,17 +14779,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14735,17 +14806,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14761,17 +14832,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14787,16 +14858,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14813,10 +14884,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@16.18.87) + '@microsoft/api-extractor': 7.42.3(@types/node@16.18.89) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 16.18.87 + '@types/node': 16.18.89 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -14824,7 +14895,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@16.18.87)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@16.18.89)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14840,17 +14911,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14867,17 +14938,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14893,17 +14964,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14920,17 +14991,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14947,16 +15018,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14973,10 +15044,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -14984,7 +15055,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15001,10 +15072,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15012,7 +15083,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15029,17 +15100,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15055,10 +15126,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -15080,7 +15151,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -15099,10 +15170,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15110,7 +15181,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15127,17 +15198,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15154,16 +15225,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15180,17 +15251,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15207,10 +15278,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15218,7 +15289,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15235,16 +15306,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15261,16 +15332,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15287,17 +15358,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15314,16 +15385,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15340,17 +15411,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15367,10 +15438,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15378,7 +15449,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15394,16 +15465,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15420,10 +15491,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15431,7 +15502,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15447,17 +15518,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15473,17 +15544,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15500,17 +15571,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15526,17 +15597,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15553,10 +15624,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15564,7 +15635,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15581,16 +15652,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15607,17 +15678,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15634,16 +15705,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15660,17 +15731,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15687,16 +15758,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15713,10 +15784,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15724,7 +15795,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15741,17 +15812,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15768,10 +15839,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15779,7 +15850,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15796,10 +15867,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15807,7 +15878,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15824,17 +15895,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15851,10 +15922,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15862,7 +15933,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15879,17 +15950,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15907,17 +15978,17 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/arm-network': 32.2.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15934,10 +16005,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15945,7 +16016,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15962,17 +16033,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15989,17 +16060,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16016,17 +16087,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16042,16 +16113,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16067,17 +16138,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16094,17 +16165,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16121,17 +16192,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16147,17 +16218,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16174,17 +16245,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16201,17 +16272,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16228,17 +16299,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16255,17 +16326,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16282,17 +16353,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16309,17 +16380,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16336,17 +16407,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16363,10 +16434,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -16374,7 +16445,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16390,16 +16461,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16416,17 +16487,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16443,10 +16514,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -16454,7 +16525,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16470,10 +16541,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -16495,7 +16566,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -16513,17 +16584,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16540,17 +16611,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16566,17 +16637,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16593,10 +16664,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -16604,7 +16675,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16621,17 +16692,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16648,17 +16719,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16675,10 +16746,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -16686,7 +16757,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16703,10 +16774,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -16714,7 +16785,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16731,17 +16802,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16758,17 +16829,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16785,17 +16856,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16812,10 +16883,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -16823,7 +16894,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16839,17 +16910,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16866,17 +16937,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16893,16 +16964,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16919,16 +16990,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16945,16 +17016,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16971,10 +17042,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -16982,7 +17053,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16998,17 +17069,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17025,16 +17096,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17051,17 +17122,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17078,17 +17149,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17104,16 +17175,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17130,17 +17201,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17156,17 +17227,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17183,16 +17254,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17209,17 +17280,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17236,17 +17307,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17263,17 +17334,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17290,16 +17361,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17316,17 +17387,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17342,16 +17413,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17367,11 +17438,11 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 buffer: 6.0.3 c8: 8.0.1 chai: 4.3.10 @@ -17398,7 +17469,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -17418,10 +17489,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -17442,7 +17513,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -17461,10 +17532,10 @@ packages: 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) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -17487,7 +17558,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -17507,10 +17578,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/communication-signaling': 1.0.0-beta.22 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 c8: 8.0.1 @@ -17535,7 +17606,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -17556,11 +17627,11 @@ packages: version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -17584,7 +17655,7 @@ packages: mockdate: 3.0.5 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -17602,10 +17673,10 @@ packages: name: '@rush-temp/communication-email' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -17625,7 +17696,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 1.14.1 typescript: 5.3.3 transitivePeerDependencies: @@ -17645,10 +17716,10 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 '@azure/msal-node': 1.18.4 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -17671,7 +17742,7 @@ packages: process: 0.11.10 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -17689,10 +17760,10 @@ packages: version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 c8: 8.0.1 @@ -17717,7 +17788,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -17737,10 +17808,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -17761,7 +17832,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -17779,10 +17850,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 3.4.2 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -17804,7 +17875,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.22)(typescript@5.2.2) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.2.2) tslib: 2.6.2 typescript: 5.2.2 transitivePeerDependencies: @@ -17823,10 +17894,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -17850,7 +17921,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -17869,10 +17940,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -17894,7 +17965,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -17913,10 +17984,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 c8: 8.0.1 @@ -17939,7 +18010,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -17957,10 +18028,10 @@ packages: name: '@rush-temp/communication-rooms' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -17974,7 +18045,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 1.14.1 typescript: 5.3.3 transitivePeerDependencies: @@ -17993,10 +18064,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 c8: 8.0.1 @@ -18019,7 +18090,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -18039,10 +18110,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -18064,7 +18135,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -18084,10 +18155,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 c8: 8.0.1 @@ -18110,7 +18181,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -18130,10 +18201,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -18154,7 +18225,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -18172,10 +18243,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -18185,7 +18256,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -18201,11 +18272,11 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 chai-as-promised: 7.1.1(chai@4.3.10) @@ -18225,7 +18296,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -18243,11 +18314,11 @@ packages: name: '@rush-temp/core-amqp' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/debug': 4.1.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/ws': 7.4.7 buffer: 6.0.3 @@ -18262,12 +18333,12 @@ packages: karma-mocha: 2.0.1 mocha: 10.3.0 process: 0.11.10 - puppeteer: 22.4.1(typescript@5.3.3) + puppeteer: 22.5.0(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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -18276,7 +18347,6 @@ packages: - '@swc/core' - '@swc/wasm' - bufferutil - - encoding - supports-color - utf-8-validate dev: false @@ -18286,10 +18356,10 @@ packages: name: '@rush-temp/core-auth' version: 0.0.0 dependencies: - '@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) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) eslint: 8.57.0 playwright: 1.42.1 prettier: 3.2.5 @@ -18297,7 +18367,7 @@ packages: tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18319,10 +18389,10 @@ packages: name: '@rush-temp/core-client-1' version: 0.0.0 dependencies: - '@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) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) eslint: 8.57.0 playwright: 1.42.1 prettier: 3.2.5 @@ -18330,7 +18400,7 @@ packages: tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18352,10 +18422,10 @@ packages: name: '@rush-temp/core-client' version: 0.0.0 dependencies: - '@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) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) eslint: 8.57.0 playwright: 1.42.1 prettier: 3.2.5 @@ -18363,7 +18433,7 @@ packages: tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18385,17 +18455,17 @@ packages: name: '@rush-temp/core-http-compat' version: 0.0.0 dependencies: - '@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) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) eslint: 8.57.0 playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 tshy: 1.12.0 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18417,10 +18487,10 @@ packages: name: '@rush-temp/core-lro' version: 0.0.0 dependencies: - '@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) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) eslint: 8.57.0 playwright: 1.42.1 prettier: 3.2.5 @@ -18428,7 +18498,7 @@ packages: tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18450,10 +18520,10 @@ packages: name: '@rush-temp/core-paging' version: 0.0.0 dependencies: - '@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) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) eslint: 8.57.0 playwright: 1.42.1 prettier: 3.2.5 @@ -18461,7 +18531,7 @@ packages: tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18483,10 +18553,10 @@ packages: name: '@rush-temp/core-rest-pipeline' version: 0.0.0 dependencies: - '@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) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) eslint: 8.57.0 http-proxy-agent: 7.0.0 https-proxy-agent: 7.0.2 @@ -18496,7 +18566,7 @@ packages: tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18518,10 +18588,10 @@ packages: name: '@rush-temp/core-sse' version: 0.0.0 dependencies: - '@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) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) dotenv: 16.4.5 eslint: 8.57.0 playwright: 1.42.1 @@ -18530,7 +18600,7 @@ packages: tshy: 1.12.0 tslib: 2.6.2 typescript: 5.2.2 - vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18552,10 +18622,10 @@ packages: name: '@rush-temp/core-tracing' version: 0.0.0 dependencies: - '@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) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) eslint: 8.57.0 playwright: 1.42.1 prettier: 3.2.5 @@ -18563,7 +18633,7 @@ packages: tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18585,10 +18655,10 @@ packages: name: '@rush-temp/core-util' version: 0.0.0 dependencies: - '@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) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) eslint: 8.57.0 playwright: 1.42.1 prettier: 3.2.5 @@ -18596,7 +18666,7 @@ packages: tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18618,20 +18688,20 @@ packages: name: '@rush-temp/core-xml' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) - '@types/node': 18.19.22 + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 '@types/trusted-types': 2.0.7 - '@vitest/browser': 1.3.1(playwright@1.42.1)(vitest@1.3.1) - '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) eslint: 8.57.0 - fast-xml-parser: 4.3.5 + fast-xml-parser: 4.3.6 playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18655,12 +18725,12 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@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.22 + '@types/node': 18.19.24 '@types/priorityqueuejs': 1.0.4 '@types/semaphore': 1.1.4 '@types/sinon': 17.0.3 @@ -18685,7 +18755,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 universal-user-agent: 6.0.1 @@ -18702,10 +18772,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -18726,7 +18796,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -18745,10 +18815,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -18771,7 +18841,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -18790,28 +18860,22 @@ packages: dependencies: '@_ts/max': /typescript@5.4.2 '@_ts/min': /typescript@4.2.4 - '@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) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@rollup/plugin-commonjs': 25.0.7(rollup@4.13.0) + '@rollup/plugin-inject': 5.0.5(rollup@4.13.0) + '@rollup/plugin-json': 6.1.0(rollup@4.13.0) + '@rollup/plugin-multi-entry': 6.0.1(rollup@4.13.0) + '@rollup/plugin-node-resolve': 15.2.3(rollup@4.13.0) '@types/archiver': 6.0.2 - '@types/chai': 4.3.12 - '@types/chai-as-promised': 7.1.8 '@types/decompress': 4.2.7 '@types/fs-extra': 11.0.4 '@types/minimist': 1.2.5 - '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/semver': 7.5.8 - '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) archiver: 7.0.1 autorest: 3.7.1 builtin-modules: 3.3.0 - c8: 8.0.1 - chai: 4.3.10 - chai-as-promised: 7.1.1(chai@4.3.10) chalk: 4.1.2 concurrently: 8.2.2 cross-env: 7.0.3 @@ -18820,22 +18884,20 @@ packages: env-paths: 2.2.1 eslint: 8.57.0 fs-extra: 11.2.0 - karma: 6.4.3(debug@4.3.4) minimist: 1.2.8 mkdirp: 3.0.1 - mocha: 10.3.0 prettier: 3.2.5 rimraf: 5.0.5 - 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) + rollup: 4.13.0 + rollup-plugin-polyfill-node: 0.13.0(rollup@4.13.0) + rollup-plugin-visualizer: 5.12.0(rollup@4.13.0) semver: 7.6.0 strip-json-comments: 5.0.1 ts-morph: 22.0.0 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(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) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) yaml: 2.4.1 transitivePeerDependencies: - '@edge-runtime/vm' @@ -18861,10 +18923,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -18886,7 +18948,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -18904,10 +18966,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 c8: 8.0.1 @@ -18929,7 +18991,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -18972,7 +19034,7 @@ packages: '@types/estree': 1.0.5 '@types/json-schema': 7.0.15 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@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) @@ -18991,7 +19053,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -19007,14 +19069,14 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@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.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/ws': 7.4.7 buffer: 6.0.3 @@ -19044,11 +19106,11 @@ packages: mocha: 10.3.0 moment: 2.30.1 process: 0.11.10 - puppeteer: 22.4.1(typescript@5.3.3) + puppeteer: 22.5.0(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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 ws: 8.16.0 @@ -19056,7 +19118,6 @@ packages: - '@swc/core' - '@swc/wasm' - bufferutil - - encoding - supports-color - utf-8-validate dev: false @@ -19066,11 +19127,11 @@ packages: name: '@rush-temp/eventgrid' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 c8: 8.0.1 @@ -19110,13 +19171,13 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/storage-blob': 12.17.0 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@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.22 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 chai-as-promised: 7.1.1(chai@4.3.10) @@ -19140,7 +19201,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -19159,13 +19220,13 @@ packages: version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@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.22 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 chai-as-promised: 7.1.1(chai@4.3.10) @@ -19188,7 +19249,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -19207,10 +19268,10 @@ packages: dependencies: '@azure/functions': 3.5.1 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -19231,7 +19292,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -19251,10 +19312,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -19276,7 +19337,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -19295,10 +19356,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -19320,7 +19381,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -19339,10 +19400,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -19364,7 +19425,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -19385,15 +19446,15 @@ packages: '@azure/identity': 4.0.1 '@azure/msal-node': 2.6.4 '@azure/msal-node-extensions': 1.0.12 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@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.4.1(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 tslib: 2.6.2 @@ -19401,7 +19462,6 @@ packages: wtfnode: 0.9.1 transitivePeerDependencies: - bufferutil - - encoding - supports-color - utf-8-validate dev: false @@ -19414,10 +19474,10 @@ packages: '@azure/identity': 4.0.1 '@azure/msal-node': 2.6.4 '@azure/msal-node-extensions': 1.0.12 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/jws': 3.2.9 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/qs': 6.9.12 '@types/sinon': 17.0.3 cross-env: 7.0.3 @@ -19426,10 +19486,10 @@ packages: inherits: 2.0.4 keytar: 7.9.0 mocha: 10.3.0 - puppeteer: 22.4.1(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -19437,7 +19497,6 @@ packages: - '@swc/core' - '@swc/wasm' - bufferutil - - encoding - supports-color - utf-8-validate dev: false @@ -19448,10 +19507,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/jws': 3.2.9 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/qs': 6.9.12 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 @@ -19461,10 +19520,10 @@ packages: inherits: 2.0.4 keytar: 7.9.0 mocha: 10.3.0 - puppeteer: 22.4.1(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -19472,7 +19531,6 @@ packages: - '@swc/core' - '@swc/wasm' - bufferutil - - encoding - supports-color - utf-8-validate dev: false @@ -19486,13 +19544,13 @@ packages: '@azure/keyvault-keys': 4.8.0 '@azure/msal-browser': 3.10.0 '@azure/msal-node': 2.6.4 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/jsonwebtoken': 9.0.6 '@types/jws': 3.2.9 '@types/mocha': 10.0.6 '@types/ms': 0.7.34 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/stoppable': 1.1.3 '@types/uuid': 8.3.4 @@ -19516,11 +19574,11 @@ packages: mocha: 10.3.0 ms: 2.1.3 open: 8.4.2 - puppeteer: 22.4.1(typescript@5.3.3) + puppeteer: 22.5.0(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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -19529,7 +19587,6 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -19540,10 +19597,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/uuid': 8.3.4 c8: 8.0.1 chai: 4.3.10 @@ -19567,7 +19624,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -19585,10 +19642,10 @@ packages: name: '@rush-temp/iot-modelsrepository' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -19611,7 +19668,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -19631,9 +19688,9 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 c8: 8.0.1 @@ -19645,7 +19702,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -19662,9 +19719,9 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 cross-env: 7.0.3 @@ -19683,11 +19740,11 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.4.1(typescript@5.3.3) + puppeteer: 22.5.0(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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -19695,7 +19752,6 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -19706,26 +19762,25 @@ packages: version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 c8: 8.0.1 cross-env: 7.0.3 eslint: 8.57.0 esm: 3.2.25 mocha: 10.3.0 - puppeteer: 22.4.1(typescript@5.3.3) + puppeteer: 22.5.0(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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: - '@swc/core' - '@swc/wasm' - bufferutil - - encoding - supports-color - utf-8-validate dev: false @@ -19737,9 +19792,9 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 cross-env: 7.0.3 @@ -19759,11 +19814,11 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.4.1(typescript@5.3.3) + puppeteer: 22.5.0(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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -19771,7 +19826,6 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -19783,9 +19837,9 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 cross-env: 7.0.3 @@ -19802,11 +19856,11 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.4.1(typescript@5.3.3) + puppeteer: 22.5.0(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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -19814,7 +19868,6 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -19826,10 +19879,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/uuid': 8.3.4 autorest: 3.7.1 c8: 8.0.1 @@ -19852,7 +19905,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 9.0.1 @@ -19870,10 +19923,10 @@ packages: name: '@rush-temp/logger' version: 0.0.0 dependencies: - '@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) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) dotenv: 16.4.5 eslint: 8.57.0 playwright: 1.42.1 @@ -19882,7 +19935,7 @@ packages: tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -19905,11 +19958,11 @@ packages: version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) - '@types/node': 18.19.22 + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) typescript: 5.3.3 transitivePeerDependencies: - '@swc/core' @@ -19924,10 +19977,10 @@ packages: dependencies: '@azure/identity': 4.0.1 '@azure/maps-common': 1.0.0-beta.2 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -19949,7 +20002,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -19968,10 +20021,10 @@ packages: dependencies: '@azure/identity': 4.0.1 '@azure/maps-common': 1.0.0-beta.2 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -19993,7 +20046,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20012,10 +20065,10 @@ packages: dependencies: '@azure/identity': 4.0.1 '@azure/maps-common': 1.0.0-beta.2 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -20037,7 +20090,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20056,10 +20109,10 @@ packages: dependencies: '@azure/identity': 4.0.1 '@azure/maps-common': 1.0.0-beta.2 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -20081,7 +20134,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20098,11 +20151,11 @@ packages: name: '@rush-temp/mixed-reality-authentication' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 chai-as-promised: 7.1.1(chai@4.3.10) @@ -20122,7 +20175,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -20142,11 +20195,11 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/uuid': 8.3.4 c8: 8.0.1 chai: 4.3.10 @@ -20168,7 +20221,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -20188,12 +20241,12 @@ packages: version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@types/node': 18.19.22 + '@types/node': 18.19.24 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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20209,10 +20262,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/pako': 2.0.3 '@types/sinon': 17.0.3 c8: 8.0.1 @@ -20237,7 +20290,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -20255,7 +20308,7 @@ packages: name: '@rush-temp/monitor-opentelemetry-exporter' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@opentelemetry/api': 1.8.0 '@opentelemetry/api-logs': 0.49.1 '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) @@ -20268,7 +20321,7 @@ 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.22 + '@types/node': 18.19.24 c8: 8.0.1 cross-env: 7.0.3 dotenv: 16.4.5 @@ -20291,7 +20344,7 @@ packages: version: 0.0.0 dependencies: '@azure/functions': 3.5.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@microsoft/applicationinsights-web-snippet': 1.1.2 '@opentelemetry/api': 1.8.0 '@opentelemetry/api-logs': 0.49.1 @@ -20313,7 +20366,7 @@ 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.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 cross-env: 7.0.3 @@ -20338,14 +20391,14 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@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.22 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 chai-as-promised: 7.1.1(chai@4.3.10) @@ -20379,10 +20432,10 @@ packages: name: '@rush-temp/notification-hubs' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 dotenv: 16.4.5 @@ -20400,9 +20453,9 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.4.1(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20410,7 +20463,6 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -20422,9 +20474,9 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 builtin-modules: 3.3.0 c8: 8.0.1 cross-env: 7.0.3 @@ -20444,9 +20496,9 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.4.1(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 3.0.2 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20454,7 +20506,6 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -20465,9 +20516,9 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 cross-env: 7.0.3 @@ -20489,7 +20540,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20507,8 +20558,8 @@ packages: version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) - '@types/node': 18.19.22 + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 autorest: 3.7.1 cross-env: 7.0.3 dotenv: 16.4.5 @@ -20524,7 +20575,7 @@ packages: name: '@rush-temp/opentelemetry-instrumentation-azure-sdk' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@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) @@ -20532,7 +20583,7 @@ 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.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -20569,11 +20620,11 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.22 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20588,11 +20639,11 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.22 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20606,11 +20657,11 @@ packages: name: '@rush-temp/perf-ai-metrics-advisor' version: 0.0.0 dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20625,11 +20676,11 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.22 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20644,11 +20695,11 @@ packages: version: 0.0.0 dependencies: '@azure/app-configuration': 1.5.0-beta.2 - '@types/node': 18.19.22 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20662,11 +20713,11 @@ packages: name: '@rush-temp/perf-container-registry' version: 0.0.0 dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20681,17 +20732,17 @@ packages: version: 0.0.0 dependencies: '@types/express': 4.17.21 - '@types/node': 18.19.22 + '@types/node': 18.19.24 concurrently: 8.2.2 dotenv: 16.4.5 eslint: 8.57.0 express: 4.18.3 prettier: 2.8.8 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 - undici: 6.7.1 + undici: 6.9.0 transitivePeerDependencies: - '@swc/core' - '@swc/wasm' @@ -20703,11 +20754,11 @@ packages: name: '@rush-temp/perf-data-tables' version: 0.0.0 dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20721,13 +20772,13 @@ packages: name: '@rush-temp/perf-event-hubs' version: 0.0.0 dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -20742,11 +20793,11 @@ packages: name: '@rush-temp/perf-eventgrid' version: 0.0.0 dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20761,12 +20812,12 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20781,12 +20832,12 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -20802,12 +20853,12 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -20823,12 +20874,12 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -20844,11 +20895,11 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.22 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20865,7 +20916,7 @@ 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.22 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 @@ -20881,11 +20932,11 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.22 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20900,11 +20951,11 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.22 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20919,11 +20970,11 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.22 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20937,12 +20988,12 @@ packages: name: '@rush-temp/perf-service-bus' version: 0.0.0 dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -20957,11 +21008,11 @@ packages: name: '@rush-temp/perf-storage-blob' version: 0.0.0 dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20976,11 +21027,11 @@ packages: version: 0.0.0 dependencies: '@azure/storage-file-datalake': 12.16.0 - '@types/node': 18.19.22 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20996,11 +21047,11 @@ packages: version: 0.0.0 dependencies: '@azure/storage-file-share': 12.17.0 - '@types/node': 18.19.22 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21017,11 +21068,11 @@ packages: dependencies: '@azure/app-configuration': 1.5.0-beta.2 '@azure/identity': 4.0.1 - '@types/node': 18.19.22 + '@types/node': 18.19.24 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21036,10 +21087,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -21060,7 +21111,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21078,10 +21129,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -21102,7 +21153,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21120,10 +21171,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -21145,7 +21196,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21163,10 +21214,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -21187,7 +21238,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21206,10 +21257,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -21231,7 +21282,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21249,10 +21300,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -21274,7 +21325,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21293,10 +21344,10 @@ packages: dependencies: '@azure/identity': 4.0.1 '@azure/storage-blob': 12.17.0 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -21317,7 +21368,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -21338,11 +21389,11 @@ packages: dependencies: '@azure/identity': 4.0.1 '@azure/schema-registry': 1.2.0 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/uuid': 8.3.4 avsc: 5.7.7 buffer: 6.0.3 @@ -21369,7 +21420,7 @@ packages: process: 0.11.10 rimraf: 5.0.5 stream: 0.0.2 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -21388,9 +21439,9 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 ajv: 8.12.0 c8: 8.0.1 cross-env: 7.0.3 @@ -21411,7 +21462,7 @@ packages: lru-cache: 7.18.3 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21429,9 +21480,9 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 c8: 8.0.1 cross-env: 7.0.3 dotenv: 16.4.5 @@ -21450,7 +21501,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21467,10 +21518,10 @@ packages: name: '@rush-temp/search-documents' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -21494,7 +21545,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -21514,13 +21565,13 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@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.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 '@types/ws': 7.4.7 @@ -21551,11 +21602,11 @@ packages: moment: 2.30.1 process: 0.11.10 promise: 8.3.0 - puppeteer: 22.4.1(typescript@5.3.3) + puppeteer: 22.5.0(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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -21564,7 +21615,6 @@ packages: - '@swc/core' - '@swc/wasm' - bufferutil - - encoding - supports-color - utf-8-validate dev: false @@ -21575,10 +21625,10 @@ packages: version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -21601,11 +21651,11 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.4.1(typescript@5.3.3) + puppeteer: 22.5.0(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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -21614,7 +21664,6 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -21626,10 +21675,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -21649,10 +21698,10 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.4.1(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -21661,7 +21710,6 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -21673,10 +21721,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -21699,11 +21747,11 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.4.1(typescript@5.3.3) + puppeteer: 22.5.0(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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -21712,7 +21760,6 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -21724,10 +21771,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -21748,11 +21795,11 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.4.1(typescript@5.3.3) + puppeteer: 22.5.0(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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -21761,7 +21808,6 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -21772,10 +21818,10 @@ packages: version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -21794,10 +21840,10 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.4.1(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -21806,7 +21852,6 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -21818,10 +21863,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -21840,10 +21885,10 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.4.1(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -21852,7 +21897,6 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -21862,11 +21906,11 @@ packages: name: '@rush-temp/synapse-access-control-1' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -21888,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -21907,11 +21951,11 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -21934,7 +21978,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -21954,11 +21998,11 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -21982,7 +22026,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -22000,11 +22044,11 @@ packages: name: '@rush-temp/synapse-managed-private-endpoints' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 chai-as-promised: 7.1.1(chai@4.3.10) @@ -22023,7 +22067,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -22041,9 +22085,9 @@ packages: name: '@rush-temp/synapse-monitoring' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 cross-env: 7.0.3 eslint: 8.57.0 esm: 3.2.25 @@ -22059,7 +22103,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -22077,11 +22121,11 @@ packages: name: '@rush-temp/synapse-spark' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 chai-as-promised: 7.1.1(chai@4.3.10) @@ -22100,7 +22144,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -22118,10 +22162,10 @@ packages: name: '@rush-temp/template-dpg' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -22139,9 +22183,9 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.4.1(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 3.0.2 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -22150,7 +22194,6 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -22161,10 +22204,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -22185,7 +22228,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -22204,11 +22247,11 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) - '@types/node': 18.19.22 + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) typescript: 5.3.3 transitivePeerDependencies: - '@swc/core' @@ -22225,7 +22268,7 @@ packages: '@types/express': 4.17.21 '@types/fs-extra': 8.1.5 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 c8: 8.0.1 chai: 4.3.10 concurrently: 8.2.2 @@ -22244,7 +22287,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -22263,7 +22306,7 @@ packages: dependencies: '@types/fs-extra': 9.0.13 '@types/minimist': 1.2.5 - '@types/node': 18.19.22 + '@types/node': 18.19.24 eslint: 8.57.0 fs-extra: 10.1.0 karma: 6.4.3(debug@4.3.4) @@ -22272,7 +22315,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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -22289,12 +22332,12 @@ packages: name: '@rush-temp/test-utils' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@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.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 chai: 4.3.10 chai-as-promised: 7.1.1(chai@4.3.10) @@ -22308,7 +22351,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -22325,10 +22368,10 @@ packages: name: '@rush-temp/ts-http-runtime' version: 0.0.0 dependencies: - '@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) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) + '@types/node': 18.19.24 + '@vitest/browser': 1.4.0(playwright@1.42.1)(vitest@1.4.0) + '@vitest/coverage-istanbul': 1.4.0(vitest@1.4.0) cross-env: 7.0.3 eslint: 8.57.0 http-proxy-agent: 7.0.0 @@ -22339,7 +22382,7 @@ packages: tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) + vitest: 1.4.0(@types/node@18.19.24)(@vitest/browser@1.4.0) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -22361,7 +22404,7 @@ packages: name: '@rush-temp/vite-plugin-browser-test-map' version: 0.0.0 dependencies: - '@types/node': 18.19.22 + '@types/node': 18.19.24 eslint: 8.57.0 prettier: 3.2.5 rimraf: 3.0.2 @@ -22377,14 +22420,14 @@ packages: version: 0.0.0 dependencies: '@azure/web-pubsub-client': 1.0.0-beta.2 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@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.6 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/ws': 7.4.7 c8: 8.0.1 @@ -22413,12 +22456,12 @@ packages: mock-socket: 9.3.1 protobufjs: 7.2.6 protobufjs-cli: 1.1.2(protobufjs@7.2.6) - puppeteer: 22.4.1(typescript@5.3.3) + puppeteer: 22.5.0(typescript@5.3.3) rimraf: 5.0.5 - rollup: 4.12.1 + rollup: 4.13.0 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -22427,7 +22470,6 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -22438,14 +22480,14 @@ packages: version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@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.6 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/ws': 7.4.7 buffer: 6.0.3 @@ -22469,11 +22511,11 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 mock-socket: 9.3.1 - puppeteer: 22.4.1(typescript@5.3.3) + puppeteer: 22.5.0(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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -22483,7 +22525,6 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -22493,13 +22534,13 @@ packages: name: '@rush-temp/web-pubsub-express' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/express': 4.17.21 '@types/express-serve-static-core': 4.17.43 '@types/jsonwebtoken': 9.0.6 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -22509,18 +22550,17 @@ packages: esm: 3.2.25 express: 4.18.3 mocha: 10.3.0 - puppeteer: 22.4.1(typescript@5.3.3) + puppeteer: 22.5.0(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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: - '@swc/core' - '@swc/wasm' - bufferutil - - encoding - supports-color - utf-8-validate dev: false @@ -22530,11 +22570,11 @@ packages: name: '@rush-temp/web-pubsub' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.24) '@types/chai': 4.3.12 '@types/jsonwebtoken': 9.0.6 '@types/mocha': 10.0.6 - '@types/node': 18.19.22 + '@types/node': 18.19.24 '@types/sinon': 17.0.3 '@types/ws': 8.5.10 c8: 8.0.1 @@ -22554,11 +22594,11 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.4.1(typescript@5.3.3) + puppeteer: 22.5.0(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.22)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 ws: 8.16.0 @@ -22567,7 +22607,6 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false From 58c58a8461f095d1b19597afc275a46d0d9013c4 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 18 Mar 2024 18:54:47 -0400 Subject: [PATCH 15/20] Sync eng/common directory with azure-sdk-tools for PR 7896 (#28960) Sync eng/common directory with azure-sdk-tools for PR https://github.com/Azure/azure-sdk-tools/pull/7896 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) --- .../onboarding/common-asset-functions.ps1 | 35 ------------------- .../onboarding/generate-assets-json.ps1 | 4 +-- 2 files changed, 2 insertions(+), 37 deletions(-) diff --git a/eng/common/testproxy/onboarding/common-asset-functions.ps1 b/eng/common/testproxy/onboarding/common-asset-functions.ps1 index 3d7bcf605584..2f7c1b37c3c7 100644 --- a/eng/common/testproxy/onboarding/common-asset-functions.ps1 +++ b/eng/common/testproxy/onboarding/common-asset-functions.ps1 @@ -207,41 +207,6 @@ Function Invoke-ProxyCommand { ) $updatedDirectory = $TargetDirectory.Replace("`\", "/") - # CommandString just a string indicating the proxy arguments. In the default case of running against the proxy tool, can just be used directly. - # However, in the case of docker, we need to append a bunch more arguments to the string. - if ($TestProxyExe -eq "docker" -or $TestProxyExe -eq "podman"){ - $token = $env:GIT_TOKEN - $committer = $env:GIT_COMMIT_OWNER - $email = $env:GIT_COMMIT_EMAIL - - if (-not $committer) { - $committer = & git config --global user.name - } - - if (-not $email) { - $email = & git config --global user.email - } - - if(-not $token -or -not $committer -or -not $email){ - Write-Error ("When running this transition script in `"docker`" or `"podman`" mode, " ` - + "the environment variables GIT_TOKEN, GIT_COMMIT_OWNER, and GIT_COMMIT_EMAIL must be set to reflect the appropriate user. ") - exit 1 - } - - $targetImage = if ($env:TRANSITION_SCRIPT_DOCKER_TAG) { $env:TRANSITION_SCRIPT_DOCKER_TAG } else { "azsdkengsys.azurecr.io/engsys/test-proxy:latest" } - - $CommandString = @( - "run --rm --name transition.test.proxy", - "-v `"${updatedDirectory}:/srv/testproxy`"", - "-e `"GIT_TOKEN=${token}`"", - "-e `"GIT_COMMIT_OWNER=${committer}`"", - "-e `"GIT_COMMIT_EMAIL=${email}`"", - $targetImage, - "test-proxy", - $CommandString - ) -join " " - } - Write-Host "$TestProxyExe $CommandString" [array] $output = & "$TestProxyExe" $CommandString.Split(" ") --storage-location="$updatedDirectory" # echo the command output diff --git a/eng/common/testproxy/onboarding/generate-assets-json.ps1 b/eng/common/testproxy/onboarding/generate-assets-json.ps1 index bd825eebbe14..3576fd3c6bd6 100644 --- a/eng/common/testproxy/onboarding/generate-assets-json.ps1 +++ b/eng/common/testproxy/onboarding/generate-assets-json.ps1 @@ -22,9 +22,9 @@ Generated assets.json file contents If flag InitialPush is set, recordings will be automatically pushed to the assets repo and the Tag property updated. .PARAMETER TestProxyExe -The executable used during the "InitialPush" action. Defaults to the dotnet tool test-proxy, but also supports "docker" or "podman". +The executable used during the "InitialPush" action. Defaults to the dotnet tool test-proxy, but also supports custom executables as well. -If the user provides their own value that doesn't match options "test-proxy", "docker", or "podman", the script will use this input as the test-proxy exe +If the user provides their own value that doesn't match options "test-proxy" the script will use this input as the test-proxy exe when invoking commands. EG "$TestProxyExe push -a sdk/keyvault/azure-keyvault-keys/assets.json." .PARAMETER InitialPush From 4a6854144595484845d381dd4035fd95a6112c8f Mon Sep 17 00:00:00 2001 From: ZiWei Chen <98569699+kazrael2119@users.noreply.github.com> Date: Tue, 19 Mar 2024 13:43:46 +0800 Subject: [PATCH 16/20] [mgmt] nginx release (#28899) https://github.com/Azure/sdk-release-request/issues/5012 --- 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/assets.json | 2 +- sdk/nginx/arm-nginx/package.json | 9 +- sdk/nginx/arm-nginx/review/arm-nginx.api.md | 120 +- .../certificatesCreateOrUpdateSample.ts | 19 +- .../samples-dev/certificatesDeleteSample.ts | 4 +- .../samples-dev/certificatesGetSample.ts | 4 +- .../samples-dev/certificatesListSample.ts | 4 +- .../configurationsAnalysisSample.ts | 58 + .../configurationsCreateOrUpdateSample.ts | 19 +- .../samples-dev/configurationsDeleteSample.ts | 4 +- .../samples-dev/configurationsGetSample.ts | 4 +- .../samples-dev/configurationsListSample.ts | 4 +- .../deploymentsCreateOrUpdateSample.ts | 44 +- .../samples-dev/deploymentsDeleteSample.ts | 4 +- .../samples-dev/deploymentsGetSample.ts | 27 +- .../deploymentsListByResourceGroupSample.ts | 4 +- .../samples-dev/deploymentsListSample.ts | 2 +- .../samples-dev/deploymentsUpdateSample.ts | 15 +- .../samples-dev/operationsListSample.ts | 6 +- .../samples/v4-beta/javascript/README.md | 80 ++ .../certificatesCreateOrUpdateSample.js | 50 + .../javascript/certificatesDeleteSample.js | 41 + .../javascript/certificatesGetSample.js | 37 + .../javascript/certificatesListSample.js | 39 + .../configurationsAnalysisSample.js | 50 + .../configurationsCreateOrUpdateSample.js | 50 + .../javascript/configurationsDeleteSample.js | 41 + .../javascript/configurationsGetSample.js | 41 + .../javascript/configurationsListSample.js | 39 + .../deploymentsCreateOrUpdateSample.js | 73 ++ .../javascript/deploymentsDeleteSample.js | 36 + .../javascript/deploymentsGetSample.js | 54 + .../deploymentsListByResourceGroupSample.js | 38 + .../javascript/deploymentsListSample.js | 37 + .../javascript/deploymentsUpdateSample.js | 44 + .../javascript/operationsListSample.js | 37 + .../samples/v4-beta/javascript/package.json | 32 + .../samples/v4-beta/javascript/sample.env | 4 + .../samples/v4-beta/typescript/README.md | 93 ++ .../samples/v4-beta/typescript/package.json | 41 + .../samples/v4-beta/typescript/sample.env | 4 + .../src/certificatesCreateOrUpdateSample.ts | 58 + .../src/certificatesDeleteSample.ts | 45 + .../typescript/src/certificatesGetSample.ts | 45 + .../typescript/src/certificatesListSample.ts | 46 + .../src/configurationsAnalysisSample.ts | 58 + .../src/configurationsCreateOrUpdateSample.ts | 58 + .../src/configurationsDeleteSample.ts | 45 + .../typescript/src/configurationsGetSample.ts | 45 + .../src/configurationsListSample.ts | 46 + .../src/deploymentsCreateOrUpdateSample.ts | 81 ++ .../typescript/src/deploymentsDeleteSample.ts | 43 + .../typescript/src/deploymentsGetSample.ts | 66 ++ .../deploymentsListByResourceGroupSample.ts | 44 + .../typescript/src/deploymentsListSample.ts | 40 + .../typescript/src/deploymentsUpdateSample.ts | 52 + .../typescript/src/operationsListSample.ts | 40 + .../samples/v4-beta/typescript/tsconfig.json | 17 + 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 +- 76 files changed, 3392 insertions(+), 796 deletions(-) create mode 100644 sdk/nginx/arm-nginx/samples-dev/configurationsAnalysisSample.ts create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/javascript/README.md create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesCreateOrUpdateSample.js create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesDeleteSample.js create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesGetSample.js create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesListSample.js create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsAnalysisSample.js create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsCreateOrUpdateSample.js create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsDeleteSample.js create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsGetSample.js create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsListSample.js create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsCreateOrUpdateSample.js create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsDeleteSample.js create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsGetSample.js create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsListByResourceGroupSample.js create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsListSample.js create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsUpdateSample.js create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/javascript/operationsListSample.js create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/javascript/package.json create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/javascript/sample.env create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/typescript/README.md create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/typescript/package.json create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/typescript/sample.env create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesCreateOrUpdateSample.ts create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesDeleteSample.ts create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesGetSample.ts create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesListSample.ts create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsAnalysisSample.ts create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsCreateOrUpdateSample.ts create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsDeleteSample.ts create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsGetSample.ts create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsListSample.ts create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsCreateOrUpdateSample.ts create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsDeleteSample.ts create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsGetSample.ts create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsListByResourceGroupSample.ts create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsListSample.ts create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsUpdateSample.ts create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/operationsListSample.ts create mode 100644 sdk/nginx/arm-nginx/samples/v4-beta/typescript/tsconfig.json 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..8573a4c4aa51 100644 --- a/sdk/nginx/arm-nginx/_meta.json +++ b/sdk/nginx/arm-nginx/_meta.json @@ -1,8 +1,8 @@ { - "commit": "ed84b11847785792767b0b84cc6f98f4ea08ca77", + "commit": "9fb75a3c4ca9b753271bd6db2e42e5f98366cbae", "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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\nginx\\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/nginx/arm-nginx/assets.json b/sdk/nginx/arm-nginx/assets.json index 268954478b8a..327acdb8aea8 100644 --- a/sdk/nginx/arm-nginx/assets.json +++ b/sdk/nginx/arm-nginx/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/nginx/arm-nginx", - "Tag": "js/nginx/arm-nginx_94207fccaa" + "Tag": "js/nginx/arm-nginx_ef5d73eeb4" } diff --git a/sdk/nginx/arm-nginx/package.json b/sdk/nginx/arm-nginx/package.json index b7cb5d2445d0..e8f2ade72648 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", @@ -116,4 +115,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-nginx?view=azure-node-preview" } -} +} \ 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/samples-dev/certificatesCreateOrUpdateSample.ts b/sdk/nginx/arm-nginx/samples-dev/certificatesCreateOrUpdateSample.ts index dfb185b92a48..0fb4f322de27 100644 --- a/sdk/nginx/arm-nginx/samples-dev/certificatesCreateOrUpdateSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/certificatesCreateOrUpdateSample.ts @@ -8,7 +8,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { NginxManagementClient } from "@azure/arm-nginx"; +import { + NginxCertificate, + CertificatesCreateOrUpdateOptionalParams, + NginxManagementClient, +} from "@azure/arm-nginx"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -18,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Create or update the NGINX certificates for given NGINX deployment * * @summary Create or update the NGINX certificates for given NGINX deployment - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Certificates_CreateOrUpdate.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_CreateOrUpdate.json */ async function certificatesCreateOrUpdate() { const subscriptionId = @@ -28,12 +32,21 @@ async function certificatesCreateOrUpdate() { process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; const deploymentName = "myDeployment"; const certificateName = "default"; + const body: NginxCertificate = { + properties: { + certificateVirtualPath: "/src/cert/somePath.cert", + keyVaultSecretId: "https://someKV.vault.azure.com/someSecretID", + keyVirtualPath: "/src/cert/somekey.key", + }, + }; + const options: CertificatesCreateOrUpdateOptionalParams = { body }; const credential = new DefaultAzureCredential(); const client = new NginxManagementClient(credential, subscriptionId); const result = await client.certificates.beginCreateOrUpdateAndWait( resourceGroupName, deploymentName, - certificateName + certificateName, + options, ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples-dev/certificatesDeleteSample.ts b/sdk/nginx/arm-nginx/samples-dev/certificatesDeleteSample.ts index 64ee12c55b6a..d387b2637692 100644 --- a/sdk/nginx/arm-nginx/samples-dev/certificatesDeleteSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/certificatesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a certificate from the NGINX deployment * * @summary Deletes a certificate from the NGINX deployment - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Certificates_Delete.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_Delete.json */ async function certificatesDelete() { const subscriptionId = @@ -33,7 +33,7 @@ async function certificatesDelete() { const result = await client.certificates.beginDeleteAndWait( resourceGroupName, deploymentName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples-dev/certificatesGetSample.ts b/sdk/nginx/arm-nginx/samples-dev/certificatesGetSample.ts index 02c8734135d1..7054d266869e 100644 --- a/sdk/nginx/arm-nginx/samples-dev/certificatesGetSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/certificatesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a certificate of given NGINX deployment * * @summary Get a certificate of given NGINX deployment - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Certificates_Get.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_Get.json */ async function certificatesGet() { const subscriptionId = @@ -33,7 +33,7 @@ async function certificatesGet() { const result = await client.certificates.get( resourceGroupName, deploymentName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples-dev/certificatesListSample.ts b/sdk/nginx/arm-nginx/samples-dev/certificatesListSample.ts index 0fa13506866f..4426dae41ab2 100644 --- a/sdk/nginx/arm-nginx/samples-dev/certificatesListSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/certificatesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all certificates of given NGINX deployment * * @summary List all certificates of given NGINX deployment - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Certificates_List.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_List.json */ async function certificatesList() { const subscriptionId = @@ -32,7 +32,7 @@ async function certificatesList() { const resArray = new Array(); for await (let item of client.certificates.list( resourceGroupName, - deploymentName + deploymentName, )) { resArray.push(item); } diff --git a/sdk/nginx/arm-nginx/samples-dev/configurationsAnalysisSample.ts b/sdk/nginx/arm-nginx/samples-dev/configurationsAnalysisSample.ts new file mode 100644 index 000000000000..5f329376b952 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples-dev/configurationsAnalysisSample.ts @@ -0,0 +1,58 @@ +/* + * 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 { + AnalysisCreate, + ConfigurationsAnalysisOptionalParams, + NginxManagementClient, +} from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Analyze an NGINX configuration without applying it to the NGINXaaS deployment + * + * @summary Analyze an NGINX configuration without applying it to the NGINXaaS deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Analysis.json + */ +async function configurationsAnalysis() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const configurationName = "default"; + const body: AnalysisCreate = { + config: { + files: [{ content: "ABCDEF==", virtualPath: "/etc/nginx/nginx.conf" }], + package: { data: undefined }, + rootFile: "/etc/nginx/nginx.conf", + }, + }; + const options: ConfigurationsAnalysisOptionalParams = { body }; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.configurations.analysis( + resourceGroupName, + deploymentName, + configurationName, + options, + ); + console.log(result); +} + +async function main() { + configurationsAnalysis(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples-dev/configurationsCreateOrUpdateSample.ts b/sdk/nginx/arm-nginx/samples-dev/configurationsCreateOrUpdateSample.ts index 136426e44be4..cb24b9462e33 100644 --- a/sdk/nginx/arm-nginx/samples-dev/configurationsCreateOrUpdateSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/configurationsCreateOrUpdateSample.ts @@ -8,7 +8,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { NginxManagementClient } from "@azure/arm-nginx"; +import { + NginxConfiguration, + ConfigurationsCreateOrUpdateOptionalParams, + NginxManagementClient, +} from "@azure/arm-nginx"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -18,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Create or update the NGINX configuration for given NGINX deployment * * @summary Create or update the NGINX configuration for given NGINX deployment - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Configurations_CreateOrUpdate.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_CreateOrUpdate.json */ async function configurationsCreateOrUpdate() { const subscriptionId = @@ -28,12 +32,21 @@ async function configurationsCreateOrUpdate() { process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; const deploymentName = "myDeployment"; const configurationName = "default"; + const body: NginxConfiguration = { + properties: { + files: [{ content: "ABCDEF==", virtualPath: "/etc/nginx/nginx.conf" }], + package: { data: undefined }, + rootFile: "/etc/nginx/nginx.conf", + }, + }; + const options: ConfigurationsCreateOrUpdateOptionalParams = { body }; const credential = new DefaultAzureCredential(); const client = new NginxManagementClient(credential, subscriptionId); const result = await client.configurations.beginCreateOrUpdateAndWait( resourceGroupName, deploymentName, - configurationName + configurationName, + options, ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples-dev/configurationsDeleteSample.ts b/sdk/nginx/arm-nginx/samples-dev/configurationsDeleteSample.ts index 78fb85564fd9..0a7a19e6fb1c 100644 --- a/sdk/nginx/arm-nginx/samples-dev/configurationsDeleteSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/configurationsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Reset the NGINX configuration of given NGINX deployment to default * * @summary Reset the NGINX configuration of given NGINX deployment to default - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Configurations_Delete.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Delete.json */ async function configurationsDelete() { const subscriptionId = @@ -33,7 +33,7 @@ async function configurationsDelete() { const result = await client.configurations.beginDeleteAndWait( resourceGroupName, deploymentName, - configurationName + configurationName, ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples-dev/configurationsGetSample.ts b/sdk/nginx/arm-nginx/samples-dev/configurationsGetSample.ts index c0deb8849551..0ea1cb35f06e 100644 --- a/sdk/nginx/arm-nginx/samples-dev/configurationsGetSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/configurationsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the NGINX configuration of given NGINX deployment * * @summary Get the NGINX configuration of given NGINX deployment - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Configurations_Get.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Get.json */ async function configurationsGet() { const subscriptionId = @@ -33,7 +33,7 @@ async function configurationsGet() { const result = await client.configurations.get( resourceGroupName, deploymentName, - configurationName + configurationName, ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples-dev/configurationsListSample.ts b/sdk/nginx/arm-nginx/samples-dev/configurationsListSample.ts index 60c008ee16cd..ca73ece1d34f 100644 --- a/sdk/nginx/arm-nginx/samples-dev/configurationsListSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/configurationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List the NGINX configuration of given NGINX deployment. * * @summary List the NGINX configuration of given NGINX deployment. - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Configurations_List.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_List.json */ async function configurationsList() { const subscriptionId = @@ -32,7 +32,7 @@ async function configurationsList() { const resArray = new Array(); for await (let item of client.configurations.list( resourceGroupName, - deploymentName + deploymentName, )) { resArray.push(item); } diff --git a/sdk/nginx/arm-nginx/samples-dev/deploymentsCreateOrUpdateSample.ts b/sdk/nginx/arm-nginx/samples-dev/deploymentsCreateOrUpdateSample.ts index 3bb068e86e51..00b276d34d05 100644 --- a/sdk/nginx/arm-nginx/samples-dev/deploymentsCreateOrUpdateSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/deploymentsCreateOrUpdateSample.ts @@ -8,7 +8,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { NginxManagementClient } from "@azure/arm-nginx"; +import { + NginxDeployment, + DeploymentsCreateOrUpdateOptionalParams, + NginxManagementClient, +} from "@azure/arm-nginx"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -18,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Create or update the NGINX deployment * * @summary Create or update the NGINX deployment - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Deployments_Create.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Create.json */ async function deploymentsCreate() { const subscriptionId = @@ -27,11 +31,45 @@ async function deploymentsCreate() { const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; const deploymentName = "myDeployment"; + const body: NginxDeployment = { + name: "myDeployment", + location: "West US", + properties: { + autoUpgradeProfile: { upgradeChannel: "stable" }, + managedResourceGroup: "myManagedResourceGroup", + networkProfile: { + frontEndIPConfiguration: { + privateIPAddresses: [ + { + privateIPAddress: "1.1.1.1", + privateIPAllocationMethod: "Static", + subnetId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + }, + ], + publicIPAddresses: [ + { + id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/publicIPAddresses/myPublicIPAddress", + }, + ], + }, + networkInterfaceConfiguration: { + subnetId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + }, + }, + scalingProperties: { capacity: 10 }, + userProfile: { preferredEmail: "example@example.email" }, + }, + tags: { environment: "Dev" }, + }; + const options: DeploymentsCreateOrUpdateOptionalParams = { body }; const credential = new DefaultAzureCredential(); const client = new NginxManagementClient(credential, subscriptionId); const result = await client.deployments.beginCreateOrUpdateAndWait( resourceGroupName, - deploymentName + deploymentName, + options, ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples-dev/deploymentsDeleteSample.ts b/sdk/nginx/arm-nginx/samples-dev/deploymentsDeleteSample.ts index 45fe335d933f..9d988686c335 100644 --- a/sdk/nginx/arm-nginx/samples-dev/deploymentsDeleteSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/deploymentsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the NGINX deployment resource * * @summary Delete the NGINX deployment resource - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Deployments_Delete.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Delete.json */ async function deploymentsDelete() { const subscriptionId = @@ -31,7 +31,7 @@ async function deploymentsDelete() { const client = new NginxManagementClient(credential, subscriptionId); const result = await client.deployments.beginDeleteAndWait( resourceGroupName, - deploymentName + deploymentName, ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples-dev/deploymentsGetSample.ts b/sdk/nginx/arm-nginx/samples-dev/deploymentsGetSample.ts index 87ba37f66f5f..29a3eeeeb79a 100644 --- a/sdk/nginx/arm-nginx/samples-dev/deploymentsGetSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/deploymentsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the NGINX deployment * * @summary Get the NGINX deployment - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Deployments_Get.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Get.json */ async function deploymentsGet() { const subscriptionId = @@ -31,13 +31,36 @@ async function deploymentsGet() { const client = new NginxManagementClient(credential, subscriptionId); const result = await client.deployments.get( resourceGroupName, - deploymentName + deploymentName, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Get the NGINX deployment + * + * @summary Get the NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Get_AutoScale.json + */ +async function deploymentsGetAutoScale() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.deployments.get( + resourceGroupName, + deploymentName, ); console.log(result); } async function main() { deploymentsGet(); + deploymentsGetAutoScale(); } main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples-dev/deploymentsListByResourceGroupSample.ts b/sdk/nginx/arm-nginx/samples-dev/deploymentsListByResourceGroupSample.ts index a7ab5f6d4c80..acb1e3521fdd 100644 --- a/sdk/nginx/arm-nginx/samples-dev/deploymentsListByResourceGroupSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/deploymentsListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all NGINX deployments under the specified resource group. * * @summary List all NGINX deployments under the specified resource group. - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Deployments_ListByResourceGroup.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_ListByResourceGroup.json */ async function deploymentsListByResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function deploymentsListByResourceGroup() { const client = new NginxManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.deployments.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/nginx/arm-nginx/samples-dev/deploymentsListSample.ts b/sdk/nginx/arm-nginx/samples-dev/deploymentsListSample.ts index 685b6e4775f9..e72d6cc1ba56 100644 --- a/sdk/nginx/arm-nginx/samples-dev/deploymentsListSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/deploymentsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List the NGINX deployments resources * * @summary List the NGINX deployments resources - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Deployments_List.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_List.json */ async function deploymentsList() { const subscriptionId = diff --git a/sdk/nginx/arm-nginx/samples-dev/deploymentsUpdateSample.ts b/sdk/nginx/arm-nginx/samples-dev/deploymentsUpdateSample.ts index 3bab5f93258d..047e24441dfc 100644 --- a/sdk/nginx/arm-nginx/samples-dev/deploymentsUpdateSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/deploymentsUpdateSample.ts @@ -8,7 +8,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { NginxManagementClient } from "@azure/arm-nginx"; +import { + NginxDeploymentUpdateParameters, + DeploymentsUpdateOptionalParams, + NginxManagementClient, +} from "@azure/arm-nginx"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -18,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Update the NGINX deployment * * @summary Update the NGINX deployment - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Deployments_Update.json + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Update.json */ async function deploymentsUpdate() { const subscriptionId = @@ -27,11 +31,16 @@ async function deploymentsUpdate() { const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; const deploymentName = "myDeployment"; + const body: NginxDeploymentUpdateParameters = { + tags: { environment: "Dev" }, + }; + const options: DeploymentsUpdateOptionalParams = { body }; const credential = new DefaultAzureCredential(); const client = new NginxManagementClient(credential, subscriptionId); const result = await client.deployments.beginUpdateAndWait( resourceGroupName, - deploymentName + deploymentName, + options, ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples-dev/operationsListSample.ts b/sdk/nginx/arm-nginx/samples-dev/operationsListSample.ts index 92d1e64a0f5d..b6aa5357230b 100644 --- a/sdk/nginx/arm-nginx/samples-dev/operationsListSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/operationsListSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to List all operations provided by Nginx.NginxPlus for the 2023-04-01 api version. + * This sample demonstrates how to List all operations provided by Nginx.NginxPlus for the 2024-01-01-preview api version. * - * @summary List all operations provided by Nginx.NginxPlus for the 2023-04-01 api version. - * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/examples/Operations_List.json + * @summary List all operations provided by Nginx.NginxPlus for the 2024-01-01-preview api version. + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Operations_List.json */ async function operationsList() { const subscriptionId = diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/README.md b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/README.md new file mode 100644 index 000000000000..4e9d9af5be40 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/README.md @@ -0,0 +1,80 @@ +# client library samples for JavaScript (Beta) + +These sample programs show how to use the JavaScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [certificatesCreateOrUpdateSample.js][certificatescreateorupdatesample] | Create or update the NGINX certificates for given NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_CreateOrUpdate.json | +| [certificatesDeleteSample.js][certificatesdeletesample] | Deletes a certificate from the NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_Delete.json | +| [certificatesGetSample.js][certificatesgetsample] | Get a certificate of given NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_Get.json | +| [certificatesListSample.js][certificateslistsample] | List all certificates of given NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_List.json | +| [configurationsAnalysisSample.js][configurationsanalysissample] | Analyze an NGINX configuration without applying it to the NGINXaaS deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Analysis.json | +| [configurationsCreateOrUpdateSample.js][configurationscreateorupdatesample] | Create or update the NGINX configuration for given NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_CreateOrUpdate.json | +| [configurationsDeleteSample.js][configurationsdeletesample] | Reset the NGINX configuration of given NGINX deployment to default x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Delete.json | +| [configurationsGetSample.js][configurationsgetsample] | Get the NGINX configuration of given NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Get.json | +| [configurationsListSample.js][configurationslistsample] | List the NGINX configuration of given NGINX deployment. x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_List.json | +| [deploymentsCreateOrUpdateSample.js][deploymentscreateorupdatesample] | Create or update the NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Create.json | +| [deploymentsDeleteSample.js][deploymentsdeletesample] | Delete the NGINX deployment resource x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Delete.json | +| [deploymentsGetSample.js][deploymentsgetsample] | Get the NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Get.json | +| [deploymentsListByResourceGroupSample.js][deploymentslistbyresourcegroupsample] | List all NGINX deployments under the specified resource group. x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_ListByResourceGroup.json | +| [deploymentsListSample.js][deploymentslistsample] | List the NGINX deployments resources x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_List.json | +| [deploymentsUpdateSample.js][deploymentsupdatesample] | Update the NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Update.json | +| [operationsListSample.js][operationslistsample] | List all operations provided by Nginx.NginxPlus for the 2024-01-01-preview api version. x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Operations_List.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. 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. + +3. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node certificatesCreateOrUpdateSample.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 NGINX_SUBSCRIPTION_ID="" NGINX_RESOURCE_GROUP="" node certificatesCreateOrUpdateSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[certificatescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesCreateOrUpdateSample.js +[certificatesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesDeleteSample.js +[certificatesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesGetSample.js +[certificateslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesListSample.js +[configurationsanalysissample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsAnalysisSample.js +[configurationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsCreateOrUpdateSample.js +[configurationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsDeleteSample.js +[configurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsGetSample.js +[configurationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsListSample.js +[deploymentscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsCreateOrUpdateSample.js +[deploymentsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsDeleteSample.js +[deploymentsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsGetSample.js +[deploymentslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsListByResourceGroupSample.js +[deploymentslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsListSample.js +[deploymentsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsUpdateSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/javascript/operationsListSample.js +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-nginx?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/nginx/arm-nginx/README.md diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesCreateOrUpdateSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesCreateOrUpdateSample.js new file mode 100644 index 000000000000..4bed27b934fa --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesCreateOrUpdateSample.js @@ -0,0 +1,50 @@ +/* + * 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 { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create or update the NGINX certificates for given NGINX deployment + * + * @summary Create or update the NGINX certificates for given NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_CreateOrUpdate.json + */ +async function certificatesCreateOrUpdate() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const certificateName = "default"; + const body = { + properties: { + certificateVirtualPath: "/src/cert/somePath.cert", + keyVaultSecretId: "https://someKV.vault.azure.com/someSecretID", + keyVirtualPath: "/src/cert/somekey.key", + }, + }; + const options = { body }; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.certificates.beginCreateOrUpdateAndWait( + resourceGroupName, + deploymentName, + certificateName, + options, + ); + console.log(result); +} + +async function main() { + certificatesCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesDeleteSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesDeleteSample.js new file mode 100644 index 000000000000..0a6b44511ea7 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesDeleteSample.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 { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes a certificate from the NGINX deployment + * + * @summary Deletes a certificate from the NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_Delete.json + */ +async function certificatesDelete() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const certificateName = "default"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.certificates.beginDeleteAndWait( + resourceGroupName, + deploymentName, + certificateName, + ); + console.log(result); +} + +async function main() { + certificatesDelete(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesGetSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesGetSample.js new file mode 100644 index 000000000000..ee065cb4ec44 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesGetSample.js @@ -0,0 +1,37 @@ +/* + * 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 { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get a certificate of given NGINX deployment + * + * @summary Get a certificate of given NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_Get.json + */ +async function certificatesGet() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const certificateName = "default"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.certificates.get(resourceGroupName, deploymentName, certificateName); + console.log(result); +} + +async function main() { + certificatesGet(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesListSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesListSample.js new file mode 100644 index 000000000000..966fe83edd43 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/certificatesListSample.js @@ -0,0 +1,39 @@ +/* + * 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 { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List all certificates of given NGINX deployment + * + * @summary List all certificates of given NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_List.json + */ +async function certificatesList() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.certificates.list(resourceGroupName, deploymentName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + certificatesList(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsAnalysisSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsAnalysisSample.js new file mode 100644 index 000000000000..8f5ac23fc991 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsAnalysisSample.js @@ -0,0 +1,50 @@ +/* + * 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 { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Analyze an NGINX configuration without applying it to the NGINXaaS deployment + * + * @summary Analyze an NGINX configuration without applying it to the NGINXaaS deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Analysis.json + */ +async function configurationsAnalysis() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const configurationName = "default"; + const body = { + config: { + files: [{ content: "ABCDEF==", virtualPath: "/etc/nginx/nginx.conf" }], + package: { data: undefined }, + rootFile: "/etc/nginx/nginx.conf", + }, + }; + const options = { body }; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.configurations.analysis( + resourceGroupName, + deploymentName, + configurationName, + options, + ); + console.log(result); +} + +async function main() { + configurationsAnalysis(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsCreateOrUpdateSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsCreateOrUpdateSample.js new file mode 100644 index 000000000000..ab64fa819747 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsCreateOrUpdateSample.js @@ -0,0 +1,50 @@ +/* + * 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 { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create or update the NGINX configuration for given NGINX deployment + * + * @summary Create or update the NGINX configuration for given NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_CreateOrUpdate.json + */ +async function configurationsCreateOrUpdate() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const configurationName = "default"; + const body = { + properties: { + files: [{ content: "ABCDEF==", virtualPath: "/etc/nginx/nginx.conf" }], + package: { data: undefined }, + rootFile: "/etc/nginx/nginx.conf", + }, + }; + const options = { body }; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.configurations.beginCreateOrUpdateAndWait( + resourceGroupName, + deploymentName, + configurationName, + options, + ); + console.log(result); +} + +async function main() { + configurationsCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsDeleteSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsDeleteSample.js new file mode 100644 index 000000000000..406cba22f689 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsDeleteSample.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 { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Reset the NGINX configuration of given NGINX deployment to default + * + * @summary Reset the NGINX configuration of given NGINX deployment to default + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Delete.json + */ +async function configurationsDelete() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const configurationName = "default"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.configurations.beginDeleteAndWait( + resourceGroupName, + deploymentName, + configurationName, + ); + console.log(result); +} + +async function main() { + configurationsDelete(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsGetSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsGetSample.js new file mode 100644 index 000000000000..6496ee743ff6 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsGetSample.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 { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get the NGINX configuration of given NGINX deployment + * + * @summary Get the NGINX configuration of given NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Get.json + */ +async function configurationsGet() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const configurationName = "default"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.configurations.get( + resourceGroupName, + deploymentName, + configurationName, + ); + console.log(result); +} + +async function main() { + configurationsGet(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsListSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsListSample.js new file mode 100644 index 000000000000..339062db1e71 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/configurationsListSample.js @@ -0,0 +1,39 @@ +/* + * 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 { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List the NGINX configuration of given NGINX deployment. + * + * @summary List the NGINX configuration of given NGINX deployment. + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_List.json + */ +async function configurationsList() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.configurations.list(resourceGroupName, deploymentName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + configurationsList(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsCreateOrUpdateSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsCreateOrUpdateSample.js new file mode 100644 index 000000000000..293ade7bd42e --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsCreateOrUpdateSample.js @@ -0,0 +1,73 @@ +/* + * 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 { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create or update the NGINX deployment + * + * @summary Create or update the NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Create.json + */ +async function deploymentsCreate() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const body = { + name: "myDeployment", + location: "West US", + properties: { + autoUpgradeProfile: { upgradeChannel: "stable" }, + managedResourceGroup: "myManagedResourceGroup", + networkProfile: { + frontEndIPConfiguration: { + privateIPAddresses: [ + { + privateIPAddress: "1.1.1.1", + privateIPAllocationMethod: "Static", + subnetId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + }, + ], + publicIPAddresses: [ + { + id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/publicIPAddresses/myPublicIPAddress", + }, + ], + }, + networkInterfaceConfiguration: { + subnetId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + }, + }, + scalingProperties: { capacity: 10 }, + userProfile: { preferredEmail: "example@example.email" }, + }, + tags: { environment: "Dev" }, + }; + const options = { body }; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.deployments.beginCreateOrUpdateAndWait( + resourceGroupName, + deploymentName, + options, + ); + console.log(result); +} + +async function main() { + deploymentsCreate(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsDeleteSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsDeleteSample.js new file mode 100644 index 000000000000..fa27cd1a4aff --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsDeleteSample.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 { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Delete the NGINX deployment resource + * + * @summary Delete the NGINX deployment resource + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Delete.json + */ +async function deploymentsDelete() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.deployments.beginDeleteAndWait(resourceGroupName, deploymentName); + console.log(result); +} + +async function main() { + deploymentsDelete(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsGetSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsGetSample.js new file mode 100644 index 000000000000..256b79f1e217 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsGetSample.js @@ -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. +const { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get the NGINX deployment + * + * @summary Get the NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Get.json + */ +async function deploymentsGet() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.deployments.get(resourceGroupName, deploymentName); + console.log(result); +} + +/** + * This sample demonstrates how to Get the NGINX deployment + * + * @summary Get the NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Get_AutoScale.json + */ +async function deploymentsGetAutoScale() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.deployments.get(resourceGroupName, deploymentName); + console.log(result); +} + +async function main() { + deploymentsGet(); + deploymentsGetAutoScale(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsListByResourceGroupSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsListByResourceGroupSample.js new file mode 100644 index 000000000000..3506782c997b --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsListByResourceGroupSample.js @@ -0,0 +1,38 @@ +/* + * 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 { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List all NGINX deployments under the specified resource group. + * + * @summary List all NGINX deployments under the specified resource group. + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_ListByResourceGroup.json + */ +async function deploymentsListByResourceGroup() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.deployments.listByResourceGroup(resourceGroupName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + deploymentsListByResourceGroup(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsListSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsListSample.js new file mode 100644 index 000000000000..aebb74bd72bc --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsListSample.js @@ -0,0 +1,37 @@ +/* + * 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 { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List the NGINX deployments resources + * + * @summary List the NGINX deployments resources + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_List.json + */ +async function deploymentsList() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.deployments.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + deploymentsList(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsUpdateSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsUpdateSample.js new file mode 100644 index 000000000000..ac1a6c6bb8a4 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/deploymentsUpdateSample.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 { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Update the NGINX deployment + * + * @summary Update the NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Update.json + */ +async function deploymentsUpdate() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const body = { + tags: { environment: "Dev" }, + }; + const options = { body }; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.deployments.beginUpdateAndWait( + resourceGroupName, + deploymentName, + options, + ); + console.log(result); +} + +async function main() { + deploymentsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/operationsListSample.js b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/operationsListSample.js new file mode 100644 index 000000000000..56a1d87e1e66 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/operationsListSample.js @@ -0,0 +1,37 @@ +/* + * 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 { NginxManagementClient } = require("@azure/arm-nginx"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List all operations provided by Nginx.NginxPlus for the 2024-01-01-preview api version. + * + * @summary List all operations provided by Nginx.NginxPlus for the 2024-01-01-preview api version. + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Operations_List.json + */ +async function operationsList() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + operationsList(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/package.json b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/package.json new file mode 100644 index 000000000000..4b0a8e4079d2 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/package.json @@ -0,0 +1,32 @@ +{ + "name": "@azure-samples/arm-nginx-js-beta", + "private": true, + "version": "1.0.0", + "description": " client library samples for JavaScript (Beta)", + "engines": { + "node": ">=18.0.0" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/nginx/arm-nginx" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/nginx/arm-nginx", + "dependencies": { + "@azure/arm-nginx": "next", + "dotenv": "latest", + "@azure/identity": "^4.0.1" + } +} diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/javascript/sample.env b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/sample.env new file mode 100644 index 000000000000..672847a3fea0 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/javascript/sample.env @@ -0,0 +1,4 @@ +# App registration secret for AAD authentication +AZURE_CLIENT_SECRET= +AZURE_CLIENT_ID= +AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/README.md b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/README.md new file mode 100644 index 000000000000..379dcbe6e438 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/README.md @@ -0,0 +1,93 @@ +# client library samples for TypeScript (Beta) + +These sample programs show how to use the TypeScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [certificatesCreateOrUpdateSample.ts][certificatescreateorupdatesample] | Create or update the NGINX certificates for given NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_CreateOrUpdate.json | +| [certificatesDeleteSample.ts][certificatesdeletesample] | Deletes a certificate from the NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_Delete.json | +| [certificatesGetSample.ts][certificatesgetsample] | Get a certificate of given NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_Get.json | +| [certificatesListSample.ts][certificateslistsample] | List all certificates of given NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_List.json | +| [configurationsAnalysisSample.ts][configurationsanalysissample] | Analyze an NGINX configuration without applying it to the NGINXaaS deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Analysis.json | +| [configurationsCreateOrUpdateSample.ts][configurationscreateorupdatesample] | Create or update the NGINX configuration for given NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_CreateOrUpdate.json | +| [configurationsDeleteSample.ts][configurationsdeletesample] | Reset the NGINX configuration of given NGINX deployment to default x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Delete.json | +| [configurationsGetSample.ts][configurationsgetsample] | Get the NGINX configuration of given NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Get.json | +| [configurationsListSample.ts][configurationslistsample] | List the NGINX configuration of given NGINX deployment. x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_List.json | +| [deploymentsCreateOrUpdateSample.ts][deploymentscreateorupdatesample] | Create or update the NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Create.json | +| [deploymentsDeleteSample.ts][deploymentsdeletesample] | Delete the NGINX deployment resource x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Delete.json | +| [deploymentsGetSample.ts][deploymentsgetsample] | Get the NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Get.json | +| [deploymentsListByResourceGroupSample.ts][deploymentslistbyresourcegroupsample] | List all NGINX deployments under the specified resource group. x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_ListByResourceGroup.json | +| [deploymentsListSample.ts][deploymentslistsample] | List the NGINX deployments resources x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_List.json | +| [deploymentsUpdateSample.ts][deploymentsupdatesample] | Update the NGINX deployment x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Update.json | +| [operationsListSample.ts][operationslistsample] | List all operations provided by Nginx.NginxPlus for the 2024-01-01-preview api version. x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Operations_List.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +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: + +```bash +npm install -g typescript +``` + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Compile the samples: + +```bash +npm run build +``` + +3. 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. + +4. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node dist/certificatesCreateOrUpdateSample.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 NGINX_SUBSCRIPTION_ID="" NGINX_RESOURCE_GROUP="" node dist/certificatesCreateOrUpdateSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[certificatescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesCreateOrUpdateSample.ts +[certificatesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesDeleteSample.ts +[certificatesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesGetSample.ts +[certificateslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesListSample.ts +[configurationsanalysissample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsAnalysisSample.ts +[configurationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsCreateOrUpdateSample.ts +[configurationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsDeleteSample.ts +[configurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsGetSample.ts +[configurationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsListSample.ts +[deploymentscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsCreateOrUpdateSample.ts +[deploymentsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsDeleteSample.ts +[deploymentsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsGetSample.ts +[deploymentslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsListByResourceGroupSample.ts +[deploymentslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsListSample.ts +[deploymentsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsUpdateSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/operationsListSample.ts +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-nginx?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/nginx/arm-nginx/README.md +[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/package.json b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/package.json new file mode 100644 index 000000000000..bb1a63d2d58c --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/package.json @@ -0,0 +1,41 @@ +{ + "name": "@azure-samples/arm-nginx-ts-beta", + "private": true, + "version": "1.0.0", + "description": " client library samples for TypeScript (Beta)", + "engines": { + "node": ">=18.0.0" + }, + "scripts": { + "build": "tsc", + "prebuild": "rimraf dist/" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/nginx/arm-nginx" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/nginx/arm-nginx", + "dependencies": { + "@azure/arm-nginx": "next", + "dotenv": "latest", + "@azure/identity": "^4.0.1" + }, + "devDependencies": { + "@types/node": "^18.0.0", + "typescript": "~5.3.3", + "rimraf": "latest" + } +} diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/sample.env b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/sample.env new file mode 100644 index 000000000000..672847a3fea0 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/sample.env @@ -0,0 +1,4 @@ +# App registration secret for AAD authentication +AZURE_CLIENT_SECRET= +AZURE_CLIENT_ID= +AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesCreateOrUpdateSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesCreateOrUpdateSample.ts new file mode 100644 index 000000000000..0fb4f322de27 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesCreateOrUpdateSample.ts @@ -0,0 +1,58 @@ +/* + * 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 { + NginxCertificate, + CertificatesCreateOrUpdateOptionalParams, + NginxManagementClient, +} from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create or update the NGINX certificates for given NGINX deployment + * + * @summary Create or update the NGINX certificates for given NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_CreateOrUpdate.json + */ +async function certificatesCreateOrUpdate() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const certificateName = "default"; + const body: NginxCertificate = { + properties: { + certificateVirtualPath: "/src/cert/somePath.cert", + keyVaultSecretId: "https://someKV.vault.azure.com/someSecretID", + keyVirtualPath: "/src/cert/somekey.key", + }, + }; + const options: CertificatesCreateOrUpdateOptionalParams = { body }; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.certificates.beginCreateOrUpdateAndWait( + resourceGroupName, + deploymentName, + certificateName, + options, + ); + console.log(result); +} + +async function main() { + certificatesCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesDeleteSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesDeleteSample.ts new file mode 100644 index 000000000000..d387b2637692 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesDeleteSample.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 { NginxManagementClient } from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a certificate from the NGINX deployment + * + * @summary Deletes a certificate from the NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_Delete.json + */ +async function certificatesDelete() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const certificateName = "default"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.certificates.beginDeleteAndWait( + resourceGroupName, + deploymentName, + certificateName, + ); + console.log(result); +} + +async function main() { + certificatesDelete(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesGetSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesGetSample.ts new file mode 100644 index 000000000000..7054d266869e --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesGetSample.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 { NginxManagementClient } from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get a certificate of given NGINX deployment + * + * @summary Get a certificate of given NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_Get.json + */ +async function certificatesGet() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const certificateName = "default"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.certificates.get( + resourceGroupName, + deploymentName, + certificateName, + ); + console.log(result); +} + +async function main() { + certificatesGet(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesListSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesListSample.ts new file mode 100644 index 000000000000..4426dae41ab2 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/certificatesListSample.ts @@ -0,0 +1,46 @@ +/* + * 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 { NginxManagementClient } from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List all certificates of given NGINX deployment + * + * @summary List all certificates of given NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Certificates_List.json + */ +async function certificatesList() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.certificates.list( + resourceGroupName, + deploymentName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + certificatesList(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsAnalysisSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsAnalysisSample.ts new file mode 100644 index 000000000000..5f329376b952 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsAnalysisSample.ts @@ -0,0 +1,58 @@ +/* + * 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 { + AnalysisCreate, + ConfigurationsAnalysisOptionalParams, + NginxManagementClient, +} from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Analyze an NGINX configuration without applying it to the NGINXaaS deployment + * + * @summary Analyze an NGINX configuration without applying it to the NGINXaaS deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Analysis.json + */ +async function configurationsAnalysis() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const configurationName = "default"; + const body: AnalysisCreate = { + config: { + files: [{ content: "ABCDEF==", virtualPath: "/etc/nginx/nginx.conf" }], + package: { data: undefined }, + rootFile: "/etc/nginx/nginx.conf", + }, + }; + const options: ConfigurationsAnalysisOptionalParams = { body }; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.configurations.analysis( + resourceGroupName, + deploymentName, + configurationName, + options, + ); + console.log(result); +} + +async function main() { + configurationsAnalysis(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsCreateOrUpdateSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsCreateOrUpdateSample.ts new file mode 100644 index 000000000000..cb24b9462e33 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsCreateOrUpdateSample.ts @@ -0,0 +1,58 @@ +/* + * 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 { + NginxConfiguration, + ConfigurationsCreateOrUpdateOptionalParams, + NginxManagementClient, +} from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create or update the NGINX configuration for given NGINX deployment + * + * @summary Create or update the NGINX configuration for given NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_CreateOrUpdate.json + */ +async function configurationsCreateOrUpdate() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const configurationName = "default"; + const body: NginxConfiguration = { + properties: { + files: [{ content: "ABCDEF==", virtualPath: "/etc/nginx/nginx.conf" }], + package: { data: undefined }, + rootFile: "/etc/nginx/nginx.conf", + }, + }; + const options: ConfigurationsCreateOrUpdateOptionalParams = { body }; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.configurations.beginCreateOrUpdateAndWait( + resourceGroupName, + deploymentName, + configurationName, + options, + ); + console.log(result); +} + +async function main() { + configurationsCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsDeleteSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsDeleteSample.ts new file mode 100644 index 000000000000..0a7a19e6fb1c --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsDeleteSample.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 { NginxManagementClient } from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Reset the NGINX configuration of given NGINX deployment to default + * + * @summary Reset the NGINX configuration of given NGINX deployment to default + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Delete.json + */ +async function configurationsDelete() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const configurationName = "default"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.configurations.beginDeleteAndWait( + resourceGroupName, + deploymentName, + configurationName, + ); + console.log(result); +} + +async function main() { + configurationsDelete(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsGetSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsGetSample.ts new file mode 100644 index 000000000000..0ea1cb35f06e --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsGetSample.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 { NginxManagementClient } from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get the NGINX configuration of given NGINX deployment + * + * @summary Get the NGINX configuration of given NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_Get.json + */ +async function configurationsGet() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const configurationName = "default"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.configurations.get( + resourceGroupName, + deploymentName, + configurationName, + ); + console.log(result); +} + +async function main() { + configurationsGet(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsListSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsListSample.ts new file mode 100644 index 000000000000..ca73ece1d34f --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/configurationsListSample.ts @@ -0,0 +1,46 @@ +/* + * 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 { NginxManagementClient } from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List the NGINX configuration of given NGINX deployment. + * + * @summary List the NGINX configuration of given NGINX deployment. + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Configurations_List.json + */ +async function configurationsList() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.configurations.list( + resourceGroupName, + deploymentName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + configurationsList(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsCreateOrUpdateSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsCreateOrUpdateSample.ts new file mode 100644 index 000000000000..00b276d34d05 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsCreateOrUpdateSample.ts @@ -0,0 +1,81 @@ +/* + * 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 { + NginxDeployment, + DeploymentsCreateOrUpdateOptionalParams, + NginxManagementClient, +} from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create or update the NGINX deployment + * + * @summary Create or update the NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Create.json + */ +async function deploymentsCreate() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const body: NginxDeployment = { + name: "myDeployment", + location: "West US", + properties: { + autoUpgradeProfile: { upgradeChannel: "stable" }, + managedResourceGroup: "myManagedResourceGroup", + networkProfile: { + frontEndIPConfiguration: { + privateIPAddresses: [ + { + privateIPAddress: "1.1.1.1", + privateIPAllocationMethod: "Static", + subnetId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + }, + ], + publicIPAddresses: [ + { + id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/publicIPAddresses/myPublicIPAddress", + }, + ], + }, + networkInterfaceConfiguration: { + subnetId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + }, + }, + scalingProperties: { capacity: 10 }, + userProfile: { preferredEmail: "example@example.email" }, + }, + tags: { environment: "Dev" }, + }; + const options: DeploymentsCreateOrUpdateOptionalParams = { body }; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.deployments.beginCreateOrUpdateAndWait( + resourceGroupName, + deploymentName, + options, + ); + console.log(result); +} + +async function main() { + deploymentsCreate(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsDeleteSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsDeleteSample.ts new file mode 100644 index 000000000000..9d988686c335 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsDeleteSample.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 { NginxManagementClient } from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Delete the NGINX deployment resource + * + * @summary Delete the NGINX deployment resource + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Delete.json + */ +async function deploymentsDelete() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.deployments.beginDeleteAndWait( + resourceGroupName, + deploymentName, + ); + console.log(result); +} + +async function main() { + deploymentsDelete(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsGetSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsGetSample.ts new file mode 100644 index 000000000000..29a3eeeeb79a --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsGetSample.ts @@ -0,0 +1,66 @@ +/* + * 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 { NginxManagementClient } from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get the NGINX deployment + * + * @summary Get the NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Get.json + */ +async function deploymentsGet() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.deployments.get( + resourceGroupName, + deploymentName, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Get the NGINX deployment + * + * @summary Get the NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Get_AutoScale.json + */ +async function deploymentsGetAutoScale() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.deployments.get( + resourceGroupName, + deploymentName, + ); + console.log(result); +} + +async function main() { + deploymentsGet(); + deploymentsGetAutoScale(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsListByResourceGroupSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsListByResourceGroupSample.ts new file mode 100644 index 000000000000..acb1e3521fdd --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsListByResourceGroupSample.ts @@ -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. +import { NginxManagementClient } from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List all NGINX deployments under the specified resource group. + * + * @summary List all NGINX deployments under the specified resource group. + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_ListByResourceGroup.json + */ +async function deploymentsListByResourceGroup() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.deployments.listByResourceGroup( + resourceGroupName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + deploymentsListByResourceGroup(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsListSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsListSample.ts new file mode 100644 index 000000000000..e72d6cc1ba56 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsListSample.ts @@ -0,0 +1,40 @@ +/* + * 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 { NginxManagementClient } from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List the NGINX deployments resources + * + * @summary List the NGINX deployments resources + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_List.json + */ +async function deploymentsList() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.deployments.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + deploymentsList(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsUpdateSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsUpdateSample.ts new file mode 100644 index 000000000000..047e24441dfc --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/deploymentsUpdateSample.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 { + NginxDeploymentUpdateParameters, + DeploymentsUpdateOptionalParams, + NginxManagementClient, +} from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Update the NGINX deployment + * + * @summary Update the NGINX deployment + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Deployments_Update.json + */ +async function deploymentsUpdate() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; + const deploymentName = "myDeployment"; + const body: NginxDeploymentUpdateParameters = { + tags: { environment: "Dev" }, + }; + const options: DeploymentsUpdateOptionalParams = { body }; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const result = await client.deployments.beginUpdateAndWait( + resourceGroupName, + deploymentName, + options, + ); + console.log(result); +} + +async function main() { + deploymentsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/operationsListSample.ts b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/operationsListSample.ts new file mode 100644 index 000000000000..b6aa5357230b --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/src/operationsListSample.ts @@ -0,0 +1,40 @@ +/* + * 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 { NginxManagementClient } from "@azure/arm-nginx"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List all operations provided by Nginx.NginxPlus for the 2024-01-01-preview api version. + * + * @summary List all operations provided by Nginx.NginxPlus for the 2024-01-01-preview api version. + * x-ms-original-file: specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/examples/Operations_List.json + */ +async function operationsList() { + const subscriptionId = + process.env["NGINX_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new NginxManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + operationsList(); +} + +main().catch(console.error); diff --git a/sdk/nginx/arm-nginx/samples/v4-beta/typescript/tsconfig.json b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/tsconfig.json new file mode 100644 index 000000000000..e26ce2a6d8f7 --- /dev/null +++ b/sdk/nginx/arm-nginx/samples/v4-beta/typescript/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "commonjs", + "moduleResolution": "node", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "alwaysStrict": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src/**.ts" + ] +} 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; From 077f43521093f85c94486a9b842ad50902307cc1 Mon Sep 17 00:00:00 2001 From: ZiWei Chen <98569699+kazrael2119@users.noreply.github.com> Date: Tue, 19 Mar 2024 14:03:02 +0800 Subject: [PATCH 17/20] [mgmt] notificationhub release (#28881) https://github.com/Azure/sdk-release-request/issues/4999 swagger pr : https://github.com/Azure/azure-rest-api-specs/pull/28215 --- common/config/rush/pnpm-lock.yaml | 6 +- .../arm-notificationhubs/CHANGELOG.md | 179 +- .../arm-notificationhubs/LICENSE | 2 +- .../arm-notificationhubs/README.md | 4 +- .../arm-notificationhubs/_meta.json | 10 +- .../arm-notificationhubs/assets.json | 2 +- .../arm-notificationhubs/package.json | 27 +- .../review/arm-notificationhubs.api.md | 669 +++- .../namespacesCheckAvailabilitySample.ts | 23 +- ...esCreateOrUpdateAuthorizationRuleSample.ts | 32 +- .../namespacesCreateOrUpdateSample.ts | 45 +- ...namespacesDeleteAuthorizationRuleSample.ts | 24 +- .../samples-dev/namespacesDeleteSample.ts | 26 +- .../namespacesGetAuthorizationRuleSample.ts | 24 +- .../namespacesGetPnsCredentialsSample.ts | 46 + .../samples-dev/namespacesGetSample.ts | 26 +- .../samples-dev/namespacesListAllSample.ts | 23 +- .../namespacesListAuthorizationRulesSample.ts | 24 +- .../samples-dev/namespacesListKeysSample.ts | 28 +- .../samples-dev/namespacesListSample.ts | 26 +- .../samples-dev/namespacesPatchSample.ts | 44 - .../namespacesRegenerateKeysSample.ts | 30 +- .../samples-dev/namespacesUpdateSample.ts | 62 + ...sCheckNotificationHubAvailabilitySample.ts | 28 +- ...bsCreateOrUpdateAuthorizationRuleSample.ts | 34 +- .../notificationHubsCreateOrUpdateSample.ts | 32 +- .../notificationHubsDebugSendSample.ts | 34 +- ...cationHubsDeleteAuthorizationRuleSample.ts | 24 +- .../notificationHubsDeleteSample.ts | 24 +- ...ificationHubsGetAuthorizationRuleSample.ts | 24 +- ...notificationHubsGetPnsCredentialsSample.ts | 28 +- .../samples-dev/notificationHubsGetSample.ts | 28 +- ...icationHubsListAuthorizationRulesSample.ts | 24 +- .../notificationHubsListKeysSample.ts | 24 +- .../samples-dev/notificationHubsListSample.ts | 24 +- .../notificationHubsRegenerateKeysSample.ts | 30 +- .../notificationHubsUpdateSample.ts} | 38 +- .../samples-dev/operationsListSample.ts | 21 +- .../privateEndpointConnectionsDeleteSample.ts | 51 + ...vateEndpointConnectionsGetGroupIdSample.ts | 50 + .../privateEndpointConnectionsGetSample.ts | 51 + ...teEndpointConnectionsListGroupIdsSample.ts | 51 + .../privateEndpointConnectionsListSample.ts | 51 + .../privateEndpointConnectionsUpdateSample.ts | 61 + .../samples/v2/javascript/README.md | 104 - .../namespacesCreateOrUpdateSample.js | 39 - .../v2/javascript/namespacesPatchSample.js | 34 - .../samples/v2/typescript/README.md | 117 - .../src/namespacesCreateOrUpdateSample.ts | 45 - .../typescript/src/namespacesPatchSample.ts | 44 - .../samples/v3-beta/javascript/README.md | 118 + .../namespacesCheckAvailabilitySample.js | 14 +- ...esCreateOrUpdateAuthorizationRuleSample.js | 20 +- .../namespacesCreateOrUpdateSample.js | 50 + ...namespacesDeleteAuthorizationRuleSample.js | 18 +- .../javascript/namespacesDeleteSample.js | 18 +- .../namespacesGetAuthorizationRuleSample.js | 18 +- .../namespacesGetPnsCredentialsSample.js | 36 + .../javascript/namespacesGetSample.js | 20 +- .../javascript/namespacesListAllSample.js | 18 +- .../namespacesListAuthorizationRulesSample.js | 18 +- .../javascript/namespacesListKeysSample.js | 22 +- .../javascript/namespacesListSample.js | 20 +- .../namespacesRegenerateKeysSample.js | 18 +- .../javascript/namespacesUpdateSample.js | 48 + ...sCheckNotificationHubAvailabilitySample.js | 18 +- ...bsCreateOrUpdateAuthorizationRuleSample.js | 22 +- .../notificationHubsCreateOrUpdateSample.js | 22 +- .../notificationHubsDebugSendSample.js | 23 +- ...cationHubsDeleteAuthorizationRuleSample.js | 18 +- .../notificationHubsDeleteSample.js | 18 +- ...ificationHubsGetAuthorizationRuleSample.js | 18 +- ...notificationHubsGetPnsCredentialsSample.js | 22 +- .../javascript/notificationHubsGetSample.js | 22 +- ...icationHubsListAuthorizationRulesSample.js | 18 +- .../notificationHubsListKeysSample.js | 18 +- .../javascript/notificationHubsListSample.js | 16 +- .../notificationHubsRegenerateKeysSample.js | 18 +- .../notificationHubsUpdateSample.js} | 29 +- .../javascript/operationsListSample.js | 16 +- .../{v2 => v3-beta}/javascript/package.json | 6 +- .../privateEndpointConnectionsDeleteSample.js | 43 + ...vateEndpointConnectionsGetGroupIdSample.js | 43 + .../privateEndpointConnectionsGetSample.js | 43 + ...teEndpointConnectionsListGroupIdsSample.js | 44 + .../privateEndpointConnectionsListSample.js | 41 + .../privateEndpointConnectionsUpdateSample.js | 50 + .../{v2 => v3-beta}/javascript/sample.env | 0 .../samples/v3-beta/typescript/README.md | 131 + .../{v2 => v3-beta}/typescript/package.json | 6 +- .../{v2 => v3-beta}/typescript/sample.env | 0 .../src/namespacesCheckAvailabilitySample.ts | 23 +- ...esCreateOrUpdateAuthorizationRuleSample.ts | 32 +- .../src/namespacesCreateOrUpdateSample.ts | 62 + ...namespacesDeleteAuthorizationRuleSample.ts | 24 +- .../typescript/src/namespacesDeleteSample.ts | 26 +- .../namespacesGetAuthorizationRuleSample.ts | 24 +- .../src/namespacesGetPnsCredentialsSample.ts | 46 + .../typescript/src/namespacesGetSample.ts | 26 +- .../typescript/src/namespacesListAllSample.ts | 23 +- .../namespacesListAuthorizationRulesSample.ts | 24 +- .../src/namespacesListKeysSample.ts | 28 +- .../typescript/src/namespacesListSample.ts | 26 +- .../src/namespacesRegenerateKeysSample.ts | 30 +- .../typescript/src/namespacesUpdateSample.ts | 62 + ...sCheckNotificationHubAvailabilitySample.ts | 28 +- ...bsCreateOrUpdateAuthorizationRuleSample.ts | 34 +- .../notificationHubsCreateOrUpdateSample.ts | 32 +- .../src/notificationHubsDebugSendSample.ts | 34 +- ...cationHubsDeleteAuthorizationRuleSample.ts | 24 +- .../src/notificationHubsDeleteSample.ts | 24 +- ...ificationHubsGetAuthorizationRuleSample.ts | 24 +- ...notificationHubsGetPnsCredentialsSample.ts | 28 +- .../src/notificationHubsGetSample.ts | 28 +- ...icationHubsListAuthorizationRulesSample.ts | 24 +- .../src/notificationHubsListKeysSample.ts | 24 +- .../src/notificationHubsListSample.ts | 24 +- .../notificationHubsRegenerateKeysSample.ts | 30 +- .../src/notificationHubsUpdateSample.ts} | 38 +- .../typescript/src/operationsListSample.ts | 21 +- .../privateEndpointConnectionsDeleteSample.ts | 51 + ...vateEndpointConnectionsGetGroupIdSample.ts | 50 + .../privateEndpointConnectionsGetSample.ts | 51 + ...teEndpointConnectionsListGroupIdsSample.ts | 51 + .../privateEndpointConnectionsListSample.ts | 51 + .../privateEndpointConnectionsUpdateSample.ts | 61 + .../{v2 => v3-beta}/typescript/tsconfig.json | 2 +- .../arm-notificationhubs/src/lroImpl.ts | 54 +- .../arm-notificationhubs/src/models/index.ts | 1925 ++++++++--- .../src/models/mappers.ts | 2843 ++++++++++++----- .../src/models/parameters.ts | 239 +- .../src/notificationHubsManagementClient.ts | 56 +- .../src/operations/index.ts | 5 +- .../src/operations/namespaces.ts | 785 +++-- .../src/operations/notificationHubs.ts | 601 ++-- .../src/operations/operations.ts | 37 +- .../operations/privateEndpointConnections.ts | 629 ++++ .../src/operationsInterfaces/index.ts | 5 +- .../src/operationsInterfaces/namespaces.ts | 189 +- .../operationsInterfaces/notificationHubs.ts | 177 +- .../src/operationsInterfaces/operations.ts | 4 +- .../privateEndpointConnections.ts | 156 + .../arm-notificationhubs/src/pagingHelper.ts | 10 +- .../test/notificationhubs_examples.ts | 18 +- 144 files changed, 9139 insertions(+), 3442 deletions(-) create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesGetPnsCredentialsSample.ts delete mode 100644 sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesPatchSample.ts create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesUpdateSample.ts rename sdk/notificationhubs/arm-notificationhubs/{samples/v2/typescript/src/notificationHubsPatchSample.ts => samples-dev/notificationHubsUpdateSample.ts} (52%) create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsDeleteSample.ts create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsGetGroupIdSample.ts create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsGetSample.ts create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsListGroupIdsSample.ts create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsListSample.ts create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsUpdateSample.ts delete mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/README.md delete mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesCreateOrUpdateSample.js delete mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesPatchSample.js delete mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/README.md delete mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesCreateOrUpdateSample.ts delete mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesPatchSample.ts create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/README.md rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/namespacesCheckAvailabilitySample.js (75%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/namespacesCreateOrUpdateAuthorizationRuleSample.js (65%) create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesCreateOrUpdateSample.js rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/namespacesDeleteAuthorizationRuleSample.js (66%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/namespacesDeleteSample.js (65%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/namespacesGetAuthorizationRuleSample.js (67%) create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesGetPnsCredentialsSample.js rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/namespacesGetSample.js (59%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/namespacesListAllSample.js (69%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/namespacesListAuthorizationRulesSample.js (66%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/namespacesListKeysSample.js (65%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/namespacesListSample.js (61%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/namespacesRegenerateKeysSample.js (70%) create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesUpdateSample.js rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/notificationHubsCheckNotificationHubAvailabilitySample.js (67%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/notificationHubsCreateOrUpdateAuthorizationRuleSample.js (64%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/notificationHubsCreateOrUpdateSample.js (65%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/notificationHubsDebugSendSample.js (60%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/notificationHubsDeleteAuthorizationRuleSample.js (67%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/notificationHubsDeleteSample.js (68%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/notificationHubsGetAuthorizationRuleSample.js (68%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/notificationHubsGetPnsCredentialsSample.js (64%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/notificationHubsGetSample.js (60%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/notificationHubsListAuthorizationRulesSample.js (67%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/notificationHubsListKeysSample.js (69%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/notificationHubsListSample.js (69%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/notificationHubsRegenerateKeysSample.js (70%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2/javascript/notificationHubsPatchSample.js => v3-beta/javascript/notificationHubsUpdateSample.js} (56%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/operationsListSample.js (64%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/package.json (80%) create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsDeleteSample.js create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsGetGroupIdSample.js create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsGetSample.js create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsListGroupIdsSample.js create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsListSample.js create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsUpdateSample.js rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/javascript/sample.env (100%) create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/README.md rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/package.json (83%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/sample.env (100%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/src/namespacesCheckAvailabilitySample.ts (70%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/src/namespacesCreateOrUpdateAuthorizationRuleSample.ts (57%) create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesCreateOrUpdateSample.ts rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/src/namespacesDeleteAuthorizationRuleSample.ts (63%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/src/namespacesDeleteSample.ts (64%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/src/namespacesGetAuthorizationRuleSample.ts (64%) create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesGetPnsCredentialsSample.ts rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/src/namespacesGetSample.ts (57%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/src/namespacesListAllSample.ts (66%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/src/namespacesListAuthorizationRulesSample.ts (64%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/src/namespacesListKeysSample.ts (62%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/src/namespacesListSample.ts (59%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/src/namespacesRegenerateKeysSample.ts (61%) create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesUpdateSample.ts rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/src/notificationHubsCheckNotificationHubAvailabilitySample.ts (62%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/src/notificationHubsCreateOrUpdateAuthorizationRuleSample.ts (56%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/src/notificationHubsCreateOrUpdateSample.ts (59%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/src/notificationHubsDebugSendSample.ts (53%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/src/notificationHubsDeleteAuthorizationRuleSample.ts (65%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/src/notificationHubsDeleteSample.ts (65%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/src/notificationHubsGetAuthorizationRuleSample.ts (65%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/src/notificationHubsGetPnsCredentialsSample.ts (61%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/src/notificationHubsGetSample.ts (57%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/src/notificationHubsListAuthorizationRulesSample.ts (65%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/src/notificationHubsListKeysSample.ts (66%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/src/notificationHubsListSample.ts (65%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/src/notificationHubsRegenerateKeysSample.ts (62%) rename sdk/notificationhubs/arm-notificationhubs/{samples-dev/notificationHubsPatchSample.ts => samples/v3-beta/typescript/src/notificationHubsUpdateSample.ts} (52%) rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/src/operationsListSample.ts (61%) create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsGetGroupIdSample.ts create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsGetSample.ts create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsListGroupIdsSample.ts create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsListSample.ts create mode 100644 sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsUpdateSample.ts rename sdk/notificationhubs/arm-notificationhubs/samples/{v2 => v3-beta}/typescript/tsconfig.json (92%) create mode 100644 sdk/notificationhubs/arm-notificationhubs/src/operations/privateEndpointConnections.ts create mode 100644 sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/privateEndpointConnections.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index c1abeafa46e3..0d67a4324cfb 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -15300,7 +15300,7 @@ packages: dev: false file:projects/arm-notificationhubs.tgz: - resolution: {integrity: sha512-jKI293g20PoBmUCOGlCyMaqSELaMO10wwcclQyqOwdJJrophygB6lLXXFW8APhhlo8DhtAOv1/jIf9OWzodipQ==, tarball: file:projects/arm-notificationhubs.tgz} + resolution: {integrity: sha512-L/TPUrFMgUGOKK8Rp5cNS8eBrczORDjtNhi+RN5PcZyh7Xyja4HvVKsBmlwgnrAu65OMXYk5ki5cyHFjQ5DHGw==, tarball: file:projects/arm-notificationhubs.tgz} name: '@rush-temp/arm-notificationhubs' version: 0.0.0 dependencies: @@ -15312,7 +15312,9 @@ packages: '@types/node': 18.19.24 chai: 4.3.10 cross-env: 7.0.3 - mkdirp: 1.0.4 + dotenv: 16.4.5 + esm: 3.2.25 + mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) diff --git a/sdk/notificationhubs/arm-notificationhubs/CHANGELOG.md b/sdk/notificationhubs/arm-notificationhubs/CHANGELOG.md index c5c415e4a3bd..d16fc0c9fa54 100644 --- a/sdk/notificationhubs/arm-notificationhubs/CHANGELOG.md +++ b/sdk/notificationhubs/arm-notificationhubs/CHANGELOG.md @@ -1,15 +1,176 @@ # Release History + +## 3.0.0-beta.1 (2024-03-18) + +**Features** -## 2.1.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added operation group PrivateEndpointConnections + - Added operation Namespaces.beginCreateOrUpdate + - Added operation Namespaces.beginCreateOrUpdateAndWait + - Added operation Namespaces.delete + - Added operation Namespaces.getPnsCredentials + - Added operation Namespaces.update + - Added operation NotificationHubs.update + - Added Interface Availability + - Added Interface BrowserCredential + - Added Interface ConnectionDetails + - Added Interface ErrorAdditionalInfo + - Added Interface ErrorDetail + - Added Interface FcmV1Credential + - Added Interface GroupConnectivityInformation + - Added Interface IpRule + - Added Interface LogSpecification + - Added Interface MetricSpecification + - Added Interface NamespaceProperties + - Added Interface NamespacesGetPnsCredentialsOptionalParams + - Added Interface NamespacesUpdateOptionalParams + - Added Interface NetworkAcls + - Added Interface NotificationHubsUpdateOptionalParams + - Added Interface OperationProperties + - Added Interface PnsCredentials + - Added Interface PolicyKeyResource + - Added Interface PrivateEndpointConnectionProperties + - Added Interface PrivateEndpointConnectionResource + - Added Interface PrivateEndpointConnectionResourceListResult + - Added Interface PrivateEndpointConnectionsDeleteHeaders + - Added Interface PrivateEndpointConnectionsDeleteOptionalParams + - Added Interface PrivateEndpointConnectionsGetGroupIdOptionalParams + - Added Interface PrivateEndpointConnectionsGetOptionalParams + - Added Interface PrivateEndpointConnectionsListGroupIdsOptionalParams + - Added Interface PrivateEndpointConnectionsListOptionalParams + - Added Interface PrivateEndpointConnectionsUpdateOptionalParams + - Added Interface PrivateLinkResource + - Added Interface PrivateLinkResourceListResult + - Added Interface PrivateLinkResourceProperties + - Added Interface PrivateLinkServiceConnection + - Added Interface ProxyResource + - Added Interface PublicInternetAuthorizationRule + - Added Interface RegistrationResult + - Added Interface RemotePrivateEndpointConnection + - Added Interface RemotePrivateLinkServiceConnectionState + - Added Interface ServiceSpecification + - Added Interface SystemData + - Added Interface TrackedResource + - Added Interface XiaomiCredential + - Added Type Alias CreatedByType + - Added Type Alias NamespacesGetPnsCredentialsResponse + - Added Type Alias NamespaceStatus + - Added Type Alias NamespacesUpdateResponse + - Added Type Alias NotificationHubsUpdateResponse + - Added Type Alias OperationProvisioningState + - Added Type Alias PolicyKeyType + - Added Type Alias PrivateEndpointConnectionProvisioningState + - Added Type Alias PrivateEndpointConnectionsDeleteResponse + - Added Type Alias PrivateEndpointConnectionsGetGroupIdResponse + - Added Type Alias PrivateEndpointConnectionsGetResponse + - Added Type Alias PrivateEndpointConnectionsListGroupIdsResponse + - Added Type Alias PrivateEndpointConnectionsListResponse + - Added Type Alias PrivateEndpointConnectionsUpdateResponse + - Added Type Alias PrivateLinkConnectionStatus + - Added Type Alias PublicNetworkAccess + - Added Type Alias ReplicationRegion + - Added Type Alias ZoneRedundancyPreference + - Interface CheckAvailabilityResult has a new optional parameter location + - Interface CheckAvailabilityResult has a new optional parameter sku + - Interface CheckAvailabilityResult has a new optional parameter tags + - Interface DebugSendResponse has a new optional parameter location + - Interface DebugSendResponse has a new optional parameter tags + - Interface ErrorResponse has a new optional parameter error + - Interface NamespacePatchParameters has a new optional parameter properties + - Interface NamespaceResource has a new optional parameter networkAcls + - Interface NamespaceResource has a new optional parameter pnsCredentials + - Interface NamespaceResource has a new optional parameter privateEndpointConnections + - Interface NamespaceResource has a new optional parameter publicNetworkAccess + - Interface NamespaceResource has a new optional parameter replicationRegion + - Interface NamespaceResource has a new optional parameter zoneRedundancy + - Interface NamespacesCreateOrUpdateOptionalParams has a new optional parameter resumeFrom + - Interface NamespacesCreateOrUpdateOptionalParams has a new optional parameter updateIntervalInMs + - Interface NamespacesListAllOptionalParams has a new optional parameter skipToken + - Interface NamespacesListAllOptionalParams has a new optional parameter top + - Interface NamespacesListOptionalParams has a new optional parameter skipToken + - Interface NamespacesListOptionalParams has a new optional parameter top + - Interface NotificationHubPatchParameters has a new optional parameter browserCredential + - Interface NotificationHubPatchParameters has a new optional parameter dailyMaxActiveDevices + - Interface NotificationHubPatchParameters has a new optional parameter fcmV1Credential + - Interface NotificationHubPatchParameters has a new optional parameter name + - Interface NotificationHubPatchParameters has a new optional parameter sku + - Interface NotificationHubPatchParameters has a new optional parameter tags + - Interface NotificationHubPatchParameters has a new optional parameter xiaomiCredential + - Interface NotificationHubResource has a new optional parameter browserCredential + - Interface NotificationHubResource has a new optional parameter dailyMaxActiveDevices + - Interface NotificationHubResource has a new optional parameter fcmV1Credential + - Interface NotificationHubResource has a new optional parameter sku + - Interface NotificationHubResource has a new optional parameter xiaomiCredential + - Interface NotificationHubsListOptionalParams has a new optional parameter skipToken + - Interface NotificationHubsListOptionalParams has a new optional parameter top + - Interface Operation has a new optional parameter isDataAction + - Interface Operation has a new optional parameter properties + - Interface OperationDisplay has a new optional parameter description + - Interface PnsCredentialsResource has a new optional parameter browserCredential + - Interface PnsCredentialsResource has a new optional parameter fcmV1Credential + - Interface PnsCredentialsResource has a new optional parameter location + - Interface PnsCredentialsResource has a new optional parameter tags + - Interface PnsCredentialsResource has a new optional parameter xiaomiCredential + - Interface Resource has a new optional parameter systemData + - Interface SharedAccessAuthorizationRuleResource has a new optional parameter location + - Interface SharedAccessAuthorizationRuleResource has a new optional parameter tags + - Interface WnsCredential has a new optional parameter certificateKey + - Interface WnsCredential has a new optional parameter wnsCertificate + - Added Enum KnownAccessRights + - Added Enum KnownCreatedByType + - Added Enum KnownNamespaceStatus + - Added Enum KnownNamespaceType + - Added Enum KnownOperationProvisioningState + - Added Enum KnownPolicyKeyType + - Added Enum KnownPrivateEndpointConnectionProvisioningState + - Added Enum KnownPrivateLinkConnectionStatus + - Added Enum KnownPublicNetworkAccess + - Added Enum KnownReplicationRegion + - Added Enum KnownZoneRedundancyPreference -### Other Changes +**Breaking Changes** + - Removed operation Namespaces.beginDelete + - Removed operation Namespaces.beginDeleteAndWait + - Removed operation Namespaces.createOrUpdate + - Removed operation Namespaces.patch + - Removed operation NotificationHubs.patch + - Operation Namespaces.createOrUpdateAuthorizationRule has a new signature + - Operation Namespaces.regenerateKeys has a new signature + - Operation NotificationHubs.createOrUpdate has a new signature + - Operation NotificationHubs.createOrUpdateAuthorizationRule has a new signature + - Operation NotificationHubs.regenerateKeys has a new signature + - Interface ErrorResponse no longer has parameter code + - Interface ErrorResponse no longer has parameter message + - Interface NamespacesDeleteOptionalParams no longer has parameter resumeFrom + - Interface NamespacesDeleteOptionalParams no longer has parameter updateIntervalInMs + - Interface NotificationHubPatchParameters no longer has parameter namePropertiesName + - Interface NotificationHubsDebugSendOptionalParams no longer has parameter parameters + - Interface Resource no longer has parameter location + - Interface Resource no longer has parameter sku + - Interface Resource no longer has parameter tags + - Interface NamespaceResource has a new required parameter sku + - Parameter authTokenUrl of interface AdmCredential is now required + - Parameter clientId of interface AdmCredential is now required + - Parameter clientSecret of interface AdmCredential is now required + - Parameter endpoint of interface ApnsCredential is now required + - Parameter baiduApiKey of interface BaiduCredential is now required + - Parameter baiduEndPoint of interface BaiduCredential is now required + - Parameter baiduSecretKey of interface BaiduCredential is now required + - Parameter googleApiKey of interface GcmCredential is now required + - Parameter certificateKey of interface MpnsCredential is now required + - Parameter mpnsCertificate of interface MpnsCredential is now required + - Parameter thumbprint of interface MpnsCredential is now required + - Parameter rights of interface SharedAccessAuthorizationRuleProperties is now required + - Type of parameter results of interface DebugSendResponse is changed from Record to RegistrationResult[] + - Type of parameter provisioningState of interface NamespaceResource is changed from string to OperationProvisioningState + - Type of parameter status of interface NamespaceResource is changed from string to NamespaceStatus + - Type of parameter createdTime of interface SharedAccessAuthorizationRuleProperties is changed from string to Date + - Type of parameter modifiedTime of interface SharedAccessAuthorizationRuleProperties is changed from string to Date + - Type of parameter createdTime of interface SharedAccessAuthorizationRuleResource is changed from string to Date + - Type of parameter modifiedTime of interface SharedAccessAuthorizationRuleResource is changed from string to Date + + ## 2.1.0 (2022-12-01) **Features** @@ -38,4 +199,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). diff --git a/sdk/notificationhubs/arm-notificationhubs/LICENSE b/sdk/notificationhubs/arm-notificationhubs/LICENSE index 5d1d36e0af80..7d5934740965 100644 --- a/sdk/notificationhubs/arm-notificationhubs/LICENSE +++ b/sdk/notificationhubs/arm-notificationhubs/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2022 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/notificationhubs/arm-notificationhubs/README.md b/sdk/notificationhubs/arm-notificationhubs/README.md index 3578d9091d02..d334054c0ed6 100644 --- a/sdk/notificationhubs/arm-notificationhubs/README.md +++ b/sdk/notificationhubs/arm-notificationhubs/README.md @@ -2,11 +2,11 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure NotificationHubsManagement client. -Azure NotificationHub client +Microsoft Notification Hubs Resource Provider REST API. [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/notificationhubs/arm-notificationhubs) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-notificationhubs) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-notificationhubs) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-notificationhubs?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/notificationhubs/arm-notificationhubs/_meta.json b/sdk/notificationhubs/arm-notificationhubs/_meta.json index a3bef7cd8353..12ca810858ba 100644 --- a/sdk/notificationhubs/arm-notificationhubs/_meta.json +++ b/sdk/notificationhubs/arm-notificationhubs/_meta.json @@ -1,8 +1,8 @@ { - "commit": "f9a6cb686bcc0f1b23761db19f2491c5c4df95cb", - "readme": "specification\\notificationhubs\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.8.4 --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\\notificationhubs\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --generate-sample=true", + "commit": "0cca8953ec713d8cc0e940c37e865d36b43d18f8", + "readme": "specification/notificationhubs/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\\notificationhubs\\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.4.2", - "use": "@autorest/typescript@6.0.0-rc.3.20221108.1" + "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/notificationhubs/arm-notificationhubs/assets.json b/sdk/notificationhubs/arm-notificationhubs/assets.json index 81b358752288..8d3f82afdb6e 100644 --- a/sdk/notificationhubs/arm-notificationhubs/assets.json +++ b/sdk/notificationhubs/arm-notificationhubs/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/notificationhubs/arm-notificationhubs", - "Tag": "js/notificationhubs/arm-notificationhubs_383fa36b59" + "Tag": "js/notificationhubs/arm-notificationhubs_7b1692ef9d" } diff --git a/sdk/notificationhubs/arm-notificationhubs/package.json b/sdk/notificationhubs/arm-notificationhubs/package.json index 3c973b40edae..cc5c4838879c 100644 --- a/sdk/notificationhubs/arm-notificationhubs/package.json +++ b/sdk/notificationhubs/arm-notificationhubs/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for NotificationHubsManagementClient.", - "version": "2.1.1", + "version": "3.0.0-beta.1", "engines": { "node": ">=18.0.0" }, "dependencies": { - "@azure/core-lro": "^2.2.0", + "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.6.1", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-client": "^1.7.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -29,23 +29,24 @@ "types": "./types/arm-notificationhubs.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.31.1", - "mkdirp": "^1.0.4", + "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" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/notificationhubs/arm-notificationhubs", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.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", @@ -106,6 +106,7 @@ ] }, "autoPublish": true, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/notificationhubs/arm-notificationhubs", "//sampleConfiguration": { "productName": "", "productSlugs": [ @@ -114,4 +115,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-notificationhubs?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/notificationhubs/arm-notificationhubs/review/arm-notificationhubs.api.md b/sdk/notificationhubs/arm-notificationhubs/review/arm-notificationhubs.api.md index 2bcfa8f5d5b2..9b19610a1e3c 100644 --- a/sdk/notificationhubs/arm-notificationhubs/review/arm-notificationhubs.api.md +++ b/sdk/notificationhubs/arm-notificationhubs/review/arm-notificationhubs.api.md @@ -6,18 +6,18 @@ import * as coreAuth from '@azure/core-auth'; import * as coreClient from '@azure/core-client'; +import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; -import { PollerLike } from '@azure/core-lro'; -import { PollOperationState } from '@azure/core-lro'; +import { SimplePollerLike } from '@azure/core-lro'; // @public -export type AccessRights = "Manage" | "Send" | "Listen"; +export type AccessRights = string; // @public export interface AdmCredential { - authTokenUrl?: string; - clientId?: string; - clientSecret?: string; + authTokenUrl: string; + clientId: string; + clientSecret: string; } // @public @@ -26,17 +26,30 @@ export interface ApnsCredential { appId?: string; appName?: string; certificateKey?: string; - endpoint?: string; + endpoint: string; keyId?: string; thumbprint?: string; token?: string; } +// @public +export interface Availability { + readonly blobDuration?: string; + readonly timeGrain?: string; +} + // @public export interface BaiduCredential { - baiduApiKey?: string; - baiduEndPoint?: string; - baiduSecretKey?: string; + baiduApiKey: string; + baiduEndPoint: string; + baiduSecretKey: string; +} + +// @public +export interface BrowserCredential { + subject: string; + vapidPrivateKey: string; + vapidPublicKey: string; } // @public @@ -53,32 +66,174 @@ export interface CheckAvailabilityParameters { } // @public -export interface CheckAvailabilityResult extends Resource { +export interface CheckAvailabilityResult extends ProxyResource { isAvailiable?: boolean; + location?: string; + sku?: Sku; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export interface ConnectionDetails { + readonly groupId?: string; + readonly id?: string; + readonly linkIdentifier?: string; + readonly memberName?: string; + readonly privateIpAddress?: string; +} + +// @public +export type CreatedByType = string; + +// @public +export interface DebugSendResponse extends ProxyResource { + readonly failure?: number; + location?: string; + readonly results?: RegistrationResult[]; + readonly success?: number; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; } // @public -export interface DebugSendResponse extends Resource { - failure?: number; - results?: Record; - success?: number; +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; } // @public export interface ErrorResponse { - code?: string; - message?: string; + error?: ErrorDetail; +} + +// @public +export interface FcmV1Credential { + clientEmail: string; + privateKey: string; + projectId: string; } // @public export interface GcmCredential { gcmEndpoint?: string; - googleApiKey?: string; + googleApiKey: string; } // @public export function getContinuationToken(page: unknown): string | undefined; +// @public +export interface GroupConnectivityInformation { + readonly customerVisibleFqdns?: string[]; + readonly groupId?: string; + readonly internalFqdn?: string; + readonly memberName?: string; + readonly privateLinkServiceArmRegion?: string; + readonly redirectMapId?: string; +} + +// @public +export interface IpRule { + ipMask: string; + rights: AccessRights[]; +} + +// @public +export enum KnownAccessRights { + Listen = "Listen", + Manage = "Manage", + Send = "Send" +} + +// @public +export enum KnownCreatedByType { + Application = "Application", + Key = "Key", + ManagedIdentity = "ManagedIdentity", + User = "User" +} + +// @public +export enum KnownNamespaceStatus { + Created = "Created", + Creating = "Creating", + Deleting = "Deleting", + Suspended = "Suspended" +} + +// @public +export enum KnownNamespaceType { + Messaging = "Messaging", + NotificationHub = "NotificationHub" +} + +// @public +export enum KnownOperationProvisioningState { + Canceled = "Canceled", + Disabled = "Disabled", + Failed = "Failed", + InProgress = "InProgress", + Pending = "Pending", + Succeeded = "Succeeded", + Unknown = "Unknown" +} + +// @public +export enum KnownPolicyKeyType { + PrimaryKey = "PrimaryKey", + SecondaryKey = "SecondaryKey" +} + +// @public +export enum KnownPrivateEndpointConnectionProvisioningState { + Creating = "Creating", + Deleted = "Deleted", + Deleting = "Deleting", + DeletingByProxy = "DeletingByProxy", + Succeeded = "Succeeded", + Unknown = "Unknown", + Updating = "Updating", + UpdatingByProxy = "UpdatingByProxy" +} + +// @public +export enum KnownPrivateLinkConnectionStatus { + Approved = "Approved", + Disconnected = "Disconnected", + Pending = "Pending", + Rejected = "Rejected" +} + +// @public +export enum KnownPublicNetworkAccess { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownReplicationRegion { + AustraliaEast = "AustraliaEast", + BrazilSouth = "BrazilSouth", + Default = "Default", + None = "None", + NorthEurope = "NorthEurope", + SouthAfricaNorth = "SouthAfricaNorth", + SouthEastAsia = "SouthEastAsia", + WestUs2 = "WestUs2" +} + // @public export enum KnownSkuName { Basic = "Basic", @@ -87,38 +242,48 @@ export enum KnownSkuName { } // @public -export interface MpnsCredential { - certificateKey?: string; - mpnsCertificate?: string; - thumbprint?: string; +export enum KnownZoneRedundancyPreference { + Disabled = "Disabled", + Enabled = "Enabled" } // @public -export interface NamespaceCreateOrUpdateParameters extends Resource { - createdAt?: Date; - critical?: boolean; - dataCenter?: string; - enabled?: boolean; - readonly metricId?: string; - namePropertiesName?: string; - namespaceType?: NamespaceType; - provisioningState?: string; - region?: string; - scaleUnit?: string; - serviceBusEndpoint?: string; - status?: string; - subscriptionId?: string; - updatedAt?: Date; +export interface LogSpecification { + readonly blobDuration?: string; + categoryGroups?: string[]; + readonly displayName?: string; + readonly name?: string; +} + +// @public +export interface MetricSpecification { + readonly aggregationType?: string; + readonly availabilities?: Availability[]; + readonly displayDescription?: string; + readonly displayName?: string; + readonly fillGapWithZero?: boolean; + readonly metricFilterPattern?: string; + readonly name?: string; + readonly supportedTimeGrainTypes?: string[]; + readonly unit?: string; +} + +// @public +export interface MpnsCredential { + certificateKey: string; + mpnsCertificate: string; + thumbprint: string; } // @public export interface NamespaceListResult { - nextLink?: string; - value?: NamespaceResource[]; + readonly nextLink?: string; + readonly value?: NamespaceResource[]; } // @public export interface NamespacePatchParameters { + properties?: NamespaceProperties; sku?: Sku; tags?: { [propertyName: string]: string; @@ -126,39 +291,71 @@ export interface NamespacePatchParameters { } // @public -export interface NamespaceResource extends Resource { - createdAt?: Date; - critical?: boolean; +export interface NamespaceProperties { + readonly createdAt?: Date; + readonly critical?: boolean; dataCenter?: string; - enabled?: boolean; + readonly enabled?: boolean; readonly metricId?: string; - namePropertiesName?: string; + readonly name?: string; namespaceType?: NamespaceType; - provisioningState?: string; - region?: string; + networkAcls?: NetworkAcls; + pnsCredentials?: PnsCredentials; + readonly privateEndpointConnections?: PrivateEndpointConnectionResource[]; + provisioningState?: OperationProvisioningState; + publicNetworkAccess?: PublicNetworkAccess; + readonly region?: string; + replicationRegion?: ReplicationRegion; scaleUnit?: string; - serviceBusEndpoint?: string; - status?: string; - subscriptionId?: string; - updatedAt?: Date; + readonly serviceBusEndpoint?: string; + status?: NamespaceStatus; + readonly subscriptionId?: string; + readonly updatedAt?: Date; + zoneRedundancy?: ZoneRedundancyPreference; +} + +// @public +export interface NamespaceResource extends TrackedResource { + readonly createdAt?: Date; + readonly critical?: boolean; + dataCenter?: string; + readonly enabled?: boolean; + readonly metricId?: string; + readonly namePropertiesName?: string; + namespaceType?: NamespaceType; + networkAcls?: NetworkAcls; + pnsCredentials?: PnsCredentials; + readonly privateEndpointConnections?: PrivateEndpointConnectionResource[]; + provisioningState?: OperationProvisioningState; + publicNetworkAccess?: PublicNetworkAccess; + readonly region?: string; + replicationRegion?: ReplicationRegion; + scaleUnit?: string; + readonly serviceBusEndpoint?: string; + sku: Sku; + status?: NamespaceStatus; + readonly subscriptionId?: string; + readonly updatedAt?: Date; + zoneRedundancy?: ZoneRedundancyPreference; } // @public export interface Namespaces { - beginDelete(resourceGroupName: string, namespaceName: string, options?: NamespacesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, namespaceName: string, options?: NamespacesDeleteOptionalParams): Promise; + beginCreateOrUpdate(resourceGroupName: string, namespaceName: string, parameters: NamespaceResource, options?: NamespacesCreateOrUpdateOptionalParams): Promise, NamespacesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, namespaceName: string, parameters: NamespaceResource, options?: NamespacesCreateOrUpdateOptionalParams): Promise; checkAvailability(parameters: CheckAvailabilityParameters, options?: NamespacesCheckAvailabilityOptionalParams): Promise; - createOrUpdate(resourceGroupName: string, namespaceName: string, parameters: NamespaceCreateOrUpdateParameters, options?: NamespacesCreateOrUpdateOptionalParams): Promise; - createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: SharedAccessAuthorizationRuleCreateOrUpdateParameters, options?: NamespacesCreateOrUpdateAuthorizationRuleOptionalParams): Promise; + createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: SharedAccessAuthorizationRuleResource, options?: NamespacesCreateOrUpdateAuthorizationRuleOptionalParams): Promise; + delete(resourceGroupName: string, namespaceName: string, options?: NamespacesDeleteOptionalParams): Promise; deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: NamespacesDeleteAuthorizationRuleOptionalParams): Promise; get(resourceGroupName: string, namespaceName: string, options?: NamespacesGetOptionalParams): Promise; getAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: NamespacesGetAuthorizationRuleOptionalParams): Promise; + getPnsCredentials(resourceGroupName: string, namespaceName: string, options?: NamespacesGetPnsCredentialsOptionalParams): Promise; list(resourceGroupName: string, options?: NamespacesListOptionalParams): PagedAsyncIterableIterator; listAll(options?: NamespacesListAllOptionalParams): PagedAsyncIterableIterator; listAuthorizationRules(resourceGroupName: string, namespaceName: string, options?: NamespacesListAuthorizationRulesOptionalParams): PagedAsyncIterableIterator; listKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: NamespacesListKeysOptionalParams): Promise; - patch(resourceGroupName: string, namespaceName: string, parameters: NamespacePatchParameters, options?: NamespacesPatchOptionalParams): Promise; - regenerateKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: PolicykeyResource, options?: NamespacesRegenerateKeysOptionalParams): Promise; + regenerateKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: PolicyKeyResource, options?: NamespacesRegenerateKeysOptionalParams): Promise; + update(resourceGroupName: string, namespaceName: string, parameters: NamespacePatchParameters, options?: NamespacesUpdateOptionalParams): Promise; } // @public @@ -177,6 +374,8 @@ export type NamespacesCreateOrUpdateAuthorizationRuleResponse = SharedAccessAuth // @public export interface NamespacesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public @@ -188,8 +387,6 @@ export interface NamespacesDeleteAuthorizationRuleOptionalParams extends coreCli // @public export interface NamespacesDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; } // @public @@ -203,6 +400,13 @@ export type NamespacesGetAuthorizationRuleResponse = SharedAccessAuthorizationRu export interface NamespacesGetOptionalParams extends coreClient.OperationOptions { } +// @public +export interface NamespacesGetPnsCredentialsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NamespacesGetPnsCredentialsResponse = PnsCredentialsResource; + // @public export type NamespacesGetResponse = NamespaceResource; @@ -215,6 +419,8 @@ export type NamespacesListAllNextResponse = NamespaceListResult; // @public export interface NamespacesListAllOptionalParams extends coreClient.OperationOptions { + skipToken?: string; + top?: number; } // @public @@ -250,78 +456,89 @@ export type NamespacesListNextResponse = NamespaceListResult; // @public export interface NamespacesListOptionalParams extends coreClient.OperationOptions { + skipToken?: string; + top?: number; } // @public export type NamespacesListResponse = NamespaceListResult; // @public -export interface NamespacesPatchOptionalParams extends coreClient.OperationOptions { +export interface NamespacesRegenerateKeysOptionalParams extends coreClient.OperationOptions { } // @public -export type NamespacesPatchResponse = NamespaceResource; +export type NamespacesRegenerateKeysResponse = ResourceListKeys; // @public -export interface NamespacesRegenerateKeysOptionalParams extends coreClient.OperationOptions { +export type NamespaceStatus = string; + +// @public +export interface NamespacesUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export type NamespacesRegenerateKeysResponse = ResourceListKeys; +export type NamespacesUpdateResponse = NamespaceResource; // @public -export type NamespaceType = "Messaging" | "NotificationHub"; +export type NamespaceType = string; // @public -export interface NotificationHubCreateOrUpdateParameters extends Resource { - admCredential?: AdmCredential; - apnsCredential?: ApnsCredential; - authorizationRules?: SharedAccessAuthorizationRuleProperties[]; - baiduCredential?: BaiduCredential; - gcmCredential?: GcmCredential; - mpnsCredential?: MpnsCredential; - namePropertiesName?: string; - registrationTtl?: string; - wnsCredential?: WnsCredential; +export interface NetworkAcls { + ipRules?: IpRule[]; + publicNetworkRule?: PublicInternetAuthorizationRule; } // @public export interface NotificationHubListResult { - nextLink?: string; - value?: NotificationHubResource[]; + readonly nextLink?: string; + readonly value?: NotificationHubResource[]; } // @public -export interface NotificationHubPatchParameters extends Resource { +export interface NotificationHubPatchParameters { admCredential?: AdmCredential; apnsCredential?: ApnsCredential; - authorizationRules?: SharedAccessAuthorizationRuleProperties[]; + readonly authorizationRules?: SharedAccessAuthorizationRuleProperties[]; baiduCredential?: BaiduCredential; + browserCredential?: BrowserCredential; + readonly dailyMaxActiveDevices?: number; + fcmV1Credential?: FcmV1Credential; gcmCredential?: GcmCredential; mpnsCredential?: MpnsCredential; - namePropertiesName?: string; + name?: string; registrationTtl?: string; + sku?: Sku; + tags?: { + [propertyName: string]: string; + }; wnsCredential?: WnsCredential; + xiaomiCredential?: XiaomiCredential; } // @public -export interface NotificationHubResource extends Resource { +export interface NotificationHubResource extends TrackedResource { admCredential?: AdmCredential; apnsCredential?: ApnsCredential; - authorizationRules?: SharedAccessAuthorizationRuleProperties[]; + readonly authorizationRules?: SharedAccessAuthorizationRuleProperties[]; baiduCredential?: BaiduCredential; + browserCredential?: BrowserCredential; + readonly dailyMaxActiveDevices?: number; + fcmV1Credential?: FcmV1Credential; gcmCredential?: GcmCredential; mpnsCredential?: MpnsCredential; namePropertiesName?: string; registrationTtl?: string; + sku?: Sku; wnsCredential?: WnsCredential; + xiaomiCredential?: XiaomiCredential; } // @public export interface NotificationHubs { checkNotificationHubAvailability(resourceGroupName: string, namespaceName: string, parameters: CheckAvailabilityParameters, options?: NotificationHubsCheckNotificationHubAvailabilityOptionalParams): Promise; - createOrUpdate(resourceGroupName: string, namespaceName: string, notificationHubName: string, parameters: NotificationHubCreateOrUpdateParameters, options?: NotificationHubsCreateOrUpdateOptionalParams): Promise; - createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, notificationHubName: string, authorizationRuleName: string, parameters: SharedAccessAuthorizationRuleCreateOrUpdateParameters, options?: NotificationHubsCreateOrUpdateAuthorizationRuleOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, namespaceName: string, notificationHubName: string, parameters: NotificationHubResource, options?: NotificationHubsCreateOrUpdateOptionalParams): Promise; + createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, notificationHubName: string, authorizationRuleName: string, parameters: SharedAccessAuthorizationRuleResource, options?: NotificationHubsCreateOrUpdateAuthorizationRuleOptionalParams): Promise; debugSend(resourceGroupName: string, namespaceName: string, notificationHubName: string, options?: NotificationHubsDebugSendOptionalParams): Promise; delete(resourceGroupName: string, namespaceName: string, notificationHubName: string, options?: NotificationHubsDeleteOptionalParams): Promise; deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, notificationHubName: string, authorizationRuleName: string, options?: NotificationHubsDeleteAuthorizationRuleOptionalParams): Promise; @@ -331,8 +548,8 @@ export interface NotificationHubs { list(resourceGroupName: string, namespaceName: string, options?: NotificationHubsListOptionalParams): PagedAsyncIterableIterator; listAuthorizationRules(resourceGroupName: string, namespaceName: string, notificationHubName: string, options?: NotificationHubsListAuthorizationRulesOptionalParams): PagedAsyncIterableIterator; listKeys(resourceGroupName: string, namespaceName: string, notificationHubName: string, authorizationRuleName: string, options?: NotificationHubsListKeysOptionalParams): Promise; - patch(resourceGroupName: string, namespaceName: string, notificationHubName: string, options?: NotificationHubsPatchOptionalParams): Promise; - regenerateKeys(resourceGroupName: string, namespaceName: string, notificationHubName: string, authorizationRuleName: string, parameters: PolicykeyResource, options?: NotificationHubsRegenerateKeysOptionalParams): Promise; + regenerateKeys(resourceGroupName: string, namespaceName: string, notificationHubName: string, authorizationRuleName: string, parameters: PolicyKeyResource, options?: NotificationHubsRegenerateKeysOptionalParams): Promise; + update(resourceGroupName: string, namespaceName: string, notificationHubName: string, parameters: NotificationHubPatchParameters, options?: NotificationHubsUpdateOptionalParams): Promise; } // @public @@ -358,7 +575,6 @@ export type NotificationHubsCreateOrUpdateResponse = NotificationHubResource; // @public export interface NotificationHubsDebugSendOptionalParams extends coreClient.OperationOptions { - parameters?: Record; } // @public @@ -423,6 +639,8 @@ export type NotificationHubsListNextResponse = NotificationHubListResult; // @public export interface NotificationHubsListOptionalParams extends coreClient.OperationOptions { + skipToken?: string; + top?: number; } // @public @@ -442,6 +660,8 @@ export class NotificationHubsManagementClient extends coreClient.ServiceClient { // (undocumented) operations: Operations; // (undocumented) + privateEndpointConnections: PrivateEndpointConnections; + // (undocumented) subscriptionId: string; } @@ -453,28 +673,30 @@ export interface NotificationHubsManagementClientOptionalParams extends coreClie } // @public -export interface NotificationHubsPatchOptionalParams extends coreClient.OperationOptions { - parameters?: NotificationHubPatchParameters; +export interface NotificationHubsRegenerateKeysOptionalParams extends coreClient.OperationOptions { } // @public -export type NotificationHubsPatchResponse = NotificationHubResource; +export type NotificationHubsRegenerateKeysResponse = ResourceListKeys; // @public -export interface NotificationHubsRegenerateKeysOptionalParams extends coreClient.OperationOptions { +export interface NotificationHubsUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export type NotificationHubsRegenerateKeysResponse = ResourceListKeys; +export type NotificationHubsUpdateResponse = NotificationHubResource; // @public export interface Operation { display?: OperationDisplay; + readonly isDataAction?: boolean; readonly name?: string; + properties?: OperationProperties; } // @public export interface OperationDisplay { + readonly description?: string; readonly operation?: string; readonly provider?: string; readonly resource?: string; @@ -486,6 +708,14 @@ export interface OperationListResult { readonly value?: Operation[]; } +// @public +export interface OperationProperties { + serviceSpecification?: ServiceSpecification; +} + +// @public +export type OperationProvisioningState = string; + // @public export interface Operations { list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; @@ -506,76 +736,249 @@ export interface OperationsListOptionalParams extends coreClient.OperationOption export type OperationsListResponse = OperationListResult; // @public -export interface PnsCredentialsResource extends Resource { +export interface PnsCredentials { admCredential?: AdmCredential; apnsCredential?: ApnsCredential; baiduCredential?: BaiduCredential; + browserCredential?: BrowserCredential; + fcmV1Credential?: FcmV1Credential; gcmCredential?: GcmCredential; mpnsCredential?: MpnsCredential; wnsCredential?: WnsCredential; + xiaomiCredential?: XiaomiCredential; } // @public -export interface PolicykeyResource { - policyKey?: string; +export interface PnsCredentialsResource extends ProxyResource { + admCredential?: AdmCredential; + apnsCredential?: ApnsCredential; + baiduCredential?: BaiduCredential; + browserCredential?: BrowserCredential; + fcmV1Credential?: FcmV1Credential; + gcmCredential?: GcmCredential; + location?: string; + mpnsCredential?: MpnsCredential; + tags?: { + [propertyName: string]: string; + }; + wnsCredential?: WnsCredential; + xiaomiCredential?: XiaomiCredential; } -// @public (undocumented) +// @public +export interface PolicyKeyResource { + policyKey: PolicyKeyType; +} + +// @public +export type PolicyKeyType = string; + +// @public +export interface PrivateEndpointConnectionProperties { + readonly groupIds?: string[]; + privateEndpoint?: RemotePrivateEndpointConnection; + privateLinkServiceConnectionState?: RemotePrivateLinkServiceConnectionState; + provisioningState?: PrivateEndpointConnectionProvisioningState; +} + +// @public +export type PrivateEndpointConnectionProvisioningState = string; + +// @public +export interface PrivateEndpointConnectionResource extends ProxyResource { + properties?: PrivateEndpointConnectionProperties; +} + +// @public +export interface PrivateEndpointConnectionResourceListResult { + readonly nextLink?: string; + readonly value?: PrivateEndpointConnectionResource[]; +} + +// @public +export interface PrivateEndpointConnections { + beginDelete(resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise, PrivateEndpointConnectionsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnectionResource, options?: PrivateEndpointConnectionsUpdateOptionalParams): Promise, PrivateEndpointConnectionsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnectionResource, options?: PrivateEndpointConnectionsUpdateOptionalParams): Promise; + get(resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise; + getGroupId(resourceGroupName: string, namespaceName: string, subResourceName: string, options?: PrivateEndpointConnectionsGetGroupIdOptionalParams): Promise; + list(resourceGroupName: string, namespaceName: string, options?: PrivateEndpointConnectionsListOptionalParams): PagedAsyncIterableIterator; + listGroupIds(resourceGroupName: string, namespaceName: string, options?: PrivateEndpointConnectionsListGroupIdsOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface PrivateEndpointConnectionsDeleteHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type PrivateEndpointConnectionsDeleteResponse = PrivateEndpointConnectionsDeleteHeaders; + +// @public +export interface PrivateEndpointConnectionsGetGroupIdOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsGetGroupIdResponse = PrivateLinkResource; + +// @public +export interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnectionResource; + +// @public +export interface PrivateEndpointConnectionsListGroupIdsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsListGroupIdsResponse = PrivateLinkResourceListResult; + +// @public +export interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionResourceListResult; + +// @public +export interface PrivateEndpointConnectionsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type PrivateEndpointConnectionsUpdateResponse = PrivateEndpointConnectionResource; + +// @public +export type PrivateLinkConnectionStatus = string; + +// @public +export interface PrivateLinkResource extends ProxyResource { + properties?: PrivateLinkResourceProperties; +} + +// @public +export interface PrivateLinkResourceListResult { + readonly nextLink?: string; + readonly value?: PrivateLinkResource[]; +} + +// @public +export interface PrivateLinkResourceProperties { + readonly groupId?: string; + readonly requiredMembers?: string[]; + readonly requiredZoneNames?: string[]; +} + +// @public +export interface PrivateLinkServiceConnection { + groupIds?: string[]; + name?: string; + requestMessage?: string; +} + +// @public +export interface ProxyResource extends Resource { +} + +// @public +export interface PublicInternetAuthorizationRule { + rights: AccessRights[]; +} + +// @public +export type PublicNetworkAccess = string; + +// @public +export interface RegistrationResult { + readonly applicationPlatform?: string; + readonly outcome?: string; + readonly pnsHandle?: string; + readonly registrationId?: string; +} + +// @public +export interface RemotePrivateEndpointConnection { + readonly id?: string; +} + +// @public +export interface RemotePrivateLinkServiceConnectionState { + readonly actionsRequired?: string; + readonly description?: string; + status?: PrivateLinkConnectionStatus; +} + +// @public +export type ReplicationRegion = string; + +// @public export interface Resource { readonly id?: string; - location?: string; readonly name?: string; - sku?: Sku; - tags?: { - [propertyName: string]: string; - }; + readonly systemData?: SystemData; readonly type?: string; } // @public export interface ResourceListKeys { - keyName?: string; - primaryConnectionString?: string; - primaryKey?: string; - secondaryConnectionString?: string; - secondaryKey?: string; + readonly keyName?: string; + readonly primaryConnectionString?: string; + readonly primaryKey?: string; + readonly secondaryConnectionString?: string; + readonly secondaryKey?: string; } // @public -export interface SharedAccessAuthorizationRuleCreateOrUpdateParameters { - properties: SharedAccessAuthorizationRuleProperties; +export interface ServiceSpecification { + readonly logSpecifications?: LogSpecification[]; + readonly metricSpecifications?: MetricSpecification[]; } // @public export interface SharedAccessAuthorizationRuleListResult { - nextLink?: string; - value?: SharedAccessAuthorizationRuleResource[]; + readonly nextLink?: string; + readonly value?: SharedAccessAuthorizationRuleResource[]; } // @public export interface SharedAccessAuthorizationRuleProperties { readonly claimType?: string; readonly claimValue?: string; - readonly createdTime?: string; + readonly createdTime?: Date; readonly keyName?: string; - readonly modifiedTime?: string; - readonly primaryKey?: string; + readonly modifiedTime?: Date; + primaryKey?: string; readonly revision?: number; - rights?: AccessRights[]; - readonly secondaryKey?: string; + rights: AccessRights[]; + secondaryKey?: string; } // @public -export interface SharedAccessAuthorizationRuleResource extends Resource { +export interface SharedAccessAuthorizationRuleResource extends ProxyResource { readonly claimType?: string; readonly claimValue?: string; - readonly createdTime?: string; + readonly createdTime?: Date; readonly keyName?: string; - readonly modifiedTime?: string; - readonly primaryKey?: string; + location?: string; + readonly modifiedTime?: Date; + primaryKey?: string; readonly revision?: number; rights?: AccessRights[]; - readonly secondaryKey?: string; + secondaryKey?: string; + tags?: { + [propertyName: string]: string; + }; } // @public @@ -590,18 +993,42 @@ export interface Sku { // @public export type SkuName = string; -// @public (undocumented) -export interface SubResource { - id?: string; +// @public +export interface SystemData { + createdAt?: Date; + createdBy?: string; + createdByType?: CreatedByType; + lastModifiedAt?: Date; + lastModifiedBy?: string; + lastModifiedByType?: CreatedByType; +} + +// @public +export interface TrackedResource extends Resource { + location: string; + tags?: { + [propertyName: string]: string; + }; } // @public export interface WnsCredential { + certificateKey?: string; packageSid?: string; secretKey?: string; windowsLiveEndpoint?: string; + wnsCertificate?: string; +} + +// @public +export interface XiaomiCredential { + appSecret?: string; + endpoint?: string; } +// @public +export type ZoneRedundancyPreference = string; + // (No @packageDocumentation comment for this package) ``` diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesCheckAvailabilitySample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesCheckAvailabilitySample.ts index 4fdc59e7df8f..f80a2b1de710 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesCheckAvailabilitySample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesCheckAvailabilitySample.ts @@ -10,28 +10,37 @@ // Licensed under the MIT License. import { CheckAvailabilityParameters, - NotificationHubsManagementClient + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. * * @summary Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCheckNameAvailability.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CheckAvailability.json */ -async function nameSpaceCheckNameAvailability() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; +async function namespacesCheckAvailability() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; const parameters: CheckAvailabilityParameters = { - name: "sdk-Namespace-2924" + name: "sdk-Namespace-2924", }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.checkAvailability(parameters); console.log(result); } -nameSpaceCheckNameAvailability().catch(console.error); +async function main() { + namespacesCheckAvailability(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesCreateOrUpdateAuthorizationRuleSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesCreateOrUpdateAuthorizationRuleSample.ts index 7ccb8e032e38..809cc9376664 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesCreateOrUpdateAuthorizationRuleSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesCreateOrUpdateAuthorizationRuleSample.ts @@ -9,37 +9,47 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - SharedAccessAuthorizationRuleCreateOrUpdateParameters, - NotificationHubsManagementClient + SharedAccessAuthorizationRuleResource, + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Creates an authorization rule for a namespace * * @summary Creates an authorization rule for a namespace - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleCreate.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json */ -async function nameSpaceAuthorizationRuleCreate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesCreateOrUpdateAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "sdk-AuthRules-1788"; - const parameters: SharedAccessAuthorizationRuleCreateOrUpdateParameters = { - properties: { rights: ["Listen", "Send"] } + const parameters: SharedAccessAuthorizationRuleResource = { + rights: ["Listen", "Send"], }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.createOrUpdateAuthorizationRule( resourceGroupName, namespaceName, authorizationRuleName, - parameters + parameters, ); console.log(result); } -nameSpaceAuthorizationRuleCreate().catch(console.error); +async function main() { + namespacesCreateOrUpdateAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesCreateOrUpdateSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesCreateOrUpdateSample.ts index e96dbbd6c13b..022d1f5cf9ab 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesCreateOrUpdateSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesCreateOrUpdateSample.ts @@ -9,37 +9,54 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - NamespaceCreateOrUpdateParameters, - NotificationHubsManagementClient + NamespaceResource, + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. + * This sample demonstrates how to Creates / Updates a Notification Hub namespace. This operation is idempotent. * - * @summary Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCreate.json + * @summary Creates / Updates a Notification Hub namespace. This operation is idempotent. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CreateOrUpdate.json */ -async function nameSpaceCreate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesCreateOrUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; - const parameters: NamespaceCreateOrUpdateParameters = { + const parameters: NamespaceResource = { location: "South Central US", + networkAcls: { + ipRules: [ + { ipMask: "185.48.100.00/24", rights: ["Manage", "Send", "Listen"] }, + ], + publicNetworkRule: { rights: ["Listen"] }, + }, sku: { name: "Standard", tier: "Standard" }, - tags: { tag1: "value1", tag2: "value2" } + tags: { tag1: "value1", tag2: "value2" }, + zoneRedundancy: "Enabled", }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); - const result = await client.namespaces.createOrUpdate( + const result = await client.namespaces.beginCreateOrUpdateAndWait( resourceGroupName, namespaceName, - parameters + parameters, ); console.log(result); } -nameSpaceCreate().catch(console.error); +async function main() { + namespacesCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesDeleteAuthorizationRuleSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesDeleteAuthorizationRuleSample.ts index 39fe7bbe2a4c..390c9e067c92 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesDeleteAuthorizationRuleSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesDeleteAuthorizationRuleSample.ts @@ -10,29 +10,39 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Deletes a namespace authorization rule * * @summary Deletes a namespace authorization rule - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleDelete.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleDelete.json */ -async function nameSpaceAuthorizationRuleDelete() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesDeleteAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "RootManageSharedAccessKey"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.deleteAuthorizationRule( resourceGroupName, namespaceName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -nameSpaceAuthorizationRuleDelete().catch(console.error); +async function main() { + namespacesDeleteAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesDeleteSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesDeleteSample.ts index 41788af22db6..485771ee8b89 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesDeleteSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesDeleteSample.ts @@ -10,27 +10,37 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. * * @summary Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceDelete.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Delete.json */ -async function nameSpaceDelete() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesDelete() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); - const result = await client.namespaces.beginDeleteAndWait( + const result = await client.namespaces.delete( resourceGroupName, - namespaceName + namespaceName, ); console.log(result); } -nameSpaceDelete().catch(console.error); +async function main() { + namespacesDelete(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesGetAuthorizationRuleSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesGetAuthorizationRuleSample.ts index e797a3c4035c..c3e9430339be 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesGetAuthorizationRuleSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesGetAuthorizationRuleSample.ts @@ -10,29 +10,39 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Gets an authorization rule for a namespace by name. * * @summary Gets an authorization rule for a namespace by name. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleGet.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleGet.json */ -async function nameSpaceAuthorizationRuleGet() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesGetAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "RootManageSharedAccessKey"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.getAuthorizationRule( resourceGroupName, namespaceName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -nameSpaceAuthorizationRuleGet().catch(console.error); +async function main() { + namespacesGetAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesGetPnsCredentialsSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesGetPnsCredentialsSample.ts new file mode 100644 index 000000000000..8af1433220ab --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesGetPnsCredentialsSample.ts @@ -0,0 +1,46 @@ +/* + * 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 { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists the PNS credentials associated with a namespace. + * + * @summary Lists the PNS credentials associated with a namespace. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PnsCredentialsGet.json + */ +async function namespacesGetPnsCredentials() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.namespaces.getPnsCredentials( + resourceGroupName, + namespaceName, + ); + console.log(result); +} + +async function main() { + namespacesGetPnsCredentials(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesGetSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesGetSample.ts index 34fcd43f851f..852956365db2 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesGetSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesGetSample.ts @@ -10,24 +10,34 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Returns the description for the specified namespace. + * This sample demonstrates how to Returns the given namespace. * - * @summary Returns the description for the specified namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceGet.json + * @summary Returns the given namespace. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Get.json */ -async function nameSpaceGet() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesGet() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.get(resourceGroupName, namespaceName); console.log(result); } -nameSpaceGet().catch(console.error); +async function main() { + namespacesGet(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListAllSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListAllSample.ts index 87072d3cc3bf..a53770aea01d 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListAllSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListAllSample.ts @@ -10,19 +10,24 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * This sample demonstrates how to Lists all the available namespaces within the subscription. * - * @summary Lists all the available namespaces within the subscription irrespective of the resourceGroups. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceList.json + * @summary Lists all the available namespaces within the subscription. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListBySubscription.json */ -async function nameSpaceList() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; +async function namespacesListAll() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.namespaces.listAll()) { @@ -31,4 +36,8 @@ async function nameSpaceList() { console.log(resArray); } -nameSpaceList().catch(console.error); +async function main() { + namespacesListAll(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListAuthorizationRulesSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListAuthorizationRulesSample.ts index b1c7949e3dd0..47accda124b3 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListAuthorizationRulesSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListAuthorizationRulesSample.ts @@ -10,30 +10,40 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Gets the authorization rules for a namespace. * * @summary Gets the authorization rules for a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListAll.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleList.json */ -async function nameSpaceAuthorizationRuleListAll() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesListAuthorizationRules() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.namespaces.listAuthorizationRules( resourceGroupName, - namespaceName + namespaceName, )) { resArray.push(item); } console.log(resArray); } -nameSpaceAuthorizationRuleListAll().catch(console.error); +async function main() { + namespacesListAuthorizationRules(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListKeysSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListKeysSample.ts index 584d1fd12b95..59d6c04be29b 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListKeysSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListKeysSample.ts @@ -10,29 +10,39 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Gets the Primary and Secondary ConnectionStrings to the namespace + * This sample demonstrates how to Gets the Primary and Secondary ConnectionStrings to the namespace. * - * @summary Gets the Primary and Secondary ConnectionStrings to the namespace - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListKey.json + * @summary Gets the Primary and Secondary ConnectionStrings to the namespace. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleListKeys.json */ -async function nameSpaceAuthorizationRuleListKey() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesListKeys() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "RootManageSharedAccessKey"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.listKeys( resourceGroupName, namespaceName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -nameSpaceAuthorizationRuleListKey().catch(console.error); +async function main() { + namespacesListKeys(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListSample.ts index 9b278248c444..2d6f55d5f0ad 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesListSample.ts @@ -10,20 +10,26 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Lists the available namespaces within a resourceGroup. + * This sample demonstrates how to Lists the available namespaces within a resource group. * - * @summary Lists the available namespaces within a resourceGroup. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceListByResourceGroup.json + * @summary Lists the available namespaces within a resource group. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListByResourceGroup.json */ -async function nameSpaceListByResourceGroup() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesList() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.namespaces.list(resourceGroupName)) { @@ -32,4 +38,8 @@ async function nameSpaceListByResourceGroup() { console.log(resArray); } -nameSpaceListByResourceGroup().catch(console.error); +async function main() { + namespacesList(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesPatchSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesPatchSample.ts deleted file mode 100644 index da2a6fd83e14..000000000000 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesPatchSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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 { - NamespacePatchParameters, - NotificationHubsManagementClient -} from "@azure/arm-notificationhubs"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Patches the existing namespace - * - * @summary Patches the existing namespace - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceUpdate.json - */ -async function nameSpaceUpdate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; - const namespaceName = "nh-sdk-ns"; - const parameters: NamespacePatchParameters = { - sku: { name: "Standard", tier: "Standard" }, - tags: { tag1: "value1", tag2: "value2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NotificationHubsManagementClient( - credential, - subscriptionId - ); - const result = await client.namespaces.patch( - resourceGroupName, - namespaceName, - parameters - ); - console.log(result); -} - -nameSpaceUpdate().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesRegenerateKeysSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesRegenerateKeysSample.ts index 5fa2210c7c3b..4e6c1aeb758a 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesRegenerateKeysSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesRegenerateKeysSample.ts @@ -9,35 +9,45 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - PolicykeyResource, - NotificationHubsManagementClient + PolicyKeyResource, + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule * * @summary Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleRegenrateKey.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json */ -async function nameSpaceAuthorizationRuleRegenerateKey() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesRegenerateKeys() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "RootManageSharedAccessKey"; - const parameters: PolicykeyResource = { policyKey: "PrimaryKey" }; + const parameters: PolicyKeyResource = { policyKey: "PrimaryKey" }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.regenerateKeys( resourceGroupName, namespaceName, authorizationRuleName, - parameters + parameters, ); console.log(result); } -nameSpaceAuthorizationRuleRegenerateKey().catch(console.error); +async function main() { + namespacesRegenerateKeys(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesUpdateSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesUpdateSample.ts new file mode 100644 index 000000000000..f5600482160e --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/namespacesUpdateSample.ts @@ -0,0 +1,62 @@ +/* + * 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 { + NamespacePatchParameters, + NotificationHubsManagementClient, +} from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Patches the existing namespace. + * + * @summary Patches the existing namespace. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Update.json + */ +async function namespacesUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const parameters: NamespacePatchParameters = { + properties: { + pnsCredentials: { + gcmCredential: { + gcmEndpoint: "https://fcm.googleapis.com/fcm/send", + googleApiKey: "#############################", + }, + }, + }, + sku: { name: "Free" }, + tags: { tag1: "value3" }, + }; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.namespaces.update( + resourceGroupName, + namespaceName, + parameters, + ); + console.log(result); +} + +async function main() { + namespacesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsCheckNotificationHubAvailabilitySample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsCheckNotificationHubAvailabilitySample.ts index 5c141d2210b3..103695f912b6 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsCheckNotificationHubAvailabilitySample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsCheckNotificationHubAvailabilitySample.ts @@ -10,35 +10,45 @@ // Licensed under the MIT License. import { CheckAvailabilityParameters, - NotificationHubsManagementClient + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Checks the availability of the given notificationHub in a namespace. * * @summary Checks the availability of the given notificationHub in a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCheckNameAvailability.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CheckAvailability.json */ -async function notificationHubCheckNameAvailability() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsCheckNotificationHubAvailability() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "locp-newns"; const parameters: CheckAvailabilityParameters = { name: "sdktest", - location: "West Europe" + location: "West Europe", }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.checkNotificationHubAvailability( resourceGroupName, namespaceName, - parameters + parameters, ); console.log(result); } -notificationHubCheckNameAvailability().catch(console.error); +async function main() { + notificationHubsCheckNotificationHubAvailability(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsCreateOrUpdateAuthorizationRuleSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsCreateOrUpdateAuthorizationRuleSample.ts index 869f7f085a36..3e9893eb3cd3 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsCreateOrUpdateAuthorizationRuleSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsCreateOrUpdateAuthorizationRuleSample.ts @@ -9,39 +9,49 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - SharedAccessAuthorizationRuleCreateOrUpdateParameters, - NotificationHubsManagementClient + SharedAccessAuthorizationRuleResource, + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Creates/Updates an authorization rule for a NotificationHub * * @summary Creates/Updates an authorization rule for a NotificationHub - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleCreate.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json */ -async function notificationHubAuthorizationRuleCreate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsCreateOrUpdateAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; - const authorizationRuleName = "DefaultListenSharedAccessSignature"; - const parameters: SharedAccessAuthorizationRuleCreateOrUpdateParameters = { - properties: { rights: ["Listen", "Send"] } + const authorizationRuleName = "MyManageSharedAccessKey"; + const parameters: SharedAccessAuthorizationRuleResource = { + rights: ["Listen", "Send"], }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.createOrUpdateAuthorizationRule( resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, - parameters + parameters, ); console.log(result); } -notificationHubAuthorizationRuleCreate().catch(console.error); +async function main() { + notificationHubsCreateOrUpdateAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsCreateOrUpdateSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsCreateOrUpdateSample.ts index ced4f99a258f..3bcc8cb8cb7e 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsCreateOrUpdateSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsCreateOrUpdateSample.ts @@ -9,37 +9,45 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - NotificationHubCreateOrUpdateParameters, - NotificationHubsManagementClient + NotificationHubResource, + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Creates/Update a NotificationHub in a namespace. * * @summary Creates/Update a NotificationHub in a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCreate.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CreateOrUpdate.json */ -async function notificationHubCreate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsCreateOrUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; - const parameters: NotificationHubCreateOrUpdateParameters = { - location: "eastus" - }; + const parameters: NotificationHubResource = { location: "eastus" }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.createOrUpdate( resourceGroupName, namespaceName, notificationHubName, - parameters + parameters, ); console.log(result); } -notificationHubCreate().catch(console.error); +async function main() { + notificationHubsCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsDebugSendSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsDebugSendSample.ts index fa63e94e7707..4aab712e97b9 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsDebugSendSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsDebugSendSample.ts @@ -8,37 +8,41 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { - NotificationHubsDebugSendOptionalParams, - NotificationHubsManagementClient -} from "@azure/arm-notificationhubs"; +import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to test send a push notification + * This sample demonstrates how to Test send a push notification. * - * @summary test send a push notification - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDebugSend.json + * @summary Test send a push notification. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/DebugSend.json */ -async function debugsend() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsDebugSend() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; - const parameters: Record = { data: { message: "Hello" } }; - const options: NotificationHubsDebugSendOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.debugSend( resourceGroupName, namespaceName, notificationHubName, - options ); console.log(result); } -debugsend().catch(console.error); +async function main() { + notificationHubsDebugSend(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsDeleteAuthorizationRuleSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsDeleteAuthorizationRuleSample.ts index ac72f4a32263..f26c4e0c2448 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsDeleteAuthorizationRuleSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsDeleteAuthorizationRuleSample.ts @@ -10,31 +10,41 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Deletes a notificationHub authorization rule * * @summary Deletes a notificationHub authorization rule - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleDelete.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json */ -async function notificationHubAuthorizationRuleDelete() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsDeleteAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const authorizationRuleName = "DefaultListenSharedAccessSignature"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.deleteAuthorizationRule( resourceGroupName, namespaceName, notificationHubName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -notificationHubAuthorizationRuleDelete().catch(console.error); +async function main() { + notificationHubsDeleteAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsDeleteSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsDeleteSample.ts index 4c70a99ad643..180c06b69169 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsDeleteSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsDeleteSample.ts @@ -10,29 +10,39 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Deletes a notification hub associated with a namespace. * * @summary Deletes a notification hub associated with a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDelete.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Delete.json */ -async function notificationHubDelete() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsDelete() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.delete( resourceGroupName, namespaceName, - notificationHubName + notificationHubName, ); console.log(result); } -notificationHubDelete().catch(console.error); +async function main() { + notificationHubsDelete(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsGetAuthorizationRuleSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsGetAuthorizationRuleSample.ts index 0a83324f0853..f1b1e7f154f2 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsGetAuthorizationRuleSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsGetAuthorizationRuleSample.ts @@ -10,31 +10,41 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Gets an authorization rule for a NotificationHub by name. * * @summary Gets an authorization rule for a NotificationHub by name. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleGet.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json */ -async function notificationHubAuthorizationRuleGet() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsGetAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const authorizationRuleName = "DefaultListenSharedAccessSignature"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.getAuthorizationRule( resourceGroupName, namespaceName, notificationHubName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -notificationHubAuthorizationRuleGet().catch(console.error); +async function main() { + notificationHubsGetAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsGetPnsCredentialsSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsGetPnsCredentialsSample.ts index 01b38dac0189..1fc721ebb46a 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsGetPnsCredentialsSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsGetPnsCredentialsSample.ts @@ -10,29 +10,39 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Lists the PNS Credentials associated with a notification hub . + * This sample demonstrates how to Lists the PNS Credentials associated with a notification hub. * - * @summary Lists the PNS Credentials associated with a notification hub . - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPnsCredentials.json + * @summary Lists the PNS Credentials associated with a notification hub. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/PnsCredentialsGet.json */ -async function notificationHubPnsCredentials() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsGetPnsCredentials() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.getPnsCredentials( resourceGroupName, namespaceName, - notificationHubName + notificationHubName, ); console.log(result); } -notificationHubPnsCredentials().catch(console.error); +async function main() { + notificationHubsGetPnsCredentials(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsGetSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsGetSample.ts index b9cfe2be30db..cf73171fa712 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsGetSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsGetSample.ts @@ -10,29 +10,39 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Lists the notification hubs associated with a namespace. + * This sample demonstrates how to Gets the notification hub. * - * @summary Lists the notification hubs associated with a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubGet.json + * @summary Gets the notification hub. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Get.json */ -async function notificationHubGet() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsGet() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.get( resourceGroupName, namespaceName, - notificationHubName + notificationHubName, ); console.log(result); } -notificationHubGet().catch(console.error); +async function main() { + notificationHubsGet(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsListAuthorizationRulesSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsListAuthorizationRulesSample.ts index d542f81f21ec..965a31b72bce 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsListAuthorizationRulesSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsListAuthorizationRulesSample.ts @@ -10,32 +10,42 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Gets the authorization rules for a NotificationHub. * * @summary Gets the authorization rules for a NotificationHub. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListAll.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleList.json */ -async function notificationHubAuthorizationRuleListAll() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsListAuthorizationRules() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.notificationHubs.listAuthorizationRules( resourceGroupName, namespaceName, - notificationHubName + notificationHubName, )) { resArray.push(item); } console.log(resArray); } -notificationHubAuthorizationRuleListAll().catch(console.error); +async function main() { + notificationHubsListAuthorizationRules(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsListKeysSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsListKeysSample.ts index 91797f29c08a..9cb76d265961 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsListKeysSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsListKeysSample.ts @@ -10,31 +10,41 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Gets the Primary and Secondary ConnectionStrings to the NotificationHub * * @summary Gets the Primary and Secondary ConnectionStrings to the NotificationHub - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListKey.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleListKeys.json */ -async function notificationHubAuthorizationRuleListKey() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsListKeys() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const authorizationRuleName = "sdk-AuthRules-5800"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.listKeys( resourceGroupName, namespaceName, notificationHubName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -notificationHubAuthorizationRuleListKey().catch(console.error); +async function main() { + notificationHubsListKeys(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsListSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsListSample.ts index 43e455f72fb6..4a7e84a1c4ae 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsListSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsListSample.ts @@ -10,30 +10,40 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Lists the notification hubs associated with a namespace. * * @summary Lists the notification hubs associated with a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubListByNameSpace.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/List.json */ -async function notificationHubListByNameSpace() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsList() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.notificationHubs.list( resourceGroupName, - namespaceName + namespaceName, )) { resArray.push(item); } console.log(resArray); } -notificationHubListByNameSpace().catch(console.error); +async function main() { + notificationHubsList(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsRegenerateKeysSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsRegenerateKeysSample.ts index 557b7aa142f5..38ead21fb085 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsRegenerateKeysSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsRegenerateKeysSample.ts @@ -9,37 +9,47 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - PolicykeyResource, - NotificationHubsManagementClient + PolicyKeyResource, + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule * * @summary Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleRegenrateKey.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleRegenerateKey.json */ -async function notificationHubAuthorizationRuleRegenrateKey() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsRegenerateKeys() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const authorizationRuleName = "DefaultListenSharedAccessSignature"; - const parameters: PolicykeyResource = { policyKey: "PrimaryKey" }; + const parameters: PolicyKeyResource = { policyKey: "PrimaryKey" }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.regenerateKeys( resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, - parameters + parameters, ); console.log(result); } -notificationHubAuthorizationRuleRegenrateKey().catch(console.error); +async function main() { + notificationHubsRegenerateKeys(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsPatchSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsUpdateSample.ts similarity index 52% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsPatchSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsUpdateSample.ts index 20a0cef6f0ce..b0d5ddbbe8b5 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsPatchSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsUpdateSample.ts @@ -10,36 +10,50 @@ // Licensed under the MIT License. import { NotificationHubPatchParameters, - NotificationHubsPatchOptionalParams, - NotificationHubsManagementClient + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Patch a NotificationHub in a namespace. * * @summary Patch a NotificationHub in a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Update.json */ -async function notificationHubPatch() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "sdkresourceGroup"; +async function notificationHubsUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "sdkresourceGroup"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "sdk-notificationHubs-8708"; - const parameters: NotificationHubPatchParameters = {}; - const options: NotificationHubsPatchOptionalParams = { parameters }; + const parameters: NotificationHubPatchParameters = { + gcmCredential: { + gcmEndpoint: "https://fcm.googleapis.com/fcm/send", + googleApiKey: "###################################", + }, + registrationTtl: "10675199.02:48:05.4775807", + }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); - const result = await client.notificationHubs.patch( + const result = await client.notificationHubs.update( resourceGroupName, namespaceName, notificationHubName, - options + parameters, ); console.log(result); } -notificationHubPatch().catch(console.error); +async function main() { + notificationHubsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/operationsListSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/operationsListSample.ts index 8d5a7ec9db42..ff8bfc43839c 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/operationsListSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/operationsListSample.ts @@ -10,19 +10,24 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Lists all of the available NotificationHubs REST API operations. + * This sample demonstrates how to Lists all available Notification Hubs operations. * - * @summary Lists all of the available NotificationHubs REST API operations. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NHOperationsList.json + * @summary Lists all available Notification Hubs operations. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NHOperationsList.json */ async function operationsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.operations.list()) { @@ -31,4 +36,8 @@ async function operationsList() { console.log(resArray); } -operationsList().catch(console.error); +async function main() { + operationsList(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsDeleteSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsDeleteSample.ts new file mode 100644 index 000000000000..c7f7fc12587c --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsDeleteSample.ts @@ -0,0 +1,51 @@ +/* + * 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 { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes the Private Endpoint Connection. +This is a public API that can be called directly by Notification Hubs users. + * + * @summary Deletes the Private Endpoint Connection. +This is a public API that can be called directly by Notification Hubs users. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json + */ +async function privateEndpointConnectionsDelete() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const privateEndpointConnectionName = + "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.privateEndpointConnections.beginDeleteAndWait( + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsDelete(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsGetGroupIdSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsGetGroupIdSample.ts new file mode 100644 index 000000000000..3ac6ba4aa810 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsGetGroupIdSample.ts @@ -0,0 +1,50 @@ +/* + * 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 { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. +That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + * + * @summary Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. +That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceGet.json + */ +async function privateEndpointConnectionsGetGroupId() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const subResourceName = "namespace"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.privateEndpointConnections.getGroupId( + resourceGroupName, + namespaceName, + subResourceName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsGetGroupId(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsGetSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsGetSample.ts new file mode 100644 index 000000000000..196a70b5080b --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsGetSample.ts @@ -0,0 +1,51 @@ +/* + * 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 { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Returns a Private Endpoint Connection with a given name. +This is a public API that can be called directly by Notification Hubs users. + * + * @summary Returns a Private Endpoint Connection with a given name. +This is a public API that can be called directly by Notification Hubs users. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json + */ +async function privateEndpointConnectionsGet() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const privateEndpointConnectionName = + "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.privateEndpointConnections.get( + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsGet(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsListGroupIdsSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsListGroupIdsSample.ts new file mode 100644 index 000000000000..d5e0783f240a --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsListGroupIdsSample.ts @@ -0,0 +1,51 @@ +/* + * 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 { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. +That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + * + * @summary Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. +That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceList.json + */ +async function privateEndpointConnectionsListGroupIds() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const resArray = new Array(); + for await (let item of client.privateEndpointConnections.listGroupIds( + resourceGroupName, + namespaceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + privateEndpointConnectionsListGroupIds(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsListSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsListSample.ts new file mode 100644 index 000000000000..fea89497694b --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsListSample.ts @@ -0,0 +1,51 @@ +/* + * 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 { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace. +This is a public API that can be called directly by Notification Hubs users. + * + * @summary Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace. +This is a public API that can be called directly by Notification Hubs users. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json + */ +async function privateEndpointConnectionsList() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const resArray = new Array(); + for await (let item of client.privateEndpointConnections.list( + resourceGroupName, + namespaceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + privateEndpointConnectionsList(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsUpdateSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsUpdateSample.ts new file mode 100644 index 000000000000..0ddb213a1c86 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples-dev/privateEndpointConnectionsUpdateSample.ts @@ -0,0 +1,61 @@ +/* + * 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 { + PrivateEndpointConnectionResource, + NotificationHubsManagementClient, +} from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Approves or rejects Private Endpoint Connection. +This is a public API that can be called directly by Notification Hubs users. + * + * @summary Approves or rejects Private Endpoint Connection. +This is a public API that can be called directly by Notification Hubs users. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionUpdate.json + */ +async function privateEndpointConnectionsUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const privateEndpointConnectionName = + "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e"; + const parameters: PrivateEndpointConnectionResource = { + properties: { + privateEndpoint: {}, + privateLinkServiceConnectionState: { status: "Approved" }, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.privateEndpointConnections.beginUpdateAndWait( + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + parameters, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/README.md b/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/README.md deleted file mode 100644 index 020d4550eddf..000000000000 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/README.md +++ /dev/null @@ -1,104 +0,0 @@ -# client library samples for JavaScript - -These sample programs show how to use the JavaScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [namespacesCheckAvailabilitySample.js][namespacescheckavailabilitysample] | Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCheckNameAvailability.json | -| [namespacesCreateOrUpdateAuthorizationRuleSample.js][namespacescreateorupdateauthorizationrulesample] | Creates an authorization rule for a namespace x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleCreate.json | -| [namespacesCreateOrUpdateSample.js][namespacescreateorupdatesample] | Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCreate.json | -| [namespacesDeleteAuthorizationRuleSample.js][namespacesdeleteauthorizationrulesample] | Deletes a namespace authorization rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleDelete.json | -| [namespacesDeleteSample.js][namespacesdeletesample] | Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceDelete.json | -| [namespacesGetAuthorizationRuleSample.js][namespacesgetauthorizationrulesample] | Gets an authorization rule for a namespace by name. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleGet.json | -| [namespacesGetSample.js][namespacesgetsample] | Returns the description for the specified namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceGet.json | -| [namespacesListAllSample.js][namespaceslistallsample] | Lists all the available namespaces within the subscription irrespective of the resourceGroups. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceList.json | -| [namespacesListAuthorizationRulesSample.js][namespaceslistauthorizationrulessample] | Gets the authorization rules for a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListAll.json | -| [namespacesListKeysSample.js][namespaceslistkeyssample] | Gets the Primary and Secondary ConnectionStrings to the namespace x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListKey.json | -| [namespacesListSample.js][namespaceslistsample] | Lists the available namespaces within a resourceGroup. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceListByResourceGroup.json | -| [namespacesPatchSample.js][namespacespatchsample] | Patches the existing namespace x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceUpdate.json | -| [namespacesRegenerateKeysSample.js][namespacesregeneratekeyssample] | Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleRegenrateKey.json | -| [notificationHubsCheckNotificationHubAvailabilitySample.js][notificationhubschecknotificationhubavailabilitysample] | Checks the availability of the given notificationHub in a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCheckNameAvailability.json | -| [notificationHubsCreateOrUpdateAuthorizationRuleSample.js][notificationhubscreateorupdateauthorizationrulesample] | Creates/Updates an authorization rule for a NotificationHub x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleCreate.json | -| [notificationHubsCreateOrUpdateSample.js][notificationhubscreateorupdatesample] | Creates/Update a NotificationHub in a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCreate.json | -| [notificationHubsDebugSendSample.js][notificationhubsdebugsendsample] | test send a push notification x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDebugSend.json | -| [notificationHubsDeleteAuthorizationRuleSample.js][notificationhubsdeleteauthorizationrulesample] | Deletes a notificationHub authorization rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleDelete.json | -| [notificationHubsDeleteSample.js][notificationhubsdeletesample] | Deletes a notification hub associated with a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDelete.json | -| [notificationHubsGetAuthorizationRuleSample.js][notificationhubsgetauthorizationrulesample] | Gets an authorization rule for a NotificationHub by name. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleGet.json | -| [notificationHubsGetPnsCredentialsSample.js][notificationhubsgetpnscredentialssample] | Lists the PNS Credentials associated with a notification hub . x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPnsCredentials.json | -| [notificationHubsGetSample.js][notificationhubsgetsample] | Lists the notification hubs associated with a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubGet.json | -| [notificationHubsListAuthorizationRulesSample.js][notificationhubslistauthorizationrulessample] | Gets the authorization rules for a NotificationHub. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListAll.json | -| [notificationHubsListKeysSample.js][notificationhubslistkeyssample] | Gets the Primary and Secondary ConnectionStrings to the NotificationHub x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListKey.json | -| [notificationHubsListSample.js][notificationhubslistsample] | Lists the notification hubs associated with a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubListByNameSpace.json | -| [notificationHubsPatchSample.js][notificationhubspatchsample] | Patch a NotificationHub in a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json | -| [notificationHubsRegenerateKeysSample.js][notificationhubsregeneratekeyssample] | Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleRegenrateKey.json | -| [operationsListSample.js][operationslistsample] | Lists all of the available NotificationHubs REST API operations. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NHOperationsList.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. 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. - -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node namespacesCheckAvailabilitySample.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 node namespacesCheckAvailabilitySample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[namespacescheckavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesCheckAvailabilitySample.js -[namespacescreateorupdateauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesCreateOrUpdateAuthorizationRuleSample.js -[namespacescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesCreateOrUpdateSample.js -[namespacesdeleteauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesDeleteAuthorizationRuleSample.js -[namespacesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesDeleteSample.js -[namespacesgetauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesGetAuthorizationRuleSample.js -[namespacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesGetSample.js -[namespaceslistallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListAllSample.js -[namespaceslistauthorizationrulessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListAuthorizationRulesSample.js -[namespaceslistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListKeysSample.js -[namespaceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListSample.js -[namespacespatchsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesPatchSample.js -[namespacesregeneratekeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesRegenerateKeysSample.js -[notificationhubschecknotificationhubavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsCheckNotificationHubAvailabilitySample.js -[notificationhubscreateorupdateauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsCreateOrUpdateAuthorizationRuleSample.js -[notificationhubscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsCreateOrUpdateSample.js -[notificationhubsdebugsendsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsDebugSendSample.js -[notificationhubsdeleteauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsDeleteAuthorizationRuleSample.js -[notificationhubsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsDeleteSample.js -[notificationhubsgetauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsGetAuthorizationRuleSample.js -[notificationhubsgetpnscredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsGetPnsCredentialsSample.js -[notificationhubsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsGetSample.js -[notificationhubslistauthorizationrulessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsListAuthorizationRulesSample.js -[notificationhubslistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsListKeysSample.js -[notificationhubslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsListSample.js -[notificationhubspatchsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsPatchSample.js -[notificationhubsregeneratekeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsRegenerateKeysSample.js -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/operationsListSample.js -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-notificationhubs?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/notificationhubs/arm-notificationhubs/README.md diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesCreateOrUpdateSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesCreateOrUpdateSample.js deleted file mode 100644 index 81b519db7e7e..000000000000 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesCreateOrUpdateSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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 { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. - * - * @summary Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCreate.json - */ -async function nameSpaceCreate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; - const namespaceName = "nh-sdk-ns"; - const parameters = { - location: "South Central US", - sku: { name: "Standard", tier: "Standard" }, - tags: { tag1: "value1", tag2: "value2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new NotificationHubsManagementClient(credential, subscriptionId); - const result = await client.namespaces.createOrUpdate( - resourceGroupName, - namespaceName, - parameters - ); - console.log(result); -} - -nameSpaceCreate().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesPatchSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesPatchSample.js deleted file mode 100644 index 3d37636791f4..000000000000 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesPatchSample.js +++ /dev/null @@ -1,34 +0,0 @@ -/* - * 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 { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Patches the existing namespace - * - * @summary Patches the existing namespace - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceUpdate.json - */ -async function nameSpaceUpdate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; - const namespaceName = "nh-sdk-ns"; - const parameters = { - sku: { name: "Standard", tier: "Standard" }, - tags: { tag1: "value1", tag2: "value2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new NotificationHubsManagementClient(credential, subscriptionId); - const result = await client.namespaces.patch(resourceGroupName, namespaceName, parameters); - console.log(result); -} - -nameSpaceUpdate().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/README.md b/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/README.md deleted file mode 100644 index 51c8b54951f9..000000000000 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/README.md +++ /dev/null @@ -1,117 +0,0 @@ -# client library samples for TypeScript - -These sample programs show how to use the TypeScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [namespacesCheckAvailabilitySample.ts][namespacescheckavailabilitysample] | Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCheckNameAvailability.json | -| [namespacesCreateOrUpdateAuthorizationRuleSample.ts][namespacescreateorupdateauthorizationrulesample] | Creates an authorization rule for a namespace x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleCreate.json | -| [namespacesCreateOrUpdateSample.ts][namespacescreateorupdatesample] | Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCreate.json | -| [namespacesDeleteAuthorizationRuleSample.ts][namespacesdeleteauthorizationrulesample] | Deletes a namespace authorization rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleDelete.json | -| [namespacesDeleteSample.ts][namespacesdeletesample] | Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceDelete.json | -| [namespacesGetAuthorizationRuleSample.ts][namespacesgetauthorizationrulesample] | Gets an authorization rule for a namespace by name. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleGet.json | -| [namespacesGetSample.ts][namespacesgetsample] | Returns the description for the specified namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceGet.json | -| [namespacesListAllSample.ts][namespaceslistallsample] | Lists all the available namespaces within the subscription irrespective of the resourceGroups. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceList.json | -| [namespacesListAuthorizationRulesSample.ts][namespaceslistauthorizationrulessample] | Gets the authorization rules for a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListAll.json | -| [namespacesListKeysSample.ts][namespaceslistkeyssample] | Gets the Primary and Secondary ConnectionStrings to the namespace x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListKey.json | -| [namespacesListSample.ts][namespaceslistsample] | Lists the available namespaces within a resourceGroup. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceListByResourceGroup.json | -| [namespacesPatchSample.ts][namespacespatchsample] | Patches the existing namespace x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceUpdate.json | -| [namespacesRegenerateKeysSample.ts][namespacesregeneratekeyssample] | Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleRegenrateKey.json | -| [notificationHubsCheckNotificationHubAvailabilitySample.ts][notificationhubschecknotificationhubavailabilitysample] | Checks the availability of the given notificationHub in a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCheckNameAvailability.json | -| [notificationHubsCreateOrUpdateAuthorizationRuleSample.ts][notificationhubscreateorupdateauthorizationrulesample] | Creates/Updates an authorization rule for a NotificationHub x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleCreate.json | -| [notificationHubsCreateOrUpdateSample.ts][notificationhubscreateorupdatesample] | Creates/Update a NotificationHub in a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCreate.json | -| [notificationHubsDebugSendSample.ts][notificationhubsdebugsendsample] | test send a push notification x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDebugSend.json | -| [notificationHubsDeleteAuthorizationRuleSample.ts][notificationhubsdeleteauthorizationrulesample] | Deletes a notificationHub authorization rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleDelete.json | -| [notificationHubsDeleteSample.ts][notificationhubsdeletesample] | Deletes a notification hub associated with a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDelete.json | -| [notificationHubsGetAuthorizationRuleSample.ts][notificationhubsgetauthorizationrulesample] | Gets an authorization rule for a NotificationHub by name. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleGet.json | -| [notificationHubsGetPnsCredentialsSample.ts][notificationhubsgetpnscredentialssample] | Lists the PNS Credentials associated with a notification hub . x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPnsCredentials.json | -| [notificationHubsGetSample.ts][notificationhubsgetsample] | Lists the notification hubs associated with a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubGet.json | -| [notificationHubsListAuthorizationRulesSample.ts][notificationhubslistauthorizationrulessample] | Gets the authorization rules for a NotificationHub. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListAll.json | -| [notificationHubsListKeysSample.ts][notificationhubslistkeyssample] | Gets the Primary and Secondary ConnectionStrings to the NotificationHub x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListKey.json | -| [notificationHubsListSample.ts][notificationhubslistsample] | Lists the notification hubs associated with a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubListByNameSpace.json | -| [notificationHubsPatchSample.ts][notificationhubspatchsample] | Patch a NotificationHub in a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json | -| [notificationHubsRegenerateKeysSample.ts][notificationhubsregeneratekeyssample] | Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleRegenrateKey.json | -| [operationsListSample.ts][operationslistsample] | Lists all of the available NotificationHubs REST API operations. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NHOperationsList.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -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: - -```bash -npm install -g typescript -``` - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Compile the samples: - -```bash -npm run build -``` - -3. 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. - -4. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dist/namespacesCheckAvailabilitySample.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 node dist/namespacesCheckAvailabilitySample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[namespacescheckavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesCheckAvailabilitySample.ts -[namespacescreateorupdateauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesCreateOrUpdateAuthorizationRuleSample.ts -[namespacescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesCreateOrUpdateSample.ts -[namespacesdeleteauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesDeleteAuthorizationRuleSample.ts -[namespacesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesDeleteSample.ts -[namespacesgetauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesGetAuthorizationRuleSample.ts -[namespacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesGetSample.ts -[namespaceslistallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListAllSample.ts -[namespaceslistauthorizationrulessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListAuthorizationRulesSample.ts -[namespaceslistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListKeysSample.ts -[namespaceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListSample.ts -[namespacespatchsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesPatchSample.ts -[namespacesregeneratekeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesRegenerateKeysSample.ts -[notificationhubschecknotificationhubavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsCheckNotificationHubAvailabilitySample.ts -[notificationhubscreateorupdateauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsCreateOrUpdateAuthorizationRuleSample.ts -[notificationhubscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsCreateOrUpdateSample.ts -[notificationhubsdebugsendsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsDebugSendSample.ts -[notificationhubsdeleteauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsDeleteAuthorizationRuleSample.ts -[notificationhubsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsDeleteSample.ts -[notificationhubsgetauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsGetAuthorizationRuleSample.ts -[notificationhubsgetpnscredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsGetPnsCredentialsSample.ts -[notificationhubsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsGetSample.ts -[notificationhubslistauthorizationrulessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsListAuthorizationRulesSample.ts -[notificationhubslistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsListKeysSample.ts -[notificationhubslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsListSample.ts -[notificationhubspatchsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsPatchSample.ts -[notificationhubsregeneratekeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsRegenerateKeysSample.ts -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/operationsListSample.ts -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-notificationhubs?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/notificationhubs/arm-notificationhubs/README.md -[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesCreateOrUpdateSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesCreateOrUpdateSample.ts deleted file mode 100644 index e96dbbd6c13b..000000000000 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesCreateOrUpdateSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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 { - NamespaceCreateOrUpdateParameters, - NotificationHubsManagementClient -} from "@azure/arm-notificationhubs"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. - * - * @summary Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCreate.json - */ -async function nameSpaceCreate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; - const namespaceName = "nh-sdk-ns"; - const parameters: NamespaceCreateOrUpdateParameters = { - location: "South Central US", - sku: { name: "Standard", tier: "Standard" }, - tags: { tag1: "value1", tag2: "value2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NotificationHubsManagementClient( - credential, - subscriptionId - ); - const result = await client.namespaces.createOrUpdate( - resourceGroupName, - namespaceName, - parameters - ); - console.log(result); -} - -nameSpaceCreate().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesPatchSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesPatchSample.ts deleted file mode 100644 index da2a6fd83e14..000000000000 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesPatchSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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 { - NamespacePatchParameters, - NotificationHubsManagementClient -} from "@azure/arm-notificationhubs"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Patches the existing namespace - * - * @summary Patches the existing namespace - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceUpdate.json - */ -async function nameSpaceUpdate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; - const namespaceName = "nh-sdk-ns"; - const parameters: NamespacePatchParameters = { - sku: { name: "Standard", tier: "Standard" }, - tags: { tag1: "value1", tag2: "value2" } - }; - const credential = new DefaultAzureCredential(); - const client = new NotificationHubsManagementClient( - credential, - subscriptionId - ); - const result = await client.namespaces.patch( - resourceGroupName, - namespaceName, - parameters - ); - console.log(result); -} - -nameSpaceUpdate().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/README.md b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/README.md new file mode 100644 index 000000000000..4a27f78a719f --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/README.md @@ -0,0 +1,118 @@ +# client library samples for JavaScript (Beta) + +These sample programs show how to use the JavaScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [namespacesCheckAvailabilitySample.js][namespacescheckavailabilitysample] | Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CheckAvailability.json | +| [namespacesCreateOrUpdateAuthorizationRuleSample.js][namespacescreateorupdateauthorizationrulesample] | Creates an authorization rule for a namespace x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json | +| [namespacesCreateOrUpdateSample.js][namespacescreateorupdatesample] | Creates / Updates a Notification Hub namespace. This operation is idempotent. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CreateOrUpdate.json | +| [namespacesDeleteAuthorizationRuleSample.js][namespacesdeleteauthorizationrulesample] | Deletes a namespace authorization rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleDelete.json | +| [namespacesDeleteSample.js][namespacesdeletesample] | Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Delete.json | +| [namespacesGetAuthorizationRuleSample.js][namespacesgetauthorizationrulesample] | Gets an authorization rule for a namespace by name. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleGet.json | +| [namespacesGetPnsCredentialsSample.js][namespacesgetpnscredentialssample] | Lists the PNS credentials associated with a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PnsCredentialsGet.json | +| [namespacesGetSample.js][namespacesgetsample] | Returns the given namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Get.json | +| [namespacesListAllSample.js][namespaceslistallsample] | Lists all the available namespaces within the subscription. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListBySubscription.json | +| [namespacesListAuthorizationRulesSample.js][namespaceslistauthorizationrulessample] | Gets the authorization rules for a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleList.json | +| [namespacesListKeysSample.js][namespaceslistkeyssample] | Gets the Primary and Secondary ConnectionStrings to the namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleListKeys.json | +| [namespacesListSample.js][namespaceslistsample] | Lists the available namespaces within a resource group. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListByResourceGroup.json | +| [namespacesRegenerateKeysSample.js][namespacesregeneratekeyssample] | Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json | +| [namespacesUpdateSample.js][namespacesupdatesample] | Patches the existing namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Update.json | +| [notificationHubsCheckNotificationHubAvailabilitySample.js][notificationhubschecknotificationhubavailabilitysample] | Checks the availability of the given notificationHub in a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CheckAvailability.json | +| [notificationHubsCreateOrUpdateAuthorizationRuleSample.js][notificationhubscreateorupdateauthorizationrulesample] | Creates/Updates an authorization rule for a NotificationHub x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json | +| [notificationHubsCreateOrUpdateSample.js][notificationhubscreateorupdatesample] | Creates/Update a NotificationHub in a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CreateOrUpdate.json | +| [notificationHubsDebugSendSample.js][notificationhubsdebugsendsample] | Test send a push notification. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/DebugSend.json | +| [notificationHubsDeleteAuthorizationRuleSample.js][notificationhubsdeleteauthorizationrulesample] | Deletes a notificationHub authorization rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json | +| [notificationHubsDeleteSample.js][notificationhubsdeletesample] | Deletes a notification hub associated with a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Delete.json | +| [notificationHubsGetAuthorizationRuleSample.js][notificationhubsgetauthorizationrulesample] | Gets an authorization rule for a NotificationHub by name. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json | +| [notificationHubsGetPnsCredentialsSample.js][notificationhubsgetpnscredentialssample] | Lists the PNS Credentials associated with a notification hub. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/PnsCredentialsGet.json | +| [notificationHubsGetSample.js][notificationhubsgetsample] | Gets the notification hub. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Get.json | +| [notificationHubsListAuthorizationRulesSample.js][notificationhubslistauthorizationrulessample] | Gets the authorization rules for a NotificationHub. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleList.json | +| [notificationHubsListKeysSample.js][notificationhubslistkeyssample] | Gets the Primary and Secondary ConnectionStrings to the NotificationHub x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleListKeys.json | +| [notificationHubsListSample.js][notificationhubslistsample] | Lists the notification hubs associated with a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/List.json | +| [notificationHubsRegenerateKeysSample.js][notificationhubsregeneratekeyssample] | Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleRegenerateKey.json | +| [notificationHubsUpdateSample.js][notificationhubsupdatesample] | Patch a NotificationHub in a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Update.json | +| [operationsListSample.js][operationslistsample] | Lists all available Notification Hubs operations. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NHOperationsList.json | +| [privateEndpointConnectionsDeleteSample.js][privateendpointconnectionsdeletesample] | Deletes the Private Endpoint Connection. This is a public API that can be called directly by Notification Hubs users. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json | +| [privateEndpointConnectionsGetGroupIdSample.js][privateendpointconnectionsgetgroupidsample] | Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceGet.json | +| [privateEndpointConnectionsGetSample.js][privateendpointconnectionsgetsample] | Returns a Private Endpoint Connection with a given name. This is a public API that can be called directly by Notification Hubs users. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json | +| [privateEndpointConnectionsListGroupIdsSample.js][privateendpointconnectionslistgroupidssample] | Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceList.json | +| [privateEndpointConnectionsListSample.js][privateendpointconnectionslistsample] | Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace. This is a public API that can be called directly by Notification Hubs users. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json | +| [privateEndpointConnectionsUpdateSample.js][privateendpointconnectionsupdatesample] | Approves or rejects Private Endpoint Connection. This is a public API that can be called directly by Notification Hubs users. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionUpdate.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. 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. + +3. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node namespacesCheckAvailabilitySample.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 NOTIFICATIONHUBS_SUBSCRIPTION_ID="" node namespacesCheckAvailabilitySample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[namespacescheckavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesCheckAvailabilitySample.js +[namespacescreateorupdateauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesCreateOrUpdateAuthorizationRuleSample.js +[namespacescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesCreateOrUpdateSample.js +[namespacesdeleteauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesDeleteAuthorizationRuleSample.js +[namespacesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesDeleteSample.js +[namespacesgetauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesGetAuthorizationRuleSample.js +[namespacesgetpnscredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesGetPnsCredentialsSample.js +[namespacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesGetSample.js +[namespaceslistallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListAllSample.js +[namespaceslistauthorizationrulessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListAuthorizationRulesSample.js +[namespaceslistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListKeysSample.js +[namespaceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListSample.js +[namespacesregeneratekeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesRegenerateKeysSample.js +[namespacesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesUpdateSample.js +[notificationhubschecknotificationhubavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsCheckNotificationHubAvailabilitySample.js +[notificationhubscreateorupdateauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsCreateOrUpdateAuthorizationRuleSample.js +[notificationhubscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsCreateOrUpdateSample.js +[notificationhubsdebugsendsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsDebugSendSample.js +[notificationhubsdeleteauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsDeleteAuthorizationRuleSample.js +[notificationhubsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsDeleteSample.js +[notificationhubsgetauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsGetAuthorizationRuleSample.js +[notificationhubsgetpnscredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsGetPnsCredentialsSample.js +[notificationhubsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsGetSample.js +[notificationhubslistauthorizationrulessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsListAuthorizationRulesSample.js +[notificationhubslistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsListKeysSample.js +[notificationhubslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsListSample.js +[notificationhubsregeneratekeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsRegenerateKeysSample.js +[notificationhubsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsUpdateSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/operationsListSample.js +[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsDeleteSample.js +[privateendpointconnectionsgetgroupidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsGetGroupIdSample.js +[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsGetSample.js +[privateendpointconnectionslistgroupidssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsListGroupIdsSample.js +[privateendpointconnectionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsListSample.js +[privateendpointconnectionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsUpdateSample.js +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-notificationhubs?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/notificationhubs/arm-notificationhubs/README.md diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesCheckAvailabilitySample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesCheckAvailabilitySample.js similarity index 75% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesCheckAvailabilitySample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesCheckAvailabilitySample.js index d6ab5b55ffec..5358ea9cb826 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesCheckAvailabilitySample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesCheckAvailabilitySample.js @@ -10,15 +10,17 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. * * @summary Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCheckNameAvailability.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CheckAvailability.json */ -async function nameSpaceCheckNameAvailability() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; +async function namespacesCheckAvailability() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; const parameters = { name: "sdk-Namespace-2924", }; @@ -28,4 +30,8 @@ async function nameSpaceCheckNameAvailability() { console.log(result); } -nameSpaceCheckNameAvailability().catch(console.error); +async function main() { + namespacesCheckAvailability(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesCreateOrUpdateAuthorizationRuleSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesCreateOrUpdateAuthorizationRuleSample.js similarity index 65% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesCreateOrUpdateAuthorizationRuleSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesCreateOrUpdateAuthorizationRuleSample.js index e2d5d0df18ff..8cd324030255 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesCreateOrUpdateAuthorizationRuleSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesCreateOrUpdateAuthorizationRuleSample.js @@ -10,20 +10,22 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Creates an authorization rule for a namespace * * @summary Creates an authorization rule for a namespace - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleCreate.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json */ -async function nameSpaceAuthorizationRuleCreate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesCreateOrUpdateAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "sdk-AuthRules-1788"; const parameters = { - properties: { rights: ["Listen", "Send"] }, + rights: ["Listen", "Send"], }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient(credential, subscriptionId); @@ -31,9 +33,13 @@ async function nameSpaceAuthorizationRuleCreate() { resourceGroupName, namespaceName, authorizationRuleName, - parameters + parameters, ); console.log(result); } -nameSpaceAuthorizationRuleCreate().catch(console.error); +async function main() { + namespacesCreateOrUpdateAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesCreateOrUpdateSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesCreateOrUpdateSample.js new file mode 100644 index 000000000000..2577452f9a68 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesCreateOrUpdateSample.js @@ -0,0 +1,50 @@ +/* + * 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 { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates / Updates a Notification Hub namespace. This operation is idempotent. + * + * @summary Creates / Updates a Notification Hub namespace. This operation is idempotent. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CreateOrUpdate.json + */ +async function namespacesCreateOrUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const parameters = { + location: "South Central US", + networkAcls: { + ipRules: [{ ipMask: "185.48.100.00/24", rights: ["Manage", "Send", "Listen"] }], + publicNetworkRule: { rights: ["Listen"] }, + }, + sku: { name: "Standard", tier: "Standard" }, + tags: { tag1: "value1", tag2: "value2" }, + zoneRedundancy: "Enabled", + }; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient(credential, subscriptionId); + const result = await client.namespaces.beginCreateOrUpdateAndWait( + resourceGroupName, + namespaceName, + parameters, + ); + console.log(result); +} + +async function main() { + namespacesCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesDeleteAuthorizationRuleSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesDeleteAuthorizationRuleSample.js similarity index 66% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesDeleteAuthorizationRuleSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesDeleteAuthorizationRuleSample.js index 9bd0fcd090a6..62b6e6ee861b 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesDeleteAuthorizationRuleSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesDeleteAuthorizationRuleSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Deletes a namespace authorization rule * * @summary Deletes a namespace authorization rule - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleDelete.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleDelete.json */ -async function nameSpaceAuthorizationRuleDelete() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesDeleteAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "RootManageSharedAccessKey"; const credential = new DefaultAzureCredential(); @@ -27,9 +29,13 @@ async function nameSpaceAuthorizationRuleDelete() { const result = await client.namespaces.deleteAuthorizationRule( resourceGroupName, namespaceName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -nameSpaceAuthorizationRuleDelete().catch(console.error); +async function main() { + namespacesDeleteAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesDeleteSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesDeleteSample.js similarity index 65% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesDeleteSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesDeleteSample.js index 7e68c1507676..751f445ebbbc 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesDeleteSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesDeleteSample.js @@ -10,21 +10,27 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. * * @summary Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceDelete.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Delete.json */ -async function nameSpaceDelete() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesDelete() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient(credential, subscriptionId); - const result = await client.namespaces.beginDeleteAndWait(resourceGroupName, namespaceName); + const result = await client.namespaces.delete(resourceGroupName, namespaceName); console.log(result); } -nameSpaceDelete().catch(console.error); +async function main() { + namespacesDelete(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesGetAuthorizationRuleSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesGetAuthorizationRuleSample.js similarity index 67% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesGetAuthorizationRuleSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesGetAuthorizationRuleSample.js index 58235eb0d8db..93b960ac9f21 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesGetAuthorizationRuleSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesGetAuthorizationRuleSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Gets an authorization rule for a namespace by name. * * @summary Gets an authorization rule for a namespace by name. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleGet.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleGet.json */ -async function nameSpaceAuthorizationRuleGet() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesGetAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "RootManageSharedAccessKey"; const credential = new DefaultAzureCredential(); @@ -27,9 +29,13 @@ async function nameSpaceAuthorizationRuleGet() { const result = await client.namespaces.getAuthorizationRule( resourceGroupName, namespaceName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -nameSpaceAuthorizationRuleGet().catch(console.error); +async function main() { + namespacesGetAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesGetPnsCredentialsSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesGetPnsCredentialsSample.js new file mode 100644 index 000000000000..906edef19a48 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesGetPnsCredentialsSample.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 { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists the PNS credentials associated with a namespace. + * + * @summary Lists the PNS credentials associated with a namespace. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PnsCredentialsGet.json + */ +async function namespacesGetPnsCredentials() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient(credential, subscriptionId); + const result = await client.namespaces.getPnsCredentials(resourceGroupName, namespaceName); + console.log(result); +} + +async function main() { + namespacesGetPnsCredentials(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesGetSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesGetSample.js similarity index 59% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesGetSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesGetSample.js index 24a6318816e1..d9d5cf42f560 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesGetSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesGetSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** - * This sample demonstrates how to Returns the description for the specified namespace. + * This sample demonstrates how to Returns the given namespace. * - * @summary Returns the description for the specified namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceGet.json + * @summary Returns the given namespace. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Get.json */ -async function nameSpaceGet() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesGet() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient(credential, subscriptionId); @@ -27,4 +29,8 @@ async function nameSpaceGet() { console.log(result); } -nameSpaceGet().catch(console.error); +async function main() { + namespacesGet(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListAllSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListAllSample.js similarity index 69% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListAllSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListAllSample.js index c10b13564318..f7acd5c36571 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListAllSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListAllSample.js @@ -10,15 +10,17 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** - * This sample demonstrates how to Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * This sample demonstrates how to Lists all the available namespaces within the subscription. * - * @summary Lists all the available namespaces within the subscription irrespective of the resourceGroups. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceList.json + * @summary Lists all the available namespaces within the subscription. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListBySubscription.json */ -async function nameSpaceList() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; +async function namespacesListAll() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient(credential, subscriptionId); const resArray = new Array(); @@ -28,4 +30,8 @@ async function nameSpaceList() { console.log(resArray); } -nameSpaceList().catch(console.error); +async function main() { + namespacesListAll(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListAuthorizationRulesSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListAuthorizationRulesSample.js similarity index 66% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListAuthorizationRulesSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListAuthorizationRulesSample.js index 4aeb5ddf55e5..d0a06681af66 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListAuthorizationRulesSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListAuthorizationRulesSample.js @@ -10,27 +10,33 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Gets the authorization rules for a namespace. * * @summary Gets the authorization rules for a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListAll.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleList.json */ -async function nameSpaceAuthorizationRuleListAll() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesListAuthorizationRules() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.namespaces.listAuthorizationRules( resourceGroupName, - namespaceName + namespaceName, )) { resArray.push(item); } console.log(resArray); } -nameSpaceAuthorizationRuleListAll().catch(console.error); +async function main() { + namespacesListAuthorizationRules(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListKeysSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListKeysSample.js similarity index 65% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListKeysSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListKeysSample.js index 8bc410ab830e..9b5af7ed7286 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListKeysSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListKeysSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** - * This sample demonstrates how to Gets the Primary and Secondary ConnectionStrings to the namespace + * This sample demonstrates how to Gets the Primary and Secondary ConnectionStrings to the namespace. * - * @summary Gets the Primary and Secondary ConnectionStrings to the namespace - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListKey.json + * @summary Gets the Primary and Secondary ConnectionStrings to the namespace. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleListKeys.json */ -async function nameSpaceAuthorizationRuleListKey() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesListKeys() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "RootManageSharedAccessKey"; const credential = new DefaultAzureCredential(); @@ -27,9 +29,13 @@ async function nameSpaceAuthorizationRuleListKey() { const result = await client.namespaces.listKeys( resourceGroupName, namespaceName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -nameSpaceAuthorizationRuleListKey().catch(console.error); +async function main() { + namespacesListKeys(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListSample.js similarity index 61% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListSample.js index 1857ae6dc4e6..c9cc47b625f5 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesListSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesListSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** - * This sample demonstrates how to Lists the available namespaces within a resourceGroup. + * This sample demonstrates how to Lists the available namespaces within a resource group. * - * @summary Lists the available namespaces within a resourceGroup. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceListByResourceGroup.json + * @summary Lists the available namespaces within a resource group. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListByResourceGroup.json */ -async function nameSpaceListByResourceGroup() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesList() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient(credential, subscriptionId); const resArray = new Array(); @@ -29,4 +31,8 @@ async function nameSpaceListByResourceGroup() { console.log(resArray); } -nameSpaceListByResourceGroup().catch(console.error); +async function main() { + namespacesList(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesRegenerateKeysSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesRegenerateKeysSample.js similarity index 70% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesRegenerateKeysSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesRegenerateKeysSample.js index ad652866f98e..47abd8352582 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/namespacesRegenerateKeysSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesRegenerateKeysSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule * * @summary Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleRegenrateKey.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json */ -async function nameSpaceAuthorizationRuleRegenerateKey() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesRegenerateKeys() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "RootManageSharedAccessKey"; const parameters = { policyKey: "PrimaryKey" }; @@ -29,9 +31,13 @@ async function nameSpaceAuthorizationRuleRegenerateKey() { resourceGroupName, namespaceName, authorizationRuleName, - parameters + parameters, ); console.log(result); } -nameSpaceAuthorizationRuleRegenerateKey().catch(console.error); +async function main() { + namespacesRegenerateKeys(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesUpdateSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesUpdateSample.js new file mode 100644 index 000000000000..1a1ae58d7457 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/namespacesUpdateSample.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 { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Patches the existing namespace. + * + * @summary Patches the existing namespace. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Update.json + */ +async function namespacesUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const parameters = { + properties: { + pnsCredentials: { + gcmCredential: { + gcmEndpoint: "https://fcm.googleapis.com/fcm/send", + googleApiKey: "#############################", + }, + }, + }, + sku: { name: "Free" }, + tags: { tag1: "value3" }, + }; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient(credential, subscriptionId); + const result = await client.namespaces.update(resourceGroupName, namespaceName, parameters); + console.log(result); +} + +async function main() { + namespacesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsCheckNotificationHubAvailabilitySample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsCheckNotificationHubAvailabilitySample.js similarity index 67% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsCheckNotificationHubAvailabilitySample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsCheckNotificationHubAvailabilitySample.js index 467e28152db4..b7cc629be0f7 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsCheckNotificationHubAvailabilitySample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsCheckNotificationHubAvailabilitySample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Checks the availability of the given notificationHub in a namespace. * * @summary Checks the availability of the given notificationHub in a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCheckNameAvailability.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CheckAvailability.json */ -async function notificationHubCheckNameAvailability() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsCheckNotificationHubAvailability() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "locp-newns"; const parameters = { name: "sdktest", @@ -30,9 +32,13 @@ async function notificationHubCheckNameAvailability() { const result = await client.notificationHubs.checkNotificationHubAvailability( resourceGroupName, namespaceName, - parameters + parameters, ); console.log(result); } -notificationHubCheckNameAvailability().catch(console.error); +async function main() { + notificationHubsCheckNotificationHubAvailability(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsCreateOrUpdateAuthorizationRuleSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsCreateOrUpdateAuthorizationRuleSample.js similarity index 64% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsCreateOrUpdateAuthorizationRuleSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsCreateOrUpdateAuthorizationRuleSample.js index fd1ef0e05f84..5792daa3fe93 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsCreateOrUpdateAuthorizationRuleSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsCreateOrUpdateAuthorizationRuleSample.js @@ -10,21 +10,23 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Creates/Updates an authorization rule for a NotificationHub * * @summary Creates/Updates an authorization rule for a NotificationHub - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleCreate.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json */ -async function notificationHubAuthorizationRuleCreate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsCreateOrUpdateAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; - const authorizationRuleName = "DefaultListenSharedAccessSignature"; + const authorizationRuleName = "MyManageSharedAccessKey"; const parameters = { - properties: { rights: ["Listen", "Send"] }, + rights: ["Listen", "Send"], }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient(credential, subscriptionId); @@ -33,9 +35,13 @@ async function notificationHubAuthorizationRuleCreate() { namespaceName, notificationHubName, authorizationRuleName, - parameters + parameters, ); console.log(result); } -notificationHubAuthorizationRuleCreate().catch(console.error); +async function main() { + notificationHubsCreateOrUpdateAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsCreateOrUpdateSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsCreateOrUpdateSample.js similarity index 65% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsCreateOrUpdateSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsCreateOrUpdateSample.js index 7729bf0c932c..b2491281a81b 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsCreateOrUpdateSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsCreateOrUpdateSample.js @@ -10,30 +10,34 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Creates/Update a NotificationHub in a namespace. * * @summary Creates/Update a NotificationHub in a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCreate.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CreateOrUpdate.json */ -async function notificationHubCreate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsCreateOrUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; - const parameters = { - location: "eastus", - }; + const parameters = { location: "eastus" }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient(credential, subscriptionId); const result = await client.notificationHubs.createOrUpdate( resourceGroupName, namespaceName, notificationHubName, - parameters + parameters, ); console.log(result); } -notificationHubCreate().catch(console.error); +async function main() { + notificationHubsCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsDebugSendSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsDebugSendSample.js similarity index 60% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsDebugSendSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsDebugSendSample.js index 0ce0667c86cd..991c9ec1a2f7 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsDebugSendSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsDebugSendSample.js @@ -10,29 +10,32 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** - * This sample demonstrates how to test send a push notification + * This sample demonstrates how to Test send a push notification. * - * @summary test send a push notification - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDebugSend.json + * @summary Test send a push notification. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/DebugSend.json */ -async function debugsend() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsDebugSend() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; - const parameters = { data: { message: "Hello" } }; - const options = { parameters }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient(credential, subscriptionId); const result = await client.notificationHubs.debugSend( resourceGroupName, namespaceName, notificationHubName, - options ); console.log(result); } -debugsend().catch(console.error); +async function main() { + notificationHubsDebugSend(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsDeleteAuthorizationRuleSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsDeleteAuthorizationRuleSample.js similarity index 67% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsDeleteAuthorizationRuleSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsDeleteAuthorizationRuleSample.js index f57e0b0cae77..77ab11515462 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsDeleteAuthorizationRuleSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsDeleteAuthorizationRuleSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Deletes a notificationHub authorization rule * * @summary Deletes a notificationHub authorization rule - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleDelete.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json */ -async function notificationHubAuthorizationRuleDelete() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsDeleteAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const authorizationRuleName = "DefaultListenSharedAccessSignature"; @@ -29,9 +31,13 @@ async function notificationHubAuthorizationRuleDelete() { resourceGroupName, namespaceName, notificationHubName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -notificationHubAuthorizationRuleDelete().catch(console.error); +async function main() { + notificationHubsDeleteAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsDeleteSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsDeleteSample.js similarity index 68% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsDeleteSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsDeleteSample.js index b6bacfa3111c..7f0b31d2299d 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsDeleteSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsDeleteSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Deletes a notification hub associated with a namespace. * * @summary Deletes a notification hub associated with a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDelete.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Delete.json */ -async function notificationHubDelete() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsDelete() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const credential = new DefaultAzureCredential(); @@ -27,9 +29,13 @@ async function notificationHubDelete() { const result = await client.notificationHubs.delete( resourceGroupName, namespaceName, - notificationHubName + notificationHubName, ); console.log(result); } -notificationHubDelete().catch(console.error); +async function main() { + notificationHubsDelete(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsGetAuthorizationRuleSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsGetAuthorizationRuleSample.js similarity index 68% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsGetAuthorizationRuleSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsGetAuthorizationRuleSample.js index 0d33af1ea648..d0890aace51b 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsGetAuthorizationRuleSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsGetAuthorizationRuleSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Gets an authorization rule for a NotificationHub by name. * * @summary Gets an authorization rule for a NotificationHub by name. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleGet.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json */ -async function notificationHubAuthorizationRuleGet() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsGetAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const authorizationRuleName = "DefaultListenSharedAccessSignature"; @@ -29,9 +31,13 @@ async function notificationHubAuthorizationRuleGet() { resourceGroupName, namespaceName, notificationHubName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -notificationHubAuthorizationRuleGet().catch(console.error); +async function main() { + notificationHubsGetAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsGetPnsCredentialsSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsGetPnsCredentialsSample.js similarity index 64% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsGetPnsCredentialsSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsGetPnsCredentialsSample.js index 4f2a74251b66..187d2236523d 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsGetPnsCredentialsSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsGetPnsCredentialsSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** - * This sample demonstrates how to Lists the PNS Credentials associated with a notification hub . + * This sample demonstrates how to Lists the PNS Credentials associated with a notification hub. * - * @summary Lists the PNS Credentials associated with a notification hub . - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPnsCredentials.json + * @summary Lists the PNS Credentials associated with a notification hub. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/PnsCredentialsGet.json */ -async function notificationHubPnsCredentials() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsGetPnsCredentials() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const credential = new DefaultAzureCredential(); @@ -27,9 +29,13 @@ async function notificationHubPnsCredentials() { const result = await client.notificationHubs.getPnsCredentials( resourceGroupName, namespaceName, - notificationHubName + notificationHubName, ); console.log(result); } -notificationHubPnsCredentials().catch(console.error); +async function main() { + notificationHubsGetPnsCredentials(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsGetSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsGetSample.js similarity index 60% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsGetSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsGetSample.js index cb2f77efa195..989b9bb8e148 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsGetSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsGetSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** - * This sample demonstrates how to Lists the notification hubs associated with a namespace. + * This sample demonstrates how to Gets the notification hub. * - * @summary Lists the notification hubs associated with a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubGet.json + * @summary Gets the notification hub. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Get.json */ -async function notificationHubGet() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsGet() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const credential = new DefaultAzureCredential(); @@ -27,9 +29,13 @@ async function notificationHubGet() { const result = await client.notificationHubs.get( resourceGroupName, namespaceName, - notificationHubName + notificationHubName, ); console.log(result); } -notificationHubGet().catch(console.error); +async function main() { + notificationHubsGet(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsListAuthorizationRulesSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsListAuthorizationRulesSample.js similarity index 67% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsListAuthorizationRulesSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsListAuthorizationRulesSample.js index 8782bbc913cd..34a4ab2a0515 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsListAuthorizationRulesSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsListAuthorizationRulesSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Gets the authorization rules for a NotificationHub. * * @summary Gets the authorization rules for a NotificationHub. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListAll.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleList.json */ -async function notificationHubAuthorizationRuleListAll() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsListAuthorizationRules() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const credential = new DefaultAzureCredential(); @@ -28,11 +30,15 @@ async function notificationHubAuthorizationRuleListAll() { for await (let item of client.notificationHubs.listAuthorizationRules( resourceGroupName, namespaceName, - notificationHubName + notificationHubName, )) { resArray.push(item); } console.log(resArray); } -notificationHubAuthorizationRuleListAll().catch(console.error); +async function main() { + notificationHubsListAuthorizationRules(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsListKeysSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsListKeysSample.js similarity index 69% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsListKeysSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsListKeysSample.js index a4085c7bed58..61dda40911f8 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsListKeysSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsListKeysSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Gets the Primary and Secondary ConnectionStrings to the NotificationHub * * @summary Gets the Primary and Secondary ConnectionStrings to the NotificationHub - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListKey.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleListKeys.json */ -async function notificationHubAuthorizationRuleListKey() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsListKeys() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const authorizationRuleName = "sdk-AuthRules-5800"; @@ -29,9 +31,13 @@ async function notificationHubAuthorizationRuleListKey() { resourceGroupName, namespaceName, notificationHubName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -notificationHubAuthorizationRuleListKey().catch(console.error); +async function main() { + notificationHubsListKeys(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsListSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsListSample.js similarity index 69% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsListSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsListSample.js index 566d296972cb..9f20191c9d24 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsListSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsListSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Lists the notification hubs associated with a namespace. * * @summary Lists the notification hubs associated with a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubListByNameSpace.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/List.json */ -async function notificationHubListByNameSpace() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsList() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient(credential, subscriptionId); @@ -30,4 +32,8 @@ async function notificationHubListByNameSpace() { console.log(resArray); } -notificationHubListByNameSpace().catch(console.error); +async function main() { + notificationHubsList(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsRegenerateKeysSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsRegenerateKeysSample.js similarity index 70% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsRegenerateKeysSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsRegenerateKeysSample.js index c67301146335..ca00f744ef43 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsRegenerateKeysSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsRegenerateKeysSample.js @@ -10,16 +10,18 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule * * @summary Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleRegenrateKey.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleRegenerateKey.json */ -async function notificationHubAuthorizationRuleRegenrateKey() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsRegenerateKeys() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const authorizationRuleName = "DefaultListenSharedAccessSignature"; @@ -31,9 +33,13 @@ async function notificationHubAuthorizationRuleRegenrateKey() { namespaceName, notificationHubName, authorizationRuleName, - parameters + parameters, ); console.log(result); } -notificationHubAuthorizationRuleRegenrateKey().catch(console.error); +async function main() { + notificationHubsRegenerateKeys(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsPatchSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsUpdateSample.js similarity index 56% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsPatchSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsUpdateSample.js index 45e39714e338..7850fe260b28 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/notificationHubsPatchSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/notificationHubsUpdateSample.js @@ -10,29 +10,40 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** * This sample demonstrates how to Patch a NotificationHub in a namespace. * * @summary Patch a NotificationHub in a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Update.json */ -async function notificationHubPatch() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "sdkresourceGroup"; +async function notificationHubsUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "sdkresourceGroup"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "sdk-notificationHubs-8708"; - const parameters = {}; - const options = { parameters }; + const parameters = { + gcmCredential: { + gcmEndpoint: "https://fcm.googleapis.com/fcm/send", + googleApiKey: "###################################", + }, + registrationTtl: "10675199.02:48:05.4775807", + }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient(credential, subscriptionId); - const result = await client.notificationHubs.patch( + const result = await client.notificationHubs.update( resourceGroupName, namespaceName, notificationHubName, - options + parameters, ); console.log(result); } -notificationHubPatch().catch(console.error); +async function main() { + notificationHubsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/operationsListSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/operationsListSample.js similarity index 64% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/operationsListSample.js rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/operationsListSample.js index 54284a5b5111..c2016ecbf5c3 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/operationsListSample.js +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/operationsListSample.js @@ -10,15 +10,17 @@ // Licensed under the MIT License. const { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); /** - * This sample demonstrates how to Lists all of the available NotificationHubs REST API operations. + * This sample demonstrates how to Lists all available Notification Hubs operations. * - * @summary Lists all of the available NotificationHubs REST API operations. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NHOperationsList.json + * @summary Lists all available Notification Hubs operations. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NHOperationsList.json */ async function operationsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient(credential, subscriptionId); const resArray = new Array(); @@ -28,4 +30,8 @@ async function operationsList() { console.log(resArray); } -operationsList().catch(console.error); +async function main() { + operationsList(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/package.json b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/package.json similarity index 80% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/package.json rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/package.json index 52d997a5c997..77eaa7d94e9f 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/package.json +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/package.json @@ -1,8 +1,8 @@ { - "name": "@azure-samples/arm-notificationhubs-js", + "name": "@azure-samples/arm-notificationhubs-js-beta", "private": true, "version": "1.0.0", - "description": " client library samples for JavaScript", + "description": " client library samples for JavaScript (Beta)", "engines": { "node": ">=18.0.0" }, @@ -25,7 +25,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/notificationhubs/arm-notificationhubs", "dependencies": { - "@azure/arm-notificationhubs": "latest", + "@azure/arm-notificationhubs": "next", "dotenv": "latest", "@azure/identity": "^4.0.1" } diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsDeleteSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsDeleteSample.js new file mode 100644 index 000000000000..d9b714df1437 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsDeleteSample.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 { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes the Private Endpoint Connection. +This is a public API that can be called directly by Notification Hubs users. + * + * @summary Deletes the Private Endpoint Connection. +This is a public API that can be called directly by Notification Hubs users. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json + */ +async function privateEndpointConnectionsDelete() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const privateEndpointConnectionName = "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.beginDeleteAndWait( + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsDelete(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsGetGroupIdSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsGetGroupIdSample.js new file mode 100644 index 000000000000..ae6df2ea8093 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsGetGroupIdSample.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 { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. +That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + * + * @summary Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. +That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceGet.json + */ +async function privateEndpointConnectionsGetGroupId() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const subResourceName = "namespace"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.getGroupId( + resourceGroupName, + namespaceName, + subResourceName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsGetGroupId(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsGetSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsGetSample.js new file mode 100644 index 000000000000..0336c72555c8 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsGetSample.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 { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Returns a Private Endpoint Connection with a given name. +This is a public API that can be called directly by Notification Hubs users. + * + * @summary Returns a Private Endpoint Connection with a given name. +This is a public API that can be called directly by Notification Hubs users. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json + */ +async function privateEndpointConnectionsGet() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const privateEndpointConnectionName = "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.get( + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsGet(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsListGroupIdsSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsListGroupIdsSample.js new file mode 100644 index 000000000000..64e4e0f4d585 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsListGroupIdsSample.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 { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. +That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + * + * @summary Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. +That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceList.json + */ +async function privateEndpointConnectionsListGroupIds() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.privateEndpointConnections.listGroupIds( + resourceGroupName, + namespaceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + privateEndpointConnectionsListGroupIds(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsListSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsListSample.js new file mode 100644 index 000000000000..419d733472c8 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsListSample.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 { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace. +This is a public API that can be called directly by Notification Hubs users. + * + * @summary Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace. +This is a public API that can be called directly by Notification Hubs users. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json + */ +async function privateEndpointConnectionsList() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.privateEndpointConnections.list(resourceGroupName, namespaceName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + privateEndpointConnectionsList(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsUpdateSample.js b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsUpdateSample.js new file mode 100644 index 000000000000..e6ac3aeced4c --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/privateEndpointConnectionsUpdateSample.js @@ -0,0 +1,50 @@ +/* + * 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 { NotificationHubsManagementClient } = require("@azure/arm-notificationhubs"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Approves or rejects Private Endpoint Connection. +This is a public API that can be called directly by Notification Hubs users. + * + * @summary Approves or rejects Private Endpoint Connection. +This is a public API that can be called directly by Notification Hubs users. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionUpdate.json + */ +async function privateEndpointConnectionsUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const privateEndpointConnectionName = "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e"; + const parameters = { + properties: { + privateEndpoint: {}, + privateLinkServiceConnectionState: { status: "Approved" }, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.beginUpdateAndWait( + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + parameters, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/sample.env b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/sample.env similarity index 100% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/javascript/sample.env rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/javascript/sample.env diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/README.md b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/README.md new file mode 100644 index 000000000000..2b9bbedfc3b8 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/README.md @@ -0,0 +1,131 @@ +# client library samples for TypeScript (Beta) + +These sample programs show how to use the TypeScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [namespacesCheckAvailabilitySample.ts][namespacescheckavailabilitysample] | Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CheckAvailability.json | +| [namespacesCreateOrUpdateAuthorizationRuleSample.ts][namespacescreateorupdateauthorizationrulesample] | Creates an authorization rule for a namespace x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json | +| [namespacesCreateOrUpdateSample.ts][namespacescreateorupdatesample] | Creates / Updates a Notification Hub namespace. This operation is idempotent. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CreateOrUpdate.json | +| [namespacesDeleteAuthorizationRuleSample.ts][namespacesdeleteauthorizationrulesample] | Deletes a namespace authorization rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleDelete.json | +| [namespacesDeleteSample.ts][namespacesdeletesample] | Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Delete.json | +| [namespacesGetAuthorizationRuleSample.ts][namespacesgetauthorizationrulesample] | Gets an authorization rule for a namespace by name. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleGet.json | +| [namespacesGetPnsCredentialsSample.ts][namespacesgetpnscredentialssample] | Lists the PNS credentials associated with a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PnsCredentialsGet.json | +| [namespacesGetSample.ts][namespacesgetsample] | Returns the given namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Get.json | +| [namespacesListAllSample.ts][namespaceslistallsample] | Lists all the available namespaces within the subscription. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListBySubscription.json | +| [namespacesListAuthorizationRulesSample.ts][namespaceslistauthorizationrulessample] | Gets the authorization rules for a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleList.json | +| [namespacesListKeysSample.ts][namespaceslistkeyssample] | Gets the Primary and Secondary ConnectionStrings to the namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleListKeys.json | +| [namespacesListSample.ts][namespaceslistsample] | Lists the available namespaces within a resource group. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListByResourceGroup.json | +| [namespacesRegenerateKeysSample.ts][namespacesregeneratekeyssample] | Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json | +| [namespacesUpdateSample.ts][namespacesupdatesample] | Patches the existing namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Update.json | +| [notificationHubsCheckNotificationHubAvailabilitySample.ts][notificationhubschecknotificationhubavailabilitysample] | Checks the availability of the given notificationHub in a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CheckAvailability.json | +| [notificationHubsCreateOrUpdateAuthorizationRuleSample.ts][notificationhubscreateorupdateauthorizationrulesample] | Creates/Updates an authorization rule for a NotificationHub x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json | +| [notificationHubsCreateOrUpdateSample.ts][notificationhubscreateorupdatesample] | Creates/Update a NotificationHub in a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CreateOrUpdate.json | +| [notificationHubsDebugSendSample.ts][notificationhubsdebugsendsample] | Test send a push notification. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/DebugSend.json | +| [notificationHubsDeleteAuthorizationRuleSample.ts][notificationhubsdeleteauthorizationrulesample] | Deletes a notificationHub authorization rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json | +| [notificationHubsDeleteSample.ts][notificationhubsdeletesample] | Deletes a notification hub associated with a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Delete.json | +| [notificationHubsGetAuthorizationRuleSample.ts][notificationhubsgetauthorizationrulesample] | Gets an authorization rule for a NotificationHub by name. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json | +| [notificationHubsGetPnsCredentialsSample.ts][notificationhubsgetpnscredentialssample] | Lists the PNS Credentials associated with a notification hub. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/PnsCredentialsGet.json | +| [notificationHubsGetSample.ts][notificationhubsgetsample] | Gets the notification hub. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Get.json | +| [notificationHubsListAuthorizationRulesSample.ts][notificationhubslistauthorizationrulessample] | Gets the authorization rules for a NotificationHub. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleList.json | +| [notificationHubsListKeysSample.ts][notificationhubslistkeyssample] | Gets the Primary and Secondary ConnectionStrings to the NotificationHub x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleListKeys.json | +| [notificationHubsListSample.ts][notificationhubslistsample] | Lists the notification hubs associated with a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/List.json | +| [notificationHubsRegenerateKeysSample.ts][notificationhubsregeneratekeyssample] | Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleRegenerateKey.json | +| [notificationHubsUpdateSample.ts][notificationhubsupdatesample] | Patch a NotificationHub in a namespace. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Update.json | +| [operationsListSample.ts][operationslistsample] | Lists all available Notification Hubs operations. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NHOperationsList.json | +| [privateEndpointConnectionsDeleteSample.ts][privateendpointconnectionsdeletesample] | Deletes the Private Endpoint Connection. This is a public API that can be called directly by Notification Hubs users. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json | +| [privateEndpointConnectionsGetGroupIdSample.ts][privateendpointconnectionsgetgroupidsample] | Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceGet.json | +| [privateEndpointConnectionsGetSample.ts][privateendpointconnectionsgetsample] | Returns a Private Endpoint Connection with a given name. This is a public API that can be called directly by Notification Hubs users. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json | +| [privateEndpointConnectionsListGroupIdsSample.ts][privateendpointconnectionslistgroupidssample] | Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceList.json | +| [privateEndpointConnectionsListSample.ts][privateendpointconnectionslistsample] | Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace. This is a public API that can be called directly by Notification Hubs users. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json | +| [privateEndpointConnectionsUpdateSample.ts][privateendpointconnectionsupdatesample] | Approves or rejects Private Endpoint Connection. This is a public API that can be called directly by Notification Hubs users. x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionUpdate.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +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: + +```bash +npm install -g typescript +``` + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Compile the samples: + +```bash +npm run build +``` + +3. 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. + +4. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node dist/namespacesCheckAvailabilitySample.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 NOTIFICATIONHUBS_SUBSCRIPTION_ID="" node dist/namespacesCheckAvailabilitySample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[namespacescheckavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesCheckAvailabilitySample.ts +[namespacescreateorupdateauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesCreateOrUpdateAuthorizationRuleSample.ts +[namespacescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesCreateOrUpdateSample.ts +[namespacesdeleteauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesDeleteAuthorizationRuleSample.ts +[namespacesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesDeleteSample.ts +[namespacesgetauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesGetAuthorizationRuleSample.ts +[namespacesgetpnscredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesGetPnsCredentialsSample.ts +[namespacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesGetSample.ts +[namespaceslistallsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListAllSample.ts +[namespaceslistauthorizationrulessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListAuthorizationRulesSample.ts +[namespaceslistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListKeysSample.ts +[namespaceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListSample.ts +[namespacesregeneratekeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesRegenerateKeysSample.ts +[namespacesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesUpdateSample.ts +[notificationhubschecknotificationhubavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsCheckNotificationHubAvailabilitySample.ts +[notificationhubscreateorupdateauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsCreateOrUpdateAuthorizationRuleSample.ts +[notificationhubscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsCreateOrUpdateSample.ts +[notificationhubsdebugsendsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsDebugSendSample.ts +[notificationhubsdeleteauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsDeleteAuthorizationRuleSample.ts +[notificationhubsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsDeleteSample.ts +[notificationhubsgetauthorizationrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsGetAuthorizationRuleSample.ts +[notificationhubsgetpnscredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsGetPnsCredentialsSample.ts +[notificationhubsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsGetSample.ts +[notificationhubslistauthorizationrulessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsListAuthorizationRulesSample.ts +[notificationhubslistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsListKeysSample.ts +[notificationhubslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsListSample.ts +[notificationhubsregeneratekeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsRegenerateKeysSample.ts +[notificationhubsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsUpdateSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/operationsListSample.ts +[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts +[privateendpointconnectionsgetgroupidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsGetGroupIdSample.ts +[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsGetSample.ts +[privateendpointconnectionslistgroupidssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsListGroupIdsSample.ts +[privateendpointconnectionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsListSample.ts +[privateendpointconnectionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsUpdateSample.ts +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-notificationhubs?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/notificationhubs/arm-notificationhubs/README.md +[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/package.json b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/package.json similarity index 83% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/package.json rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/package.json index a710a35c7d7f..7e8dc89fd838 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/package.json +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/package.json @@ -1,8 +1,8 @@ { - "name": "@azure-samples/arm-notificationhubs-ts", + "name": "@azure-samples/arm-notificationhubs-ts-beta", "private": true, "version": "1.0.0", - "description": " client library samples for TypeScript", + "description": " client library samples for TypeScript (Beta)", "engines": { "node": ">=18.0.0" }, @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/notificationhubs/arm-notificationhubs", "dependencies": { - "@azure/arm-notificationhubs": "latest", + "@azure/arm-notificationhubs": "next", "dotenv": "latest", "@azure/identity": "^4.0.1" }, diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/sample.env b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/sample.env similarity index 100% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/sample.env rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/sample.env diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesCheckAvailabilitySample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesCheckAvailabilitySample.ts similarity index 70% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesCheckAvailabilitySample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesCheckAvailabilitySample.ts index 4fdc59e7df8f..f80a2b1de710 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesCheckAvailabilitySample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesCheckAvailabilitySample.ts @@ -10,28 +10,37 @@ // Licensed under the MIT License. import { CheckAvailabilityParameters, - NotificationHubsManagementClient + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. * * @summary Checks the availability of the given service namespace across all Azure subscriptions. This is useful because the domain name is created based on the service namespace name. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceCheckNameAvailability.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CheckAvailability.json */ -async function nameSpaceCheckNameAvailability() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; +async function namespacesCheckAvailability() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; const parameters: CheckAvailabilityParameters = { - name: "sdk-Namespace-2924" + name: "sdk-Namespace-2924", }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.checkAvailability(parameters); console.log(result); } -nameSpaceCheckNameAvailability().catch(console.error); +async function main() { + namespacesCheckAvailability(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesCreateOrUpdateAuthorizationRuleSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesCreateOrUpdateAuthorizationRuleSample.ts similarity index 57% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesCreateOrUpdateAuthorizationRuleSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesCreateOrUpdateAuthorizationRuleSample.ts index 7ccb8e032e38..809cc9376664 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesCreateOrUpdateAuthorizationRuleSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesCreateOrUpdateAuthorizationRuleSample.ts @@ -9,37 +9,47 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - SharedAccessAuthorizationRuleCreateOrUpdateParameters, - NotificationHubsManagementClient + SharedAccessAuthorizationRuleResource, + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Creates an authorization rule for a namespace * * @summary Creates an authorization rule for a namespace - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleCreate.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleCreateOrUpdate.json */ -async function nameSpaceAuthorizationRuleCreate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesCreateOrUpdateAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "sdk-AuthRules-1788"; - const parameters: SharedAccessAuthorizationRuleCreateOrUpdateParameters = { - properties: { rights: ["Listen", "Send"] } + const parameters: SharedAccessAuthorizationRuleResource = { + rights: ["Listen", "Send"], }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.createOrUpdateAuthorizationRule( resourceGroupName, namespaceName, authorizationRuleName, - parameters + parameters, ); console.log(result); } -nameSpaceAuthorizationRuleCreate().catch(console.error); +async function main() { + namespacesCreateOrUpdateAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesCreateOrUpdateSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesCreateOrUpdateSample.ts new file mode 100644 index 000000000000..022d1f5cf9ab --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesCreateOrUpdateSample.ts @@ -0,0 +1,62 @@ +/* + * 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 { + NamespaceResource, + NotificationHubsManagementClient, +} from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates / Updates a Notification Hub namespace. This operation is idempotent. + * + * @summary Creates / Updates a Notification Hub namespace. This operation is idempotent. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/CreateOrUpdate.json + */ +async function namespacesCreateOrUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const parameters: NamespaceResource = { + location: "South Central US", + networkAcls: { + ipRules: [ + { ipMask: "185.48.100.00/24", rights: ["Manage", "Send", "Listen"] }, + ], + publicNetworkRule: { rights: ["Listen"] }, + }, + sku: { name: "Standard", tier: "Standard" }, + tags: { tag1: "value1", tag2: "value2" }, + zoneRedundancy: "Enabled", + }; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.namespaces.beginCreateOrUpdateAndWait( + resourceGroupName, + namespaceName, + parameters, + ); + console.log(result); +} + +async function main() { + namespacesCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesDeleteAuthorizationRuleSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesDeleteAuthorizationRuleSample.ts similarity index 63% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesDeleteAuthorizationRuleSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesDeleteAuthorizationRuleSample.ts index 39fe7bbe2a4c..390c9e067c92 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesDeleteAuthorizationRuleSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesDeleteAuthorizationRuleSample.ts @@ -10,29 +10,39 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Deletes a namespace authorization rule * * @summary Deletes a namespace authorization rule - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleDelete.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleDelete.json */ -async function nameSpaceAuthorizationRuleDelete() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesDeleteAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "RootManageSharedAccessKey"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.deleteAuthorizationRule( resourceGroupName, namespaceName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -nameSpaceAuthorizationRuleDelete().catch(console.error); +async function main() { + namespacesDeleteAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesDeleteSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesDeleteSample.ts similarity index 64% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesDeleteSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesDeleteSample.ts index 41788af22db6..485771ee8b89 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesDeleteSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesDeleteSample.ts @@ -10,27 +10,37 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. * * @summary Deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceDelete.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Delete.json */ -async function nameSpaceDelete() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesDelete() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); - const result = await client.namespaces.beginDeleteAndWait( + const result = await client.namespaces.delete( resourceGroupName, - namespaceName + namespaceName, ); console.log(result); } -nameSpaceDelete().catch(console.error); +async function main() { + namespacesDelete(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesGetAuthorizationRuleSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesGetAuthorizationRuleSample.ts similarity index 64% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesGetAuthorizationRuleSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesGetAuthorizationRuleSample.ts index e797a3c4035c..c3e9430339be 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesGetAuthorizationRuleSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesGetAuthorizationRuleSample.ts @@ -10,29 +10,39 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Gets an authorization rule for a namespace by name. * * @summary Gets an authorization rule for a namespace by name. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleGet.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleGet.json */ -async function nameSpaceAuthorizationRuleGet() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesGetAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "RootManageSharedAccessKey"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.getAuthorizationRule( resourceGroupName, namespaceName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -nameSpaceAuthorizationRuleGet().catch(console.error); +async function main() { + namespacesGetAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesGetPnsCredentialsSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesGetPnsCredentialsSample.ts new file mode 100644 index 000000000000..8af1433220ab --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesGetPnsCredentialsSample.ts @@ -0,0 +1,46 @@ +/* + * 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 { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists the PNS credentials associated with a namespace. + * + * @summary Lists the PNS credentials associated with a namespace. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PnsCredentialsGet.json + */ +async function namespacesGetPnsCredentials() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.namespaces.getPnsCredentials( + resourceGroupName, + namespaceName, + ); + console.log(result); +} + +async function main() { + namespacesGetPnsCredentials(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesGetSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesGetSample.ts similarity index 57% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesGetSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesGetSample.ts index 34fcd43f851f..852956365db2 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesGetSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesGetSample.ts @@ -10,24 +10,34 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Returns the description for the specified namespace. + * This sample demonstrates how to Returns the given namespace. * - * @summary Returns the description for the specified namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceGet.json + * @summary Returns the given namespace. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Get.json */ -async function nameSpaceGet() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesGet() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.get(resourceGroupName, namespaceName); console.log(result); } -nameSpaceGet().catch(console.error); +async function main() { + namespacesGet(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListAllSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListAllSample.ts similarity index 66% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListAllSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListAllSample.ts index 87072d3cc3bf..a53770aea01d 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListAllSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListAllSample.ts @@ -10,19 +10,24 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * This sample demonstrates how to Lists all the available namespaces within the subscription. * - * @summary Lists all the available namespaces within the subscription irrespective of the resourceGroups. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceList.json + * @summary Lists all the available namespaces within the subscription. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListBySubscription.json */ -async function nameSpaceList() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; +async function namespacesListAll() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.namespaces.listAll()) { @@ -31,4 +36,8 @@ async function nameSpaceList() { console.log(resArray); } -nameSpaceList().catch(console.error); +async function main() { + namespacesListAll(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListAuthorizationRulesSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListAuthorizationRulesSample.ts similarity index 64% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListAuthorizationRulesSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListAuthorizationRulesSample.ts index b1c7949e3dd0..47accda124b3 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListAuthorizationRulesSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListAuthorizationRulesSample.ts @@ -10,30 +10,40 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Gets the authorization rules for a namespace. * * @summary Gets the authorization rules for a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListAll.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleList.json */ -async function nameSpaceAuthorizationRuleListAll() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesListAuthorizationRules() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.namespaces.listAuthorizationRules( resourceGroupName, - namespaceName + namespaceName, )) { resArray.push(item); } console.log(resArray); } -nameSpaceAuthorizationRuleListAll().catch(console.error); +async function main() { + namespacesListAuthorizationRules(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListKeysSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListKeysSample.ts similarity index 62% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListKeysSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListKeysSample.ts index 584d1fd12b95..59d6c04be29b 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListKeysSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListKeysSample.ts @@ -10,29 +10,39 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Gets the Primary and Secondary ConnectionStrings to the namespace + * This sample demonstrates how to Gets the Primary and Secondary ConnectionStrings to the namespace. * - * @summary Gets the Primary and Secondary ConnectionStrings to the namespace - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleListKey.json + * @summary Gets the Primary and Secondary ConnectionStrings to the namespace. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleListKeys.json */ -async function nameSpaceAuthorizationRuleListKey() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesListKeys() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "RootManageSharedAccessKey"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.listKeys( resourceGroupName, namespaceName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -nameSpaceAuthorizationRuleListKey().catch(console.error); +async function main() { + namespacesListKeys(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListSample.ts similarity index 59% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListSample.ts index 9b278248c444..2d6f55d5f0ad 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesListSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesListSample.ts @@ -10,20 +10,26 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Lists the available namespaces within a resourceGroup. + * This sample demonstrates how to Lists the available namespaces within a resource group. * - * @summary Lists the available namespaces within a resourceGroup. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceListByResourceGroup.json + * @summary Lists the available namespaces within a resource group. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/ListByResourceGroup.json */ -async function nameSpaceListByResourceGroup() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesList() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.namespaces.list(resourceGroupName)) { @@ -32,4 +38,8 @@ async function nameSpaceListByResourceGroup() { console.log(resArray); } -nameSpaceListByResourceGroup().catch(console.error); +async function main() { + namespacesList(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesRegenerateKeysSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesRegenerateKeysSample.ts similarity index 61% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesRegenerateKeysSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesRegenerateKeysSample.ts index 5fa2210c7c3b..4e6c1aeb758a 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/namespacesRegenerateKeysSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesRegenerateKeysSample.ts @@ -9,35 +9,45 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - PolicykeyResource, - NotificationHubsManagementClient + PolicyKeyResource, + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule * * @summary Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/Namespaces/NHNameSpaceAuthorizationRuleRegenrateKey.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/AuthorizationRuleRegenerateKey.json */ -async function nameSpaceAuthorizationRuleRegenerateKey() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function namespacesRegenerateKeys() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const authorizationRuleName = "RootManageSharedAccessKey"; - const parameters: PolicykeyResource = { policyKey: "PrimaryKey" }; + const parameters: PolicyKeyResource = { policyKey: "PrimaryKey" }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.namespaces.regenerateKeys( resourceGroupName, namespaceName, authorizationRuleName, - parameters + parameters, ); console.log(result); } -nameSpaceAuthorizationRuleRegenerateKey().catch(console.error); +async function main() { + namespacesRegenerateKeys(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesUpdateSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesUpdateSample.ts new file mode 100644 index 000000000000..f5600482160e --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/namespacesUpdateSample.ts @@ -0,0 +1,62 @@ +/* + * 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 { + NamespacePatchParameters, + NotificationHubsManagementClient, +} from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Patches the existing namespace. + * + * @summary Patches the existing namespace. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/Update.json + */ +async function namespacesUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const parameters: NamespacePatchParameters = { + properties: { + pnsCredentials: { + gcmCredential: { + gcmEndpoint: "https://fcm.googleapis.com/fcm/send", + googleApiKey: "#############################", + }, + }, + }, + sku: { name: "Free" }, + tags: { tag1: "value3" }, + }; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.namespaces.update( + resourceGroupName, + namespaceName, + parameters, + ); + console.log(result); +} + +async function main() { + namespacesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsCheckNotificationHubAvailabilitySample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsCheckNotificationHubAvailabilitySample.ts similarity index 62% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsCheckNotificationHubAvailabilitySample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsCheckNotificationHubAvailabilitySample.ts index 5c141d2210b3..103695f912b6 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsCheckNotificationHubAvailabilitySample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsCheckNotificationHubAvailabilitySample.ts @@ -10,35 +10,45 @@ // Licensed under the MIT License. import { CheckAvailabilityParameters, - NotificationHubsManagementClient + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Checks the availability of the given notificationHub in a namespace. * * @summary Checks the availability of the given notificationHub in a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCheckNameAvailability.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CheckAvailability.json */ -async function notificationHubCheckNameAvailability() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsCheckNotificationHubAvailability() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "locp-newns"; const parameters: CheckAvailabilityParameters = { name: "sdktest", - location: "West Europe" + location: "West Europe", }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.checkNotificationHubAvailability( resourceGroupName, namespaceName, - parameters + parameters, ); console.log(result); } -notificationHubCheckNameAvailability().catch(console.error); +async function main() { + notificationHubsCheckNotificationHubAvailability(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsCreateOrUpdateAuthorizationRuleSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsCreateOrUpdateAuthorizationRuleSample.ts similarity index 56% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsCreateOrUpdateAuthorizationRuleSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsCreateOrUpdateAuthorizationRuleSample.ts index 869f7f085a36..3e9893eb3cd3 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsCreateOrUpdateAuthorizationRuleSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsCreateOrUpdateAuthorizationRuleSample.ts @@ -9,39 +9,49 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - SharedAccessAuthorizationRuleCreateOrUpdateParameters, - NotificationHubsManagementClient + SharedAccessAuthorizationRuleResource, + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Creates/Updates an authorization rule for a NotificationHub * * @summary Creates/Updates an authorization rule for a NotificationHub - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleCreate.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleCreateOrUpdate.json */ -async function notificationHubAuthorizationRuleCreate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsCreateOrUpdateAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; - const authorizationRuleName = "DefaultListenSharedAccessSignature"; - const parameters: SharedAccessAuthorizationRuleCreateOrUpdateParameters = { - properties: { rights: ["Listen", "Send"] } + const authorizationRuleName = "MyManageSharedAccessKey"; + const parameters: SharedAccessAuthorizationRuleResource = { + rights: ["Listen", "Send"], }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.createOrUpdateAuthorizationRule( resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, - parameters + parameters, ); console.log(result); } -notificationHubAuthorizationRuleCreate().catch(console.error); +async function main() { + notificationHubsCreateOrUpdateAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsCreateOrUpdateSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsCreateOrUpdateSample.ts similarity index 59% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsCreateOrUpdateSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsCreateOrUpdateSample.ts index ced4f99a258f..3bcc8cb8cb7e 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsCreateOrUpdateSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsCreateOrUpdateSample.ts @@ -9,37 +9,45 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - NotificationHubCreateOrUpdateParameters, - NotificationHubsManagementClient + NotificationHubResource, + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Creates/Update a NotificationHub in a namespace. * * @summary Creates/Update a NotificationHub in a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubCreate.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/CreateOrUpdate.json */ -async function notificationHubCreate() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsCreateOrUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; - const parameters: NotificationHubCreateOrUpdateParameters = { - location: "eastus" - }; + const parameters: NotificationHubResource = { location: "eastus" }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.createOrUpdate( resourceGroupName, namespaceName, notificationHubName, - parameters + parameters, ); console.log(result); } -notificationHubCreate().catch(console.error); +async function main() { + notificationHubsCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsDebugSendSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsDebugSendSample.ts similarity index 53% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsDebugSendSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsDebugSendSample.ts index fa63e94e7707..4aab712e97b9 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsDebugSendSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsDebugSendSample.ts @@ -8,37 +8,41 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { - NotificationHubsDebugSendOptionalParams, - NotificationHubsManagementClient -} from "@azure/arm-notificationhubs"; +import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to test send a push notification + * This sample demonstrates how to Test send a push notification. * - * @summary test send a push notification - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDebugSend.json + * @summary Test send a push notification. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/DebugSend.json */ -async function debugsend() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsDebugSend() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; - const parameters: Record = { data: { message: "Hello" } }; - const options: NotificationHubsDebugSendOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.debugSend( resourceGroupName, namespaceName, notificationHubName, - options ); console.log(result); } -debugsend().catch(console.error); +async function main() { + notificationHubsDebugSend(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsDeleteAuthorizationRuleSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsDeleteAuthorizationRuleSample.ts similarity index 65% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsDeleteAuthorizationRuleSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsDeleteAuthorizationRuleSample.ts index ac72f4a32263..f26c4e0c2448 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsDeleteAuthorizationRuleSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsDeleteAuthorizationRuleSample.ts @@ -10,31 +10,41 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Deletes a notificationHub authorization rule * * @summary Deletes a notificationHub authorization rule - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleDelete.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleDelete.json */ -async function notificationHubAuthorizationRuleDelete() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsDeleteAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const authorizationRuleName = "DefaultListenSharedAccessSignature"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.deleteAuthorizationRule( resourceGroupName, namespaceName, notificationHubName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -notificationHubAuthorizationRuleDelete().catch(console.error); +async function main() { + notificationHubsDeleteAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsDeleteSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsDeleteSample.ts similarity index 65% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsDeleteSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsDeleteSample.ts index 4c70a99ad643..180c06b69169 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsDeleteSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsDeleteSample.ts @@ -10,29 +10,39 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Deletes a notification hub associated with a namespace. * * @summary Deletes a notification hub associated with a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubDelete.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Delete.json */ -async function notificationHubDelete() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsDelete() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.delete( resourceGroupName, namespaceName, - notificationHubName + notificationHubName, ); console.log(result); } -notificationHubDelete().catch(console.error); +async function main() { + notificationHubsDelete(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsGetAuthorizationRuleSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsGetAuthorizationRuleSample.ts similarity index 65% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsGetAuthorizationRuleSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsGetAuthorizationRuleSample.ts index 0a83324f0853..f1b1e7f154f2 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsGetAuthorizationRuleSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsGetAuthorizationRuleSample.ts @@ -10,31 +10,41 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Gets an authorization rule for a NotificationHub by name. * * @summary Gets an authorization rule for a NotificationHub by name. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleGet.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleGet.json */ -async function notificationHubAuthorizationRuleGet() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsGetAuthorizationRule() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const authorizationRuleName = "DefaultListenSharedAccessSignature"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.getAuthorizationRule( resourceGroupName, namespaceName, notificationHubName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -notificationHubAuthorizationRuleGet().catch(console.error); +async function main() { + notificationHubsGetAuthorizationRule(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsGetPnsCredentialsSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsGetPnsCredentialsSample.ts similarity index 61% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsGetPnsCredentialsSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsGetPnsCredentialsSample.ts index 01b38dac0189..1fc721ebb46a 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsGetPnsCredentialsSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsGetPnsCredentialsSample.ts @@ -10,29 +10,39 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Lists the PNS Credentials associated with a notification hub . + * This sample demonstrates how to Lists the PNS Credentials associated with a notification hub. * - * @summary Lists the PNS Credentials associated with a notification hub . - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPnsCredentials.json + * @summary Lists the PNS Credentials associated with a notification hub. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/PnsCredentialsGet.json */ -async function notificationHubPnsCredentials() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsGetPnsCredentials() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.getPnsCredentials( resourceGroupName, namespaceName, - notificationHubName + notificationHubName, ); console.log(result); } -notificationHubPnsCredentials().catch(console.error); +async function main() { + notificationHubsGetPnsCredentials(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsGetSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsGetSample.ts similarity index 57% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsGetSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsGetSample.ts index b9cfe2be30db..cf73171fa712 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsGetSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsGetSample.ts @@ -10,29 +10,39 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Lists the notification hubs associated with a namespace. + * This sample demonstrates how to Gets the notification hub. * - * @summary Lists the notification hubs associated with a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubGet.json + * @summary Gets the notification hub. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Get.json */ -async function notificationHubGet() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsGet() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.get( resourceGroupName, namespaceName, - notificationHubName + notificationHubName, ); console.log(result); } -notificationHubGet().catch(console.error); +async function main() { + notificationHubsGet(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsListAuthorizationRulesSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsListAuthorizationRulesSample.ts similarity index 65% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsListAuthorizationRulesSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsListAuthorizationRulesSample.ts index d542f81f21ec..965a31b72bce 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsListAuthorizationRulesSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsListAuthorizationRulesSample.ts @@ -10,32 +10,42 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Gets the authorization rules for a NotificationHub. * * @summary Gets the authorization rules for a NotificationHub. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListAll.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleList.json */ -async function notificationHubAuthorizationRuleListAll() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsListAuthorizationRules() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.notificationHubs.listAuthorizationRules( resourceGroupName, namespaceName, - notificationHubName + notificationHubName, )) { resArray.push(item); } console.log(resArray); } -notificationHubAuthorizationRuleListAll().catch(console.error); +async function main() { + notificationHubsListAuthorizationRules(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsListKeysSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsListKeysSample.ts similarity index 66% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsListKeysSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsListKeysSample.ts index 91797f29c08a..9cb76d265961 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsListKeysSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsListKeysSample.ts @@ -10,31 +10,41 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Gets the Primary and Secondary ConnectionStrings to the NotificationHub * * @summary Gets the Primary and Secondary ConnectionStrings to the NotificationHub - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleListKey.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleListKeys.json */ -async function notificationHubAuthorizationRuleListKey() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsListKeys() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const authorizationRuleName = "sdk-AuthRules-5800"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.listKeys( resourceGroupName, namespaceName, notificationHubName, - authorizationRuleName + authorizationRuleName, ); console.log(result); } -notificationHubAuthorizationRuleListKey().catch(console.error); +async function main() { + notificationHubsListKeys(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsListSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsListSample.ts similarity index 65% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsListSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsListSample.ts index 43e455f72fb6..4a7e84a1c4ae 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsListSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsListSample.ts @@ -10,30 +10,40 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Lists the notification hubs associated with a namespace. * * @summary Lists the notification hubs associated with a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubListByNameSpace.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/List.json */ -async function notificationHubListByNameSpace() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsList() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.notificationHubs.list( resourceGroupName, - namespaceName + namespaceName, )) { resArray.push(item); } console.log(resArray); } -notificationHubListByNameSpace().catch(console.error); +async function main() { + notificationHubsList(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsRegenerateKeysSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsRegenerateKeysSample.ts similarity index 62% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsRegenerateKeysSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsRegenerateKeysSample.ts index 557b7aa142f5..38ead21fb085 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/notificationHubsRegenerateKeysSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsRegenerateKeysSample.ts @@ -9,37 +9,47 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - PolicykeyResource, - NotificationHubsManagementClient + PolicyKeyResource, + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule * * @summary Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubAuthorizationRuleRegenrateKey.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/AuthorizationRuleRegenerateKey.json */ -async function notificationHubAuthorizationRuleRegenrateKey() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "5ktrial"; +async function notificationHubsRegenerateKeys() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "nh-sdk-hub"; const authorizationRuleName = "DefaultListenSharedAccessSignature"; - const parameters: PolicykeyResource = { policyKey: "PrimaryKey" }; + const parameters: PolicyKeyResource = { policyKey: "PrimaryKey" }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const result = await client.notificationHubs.regenerateKeys( resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, - parameters + parameters, ); console.log(result); } -notificationHubAuthorizationRuleRegenrateKey().catch(console.error); +async function main() { + notificationHubsRegenerateKeys(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsPatchSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsUpdateSample.ts similarity index 52% rename from sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsPatchSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsUpdateSample.ts index 20a0cef6f0ce..b0d5ddbbe8b5 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples-dev/notificationHubsPatchSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/notificationHubsUpdateSample.ts @@ -10,36 +10,50 @@ // Licensed under the MIT License. import { NotificationHubPatchParameters, - NotificationHubsPatchOptionalParams, - NotificationHubsManagementClient + NotificationHubsManagementClient, } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** * This sample demonstrates how to Patch a NotificationHub in a namespace. * * @summary Patch a NotificationHub in a namespace. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NotificationHubs/NotificationHubPatch.json + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NotificationHubs/Update.json */ -async function notificationHubPatch() { - const subscriptionId = "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; - const resourceGroupName = "sdkresourceGroup"; +async function notificationHubsUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "sdkresourceGroup"; const namespaceName = "nh-sdk-ns"; const notificationHubName = "sdk-notificationHubs-8708"; - const parameters: NotificationHubPatchParameters = {}; - const options: NotificationHubsPatchOptionalParams = { parameters }; + const parameters: NotificationHubPatchParameters = { + gcmCredential: { + gcmEndpoint: "https://fcm.googleapis.com/fcm/send", + googleApiKey: "###################################", + }, + registrationTtl: "10675199.02:48:05.4775807", + }; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); - const result = await client.notificationHubs.patch( + const result = await client.notificationHubs.update( resourceGroupName, namespaceName, notificationHubName, - options + parameters, ); console.log(result); } -notificationHubPatch().catch(console.error); +async function main() { + notificationHubsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/operationsListSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/operationsListSample.ts similarity index 61% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/operationsListSample.ts rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/operationsListSample.ts index 8d5a7ec9db42..ff8bfc43839c 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/src/operationsListSample.ts +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/operationsListSample.ts @@ -10,19 +10,24 @@ // Licensed under the MIT License. import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); /** - * This sample demonstrates how to Lists all of the available NotificationHubs REST API operations. + * This sample demonstrates how to Lists all available Notification Hubs operations. * - * @summary Lists all of the available NotificationHubs REST API operations. - * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2017-04-01/examples/NHOperationsList.json + * @summary Lists all available Notification Hubs operations. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/NHOperationsList.json */ async function operationsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; const credential = new DefaultAzureCredential(); const client = new NotificationHubsManagementClient( credential, - subscriptionId + subscriptionId, ); const resArray = new Array(); for await (let item of client.operations.list()) { @@ -31,4 +36,8 @@ async function operationsList() { console.log(resArray); } -operationsList().catch(console.error); +async function main() { + operationsList(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts new file mode 100644 index 000000000000..c7f7fc12587c --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts @@ -0,0 +1,51 @@ +/* + * 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 { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes the Private Endpoint Connection. +This is a public API that can be called directly by Notification Hubs users. + * + * @summary Deletes the Private Endpoint Connection. +This is a public API that can be called directly by Notification Hubs users. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionDelete.json + */ +async function privateEndpointConnectionsDelete() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const privateEndpointConnectionName = + "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.privateEndpointConnections.beginDeleteAndWait( + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsDelete(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsGetGroupIdSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsGetGroupIdSample.ts new file mode 100644 index 000000000000..3ac6ba4aa810 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsGetGroupIdSample.ts @@ -0,0 +1,50 @@ +/* + * 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 { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. +That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + * + * @summary Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. +That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceGet.json + */ +async function privateEndpointConnectionsGetGroupId() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const subResourceName = "namespace"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.privateEndpointConnections.getGroupId( + resourceGroupName, + namespaceName, + subResourceName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsGetGroupId(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsGetSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsGetSample.ts new file mode 100644 index 000000000000..196a70b5080b --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsGetSample.ts @@ -0,0 +1,51 @@ +/* + * 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 { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Returns a Private Endpoint Connection with a given name. +This is a public API that can be called directly by Notification Hubs users. + * + * @summary Returns a Private Endpoint Connection with a given name. +This is a public API that can be called directly by Notification Hubs users. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionGet.json + */ +async function privateEndpointConnectionsGet() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const privateEndpointConnectionName = + "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.privateEndpointConnections.get( + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsGet(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsListGroupIdsSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsListGroupIdsSample.ts new file mode 100644 index 000000000000..d5e0783f240a --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsListGroupIdsSample.ts @@ -0,0 +1,51 @@ +/* + * 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 { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. +That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + * + * @summary Even though this namespace requires subscription id, resource group and namespace name, it returns a constant payload (for a given namespacE) every time it's called. +That's why we don't send it to the sibling RP, but process it directly in the scale unit that received the request. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateLinkResourceList.json + */ +async function privateEndpointConnectionsListGroupIds() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const resArray = new Array(); + for await (let item of client.privateEndpointConnections.listGroupIds( + resourceGroupName, + namespaceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + privateEndpointConnectionsListGroupIds(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsListSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsListSample.ts new file mode 100644 index 000000000000..fea89497694b --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsListSample.ts @@ -0,0 +1,51 @@ +/* + * 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 { NotificationHubsManagementClient } from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace. +This is a public API that can be called directly by Notification Hubs users. + * + * @summary Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace. +This is a public API that can be called directly by Notification Hubs users. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionList.json + */ +async function privateEndpointConnectionsList() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const resArray = new Array(); + for await (let item of client.privateEndpointConnections.list( + resourceGroupName, + namespaceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + privateEndpointConnectionsList(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsUpdateSample.ts b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsUpdateSample.ts new file mode 100644 index 000000000000..0ddb213a1c86 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/src/privateEndpointConnectionsUpdateSample.ts @@ -0,0 +1,61 @@ +/* + * 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 { + PrivateEndpointConnectionResource, + NotificationHubsManagementClient, +} from "@azure/arm-notificationhubs"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Approves or rejects Private Endpoint Connection. +This is a public API that can be called directly by Notification Hubs users. + * + * @summary Approves or rejects Private Endpoint Connection. +This is a public API that can be called directly by Notification Hubs users. + * x-ms-original-file: specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/preview/2023-10-01-preview/examples/Namespaces/PrivateEndpointConnectionUpdate.json + */ +async function privateEndpointConnectionsUpdate() { + const subscriptionId = + process.env["NOTIFICATIONHUBS_SUBSCRIPTION_ID"] || + "29cfa613-cbbc-4512-b1d6-1b3a92c7fa40"; + const resourceGroupName = + process.env["NOTIFICATIONHUBS_RESOURCE_GROUP"] || "5ktrial"; + const namespaceName = "nh-sdk-ns"; + const privateEndpointConnectionName = + "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e"; + const parameters: PrivateEndpointConnectionResource = { + properties: { + privateEndpoint: {}, + privateLinkServiceConnectionState: { status: "Approved" }, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new NotificationHubsManagementClient( + credential, + subscriptionId, + ); + const result = await client.privateEndpointConnections.beginUpdateAndWait( + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + parameters, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/tsconfig.json b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/tsconfig.json similarity index 92% rename from sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/tsconfig.json rename to sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/tsconfig.json index 416c2dd82e00..e26ce2a6d8f7 100644 --- a/sdk/notificationhubs/arm-notificationhubs/samples/v2/typescript/tsconfig.json +++ b/sdk/notificationhubs/arm-notificationhubs/samples/v3-beta/typescript/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "ES2018", + "target": "ES2020", "module": "commonjs", "moduleResolution": "node", "resolveJsonModule": true, diff --git a/sdk/notificationhubs/arm-notificationhubs/src/lroImpl.ts b/sdk/notificationhubs/arm-notificationhubs/src/lroImpl.ts index 518d5f053b4e..b27f5ac7209b 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/lroImpl.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/lroImpl.ts @@ -6,29 +6,37 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { AbortSignalLike } from "@azure/abort-controller"; import { LongRunningOperation, LroResponse } from "@azure/core-lro"; -export class LroImpl implements LongRunningOperation { - constructor( - private sendOperationFn: (args: any, spec: any) => Promise>, - private args: Record, - private spec: { - readonly requestBody?: unknown; - readonly path?: string; - readonly httpMethod: string; - } & Record, - public requestPath: string = spec.path!, - public requestMethod: string = spec.httpMethod - ) {} - public async sendInitialRequest(): Promise> { - return this.sendOperationFn(this.args, this.spec); - } - public async sendPollRequest(path: string): Promise> { - const { requestBody, ...restSpec } = this.spec; - return this.sendOperationFn(this.args, { - ...restSpec, - path, - httpMethod: "GET" - }); - } +export function createLroSpec(inputs: { + sendOperationFn: (args: any, spec: any) => Promise>; + args: Record; + spec: { + readonly requestBody?: unknown; + readonly path?: string; + readonly httpMethod: string; + } & Record; +}): LongRunningOperation { + const { args, spec, sendOperationFn } = inputs; + return { + requestMethod: spec.httpMethod, + requestPath: spec.path!, + sendInitialRequest: () => sendOperationFn(args, spec), + sendPollRequest: ( + path: string, + options?: { abortSignal?: AbortSignalLike }, + ) => { + const { requestBody, ...restSpec } = spec; + return sendOperationFn(args, { + ...restSpec, + httpMethod: "GET", + path, + abortSignal: options?.abortSignal, + }); + }, + }; } diff --git a/sdk/notificationhubs/arm-notificationhubs/src/models/index.ts b/sdk/notificationhubs/arm-notificationhubs/src/models/index.ts index d8e8dc92602c..d35fa2d1ed21 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/models/index.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/models/index.ts @@ -8,772 +8,1763 @@ import * as coreClient from "@azure/core-client"; -/** Result of the request to list NotificationHubs operations. It contains a list of operations and a URL link to get the next set of results. */ -export interface OperationListResult { +/** + * Parameters supplied to the Check Name Availability for Namespace and + * NotificationHubs. + */ +export interface CheckAvailabilityParameters { /** - * List of NotificationHubs operations supported by the Microsoft.NotificationHubs resource provider. + * Gets resource Id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Operation[]; + readonly id?: string; + /** Gets or sets resource name */ + name: string; /** - * URL to get the next set of operation list results if there are any. + * Gets resource type * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly type?: string; + /** Gets or sets resource location */ + location?: string; + /** Gets or sets resource tags */ + tags?: { [propertyName: string]: string }; + /** Not used and deprecated since API version 2023-01-01-preview */ + isAvailiable?: boolean; + /** The Sku description for a namespace */ + sku?: Sku; } -/** A NotificationHubs REST API operation */ -export interface Operation { +/** The Sku description for a namespace */ +export interface Sku { + /** Namespace SKU name. */ + name: SkuName; + /** Gets or sets the tier of particular sku */ + tier?: string; + /** Gets or sets the Sku size */ + size?: string; + /** Gets or sets the Sku Family */ + family?: string; + /** Gets or sets the capacity of the resource */ + capacity?: number; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { /** - * Operation name: {provider}/{resource}/{operation} + * 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 name?: string; - /** The object that represents the operation. */ - display?: OperationDisplay; -} - -/** The object that represents the operation. */ -export interface OperationDisplay { + readonly id?: string; /** - * Service provider: Microsoft.NotificationHubs + * The name of the resource * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provider?: string; + readonly name?: string; /** - * Resource on which the operation is performed: Invoice, etc. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resource?: string; + readonly type?: string; /** - * Operation type: Read, write, delete, etc. + * 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 operation?: string; + 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; } -/** Error response indicates NotificationHubs service is not able to process the incoming request. The reason is provided in the error message. */ +/** 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 { - /** Error code. */ - code?: string; - /** Error message indicating why the operation failed. */ - message?: string; + /** The error object. */ + error?: ErrorDetail; } -/** Parameters supplied to the Check Name Availability for Namespace and NotificationHubs. */ -export interface CheckAvailabilityParameters { +/** The error detail. */ +export interface ErrorDetail { /** - * Resource Id + * The error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; - /** Resource name */ - name: string; + readonly code?: string; /** - * Resource type + * The error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; - /** Resource location */ - location?: string; - /** Resource tags */ - tags?: { [propertyName: string]: string }; - /** The sku of the created namespace */ - sku?: Sku; - /** True if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false. */ - isAvailiable?: boolean; -} - -/** The Sku description for a namespace */ -export interface Sku { - /** Name of the notification hub sku */ - name: SkuName; - /** The tier of particular sku */ - tier?: string; - /** The Sku size */ - size?: string; - /** The Sku Family */ - family?: string; - /** The capacity of the resource */ - capacity?: number; -} - -export interface Resource { + readonly message?: string; /** - * Resource Id + * The error target. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly target?: string; /** - * Resource name + * The error details. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly details?: ErrorDetail[]; /** - * Resource type + * The error additional info. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; - /** Resource location */ - location?: string; - /** Resource tags */ - tags?: { [propertyName: string]: string }; - /** The sku of the created namespace */ - sku?: Sku; -} - -/** Parameters supplied to the Patch Namespace operation. */ -export interface NamespacePatchParameters { - /** Resource tags */ - tags?: { [propertyName: string]: string }; - /** The sku of the created namespace */ - sku?: Sku; + readonly additionalInfo?: ErrorAdditionalInfo[]; } -/** Parameters supplied to the CreateOrUpdate Namespace AuthorizationRules. */ -export interface SharedAccessAuthorizationRuleCreateOrUpdateParameters { - /** Properties of the Namespace AuthorizationRules. */ - properties: SharedAccessAuthorizationRuleProperties; +/** 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; } /** SharedAccessAuthorizationRule properties. */ export interface SharedAccessAuthorizationRuleProperties { - /** The rights associated with the rule. */ - rights?: AccessRights[]; + /** Gets or sets the rights associated with the rule. */ + rights: AccessRights[]; /** - * A base64-encoded 256-bit primary key for signing and validating the SAS token. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Gets a base64-encoded 256-bit primary key for signing and + * validating the SAS token. */ - readonly primaryKey?: string; + primaryKey?: string; /** - * A base64-encoded 256-bit primary key for signing and validating the SAS token. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Gets a base64-encoded 256-bit primary key for signing and + * validating the SAS token. */ - readonly secondaryKey?: string; + secondaryKey?: string; /** - * A string that describes the authorization rule. + * Gets a string that describes the authorization rule. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly keyName?: string; /** - * A string that describes the claim type + * Gets the last modified time for this rule * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly claimType?: string; + readonly modifiedTime?: Date; /** - * A string that describes the claim value + * Gets the created time for this rule * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly claimValue?: string; + readonly createdTime?: Date; /** - * The last modified time for this rule + * Gets a string that describes the claim type * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly modifiedTime?: string; + readonly claimType?: string; /** - * The created time for this rule + * Gets a string that describes the claim value * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createdTime?: string; + readonly claimValue?: string; /** - * The revision number for the rule + * Gets the revision number for the rule * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly revision?: number; } -/** The response of the List Namespace operation. */ -export interface NamespaceListResult { - /** Result of the List Namespace operation. */ - value?: NamespaceResource[]; - /** Link to the next set of results. Not empty if Value contains incomplete list of Namespaces */ - nextLink?: string; -} - -/** The response of the List Namespace operation. */ -export interface SharedAccessAuthorizationRuleListResult { - /** Result of the List AuthorizationRules operation. */ - value?: SharedAccessAuthorizationRuleResource[]; - /** Link to the next set of results. Not empty if Value contains incomplete list of AuthorizationRules */ - nextLink?: string; -} - -/** Namespace/NotificationHub Connection String */ -export interface ResourceListKeys { - /** PrimaryConnectionString of the AuthorizationRule. */ - primaryConnectionString?: string; - /** SecondaryConnectionString of the created AuthorizationRule */ - secondaryConnectionString?: string; - /** PrimaryKey of the created AuthorizationRule. */ - primaryKey?: string; - /** SecondaryKey of the created AuthorizationRule */ - secondaryKey?: string; - /** KeyName of the created AuthorizationRule */ - keyName?: string; -} - -/** Namespace/NotificationHub Regenerate Keys */ -export interface PolicykeyResource { - /** Name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key. */ - policyKey?: string; -} - /** Description of a NotificationHub ApnsCredential. */ export interface ApnsCredential { - /** The APNS certificate. Specify if using Certificate Authentication Mode. */ + /** Gets or sets the APNS certificate. */ apnsCertificate?: string; - /** The APNS certificate password if it exists. */ + /** Gets or sets the certificate key. */ certificateKey?: string; - /** The APNS endpoint of this credential. If using Certificate Authentication Mode and Sandbox specify 'gateway.sandbox.push.apple.com'. If using Certificate Authentication Mode and Production specify 'gateway.push.apple.com'. If using Token Authentication Mode and Sandbox specify 'https://api.development.push.apple.com:443/3/device'. If using Token Authentication Mode and Production specify 'https://api.push.apple.com:443/3/device'. */ - endpoint?: string; - /** The APNS certificate thumbprint. Specify if using Certificate Authentication Mode. */ + /** Gets or sets the endpoint of this credential. */ + endpoint: string; + /** Gets or sets the APNS certificate Thumbprint */ thumbprint?: string; - /** A 10-character key identifier (kid) key, obtained from your developer account. Specify if using Token Authentication Mode. */ + /** + * Gets or sets a 10-character key identifier (kid) key, obtained from + * your developer account + */ keyId?: string; - /** The name of the application or BundleId. Specify if using Token Authentication Mode. */ + /** Gets or sets the name of the application */ appName?: string; - /** The issuer (iss) registered claim key. The value is a 10-character TeamId, obtained from your developer account. Specify if using Token Authentication Mode. */ + /** + * Gets or sets the issuer (iss) registered claim key, whose value is + * your 10-character Team ID, obtained from your developer account + */ appId?: string; - /** Provider Authentication Token, obtained through your developer account. Specify if using Token Authentication Mode. */ + /** + * Gets or sets provider Authentication Token, obtained through your + * developer account + */ token?: string; } /** Description of a NotificationHub WnsCredential. */ export interface WnsCredential { - /** The package ID for this credential. */ + /** Gets or sets the package ID for this credential. */ packageSid?: string; - /** The secret key. */ + /** Gets or sets the secret key. */ secretKey?: string; - /** The Windows Live endpoint. */ + /** Gets or sets the Windows Live endpoint. */ windowsLiveEndpoint?: string; + /** Ges or sets the WNS Certificate Key. */ + certificateKey?: string; + /** Gets or sets the WNS Certificate. */ + wnsCertificate?: string; } /** Description of a NotificationHub GcmCredential. */ export interface GcmCredential { - /** The FCM legacy endpoint. Default value is 'https://fcm.googleapis.com/fcm/send' */ + /** Gets or sets the GCM endpoint. */ gcmEndpoint?: string; - /** The Google API key. */ - googleApiKey?: string; + /** Gets or sets the Google API key. */ + googleApiKey: string; } /** Description of a NotificationHub MpnsCredential. */ export interface MpnsCredential { - /** The MPNS certificate. */ - mpnsCertificate?: string; - /** The certificate key for this credential. */ - certificateKey?: string; - /** The MPNS certificate Thumbprint */ - thumbprint?: string; + /** Gets or sets the MPNS certificate. */ + mpnsCertificate: string; + /** Gets or sets the certificate key for this credential. */ + certificateKey: string; + /** Gets or sets the MPNS certificate Thumbprint */ + thumbprint: string; } /** Description of a NotificationHub AdmCredential. */ export interface AdmCredential { - /** The client identifier. */ - clientId?: string; - /** The credential secret access key. */ - clientSecret?: string; - /** The URL of the authorization token. */ - authTokenUrl?: string; + /** Gets or sets the client identifier. */ + clientId: string; + /** Gets or sets the credential secret access key. */ + clientSecret: string; + /** Gets or sets the URL of the authorization token. */ + authTokenUrl: string; } /** Description of a NotificationHub BaiduCredential. */ export interface BaiduCredential { - /** Baidu Api Key. */ - baiduApiKey?: string; - /** Baidu Endpoint. */ - baiduEndPoint?: string; - /** Baidu Secret Key */ - baiduSecretKey?: string; + /** Gets or sets baidu Api Key. */ + baiduApiKey: string; + /** Gets or sets baidu Endpoint. */ + baiduEndPoint: string; + /** Gets or sets baidu Secret Key */ + baiduSecretKey: string; } -/** The response of the List NotificationHub operation. */ -export interface NotificationHubListResult { - /** Result of the List NotificationHub operation. */ - value?: NotificationHubResource[]; - /** Link to the next set of results. Not empty if Value contains incomplete list of NotificationHub */ - nextLink?: string; +/** Description of a NotificationHub BrowserCredential. */ +export interface BrowserCredential { + /** Gets or sets web push subject. */ + subject: string; + /** Gets or sets VAPID private key. */ + vapidPrivateKey: string; + /** Gets or sets VAPID public key. */ + vapidPublicKey: string; } -export interface SubResource { - /** Resource Id */ - id?: string; +/** Description of a NotificationHub XiaomiCredential. */ +export interface XiaomiCredential { + /** Gets or sets app secret. */ + appSecret?: string; + /** Gets or sets xiaomi service endpoint. */ + endpoint?: string; } -/** Description of a CheckAvailability resource. */ -export interface CheckAvailabilityResult extends Resource { - /** True if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false. */ - isAvailiable?: boolean; +/** Description of a NotificationHub FcmV1Credential. */ +export interface FcmV1Credential { + /** Gets or sets client email. */ + clientEmail: string; + /** Gets or sets private key. */ + privateKey: string; + /** Gets or sets project id. */ + projectId: string; } -/** Parameters supplied to the CreateOrUpdate Namespace operation. */ -export interface NamespaceCreateOrUpdateParameters extends Resource { - /** The name of the namespace. */ - namePropertiesName?: string; - /** Provisioning state of the Namespace. */ - provisioningState?: string; - /** Specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia East, Australia Southeast, Central US, East US, East US 2, West US, North Central US, South Central US, East Asia, Southeast Asia, Brazil South, Japan East, Japan West, North Europe, West Europe */ - region?: string; +/** Patch parameter for NamespaceResource. */ +export interface NotificationHubPatchParameters { + /** The Sku description for a namespace */ + sku?: Sku; + /** Dictionary of */ + tags?: { [propertyName: string]: string }; + /** Gets or sets the NotificationHub name. */ + name?: string; + /** Gets or sets the RegistrationTtl of the created NotificationHub */ + registrationTtl?: string; /** - * Identifier for Azure Insights metrics + * Gets or sets the AuthorizationRules of the created NotificationHub * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly metricId?: string; - /** Status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting */ - status?: string; - /** The time the namespace was created. */ - createdAt?: Date; - /** The time the namespace was updated. */ - updatedAt?: Date; - /** Endpoint you can use to perform NotificationHub operations. */ - serviceBusEndpoint?: string; - /** The Id of the Azure subscription associated with the namespace. */ - subscriptionId?: string; - /** ScaleUnit where the namespace gets created */ - scaleUnit?: string; - /** Whether or not the namespace is currently enabled. */ - enabled?: boolean; - /** Whether or not the namespace is set as Critical. */ - critical?: boolean; - /** Data center for the namespace */ - dataCenter?: string; - /** The namespace type. */ - namespaceType?: NamespaceType; + readonly authorizationRules?: SharedAccessAuthorizationRuleProperties[]; + /** Description of a NotificationHub ApnsCredential. */ + apnsCredential?: ApnsCredential; + /** Description of a NotificationHub WnsCredential. */ + wnsCredential?: WnsCredential; + /** Description of a NotificationHub GcmCredential. */ + gcmCredential?: GcmCredential; + /** Description of a NotificationHub MpnsCredential. */ + mpnsCredential?: MpnsCredential; + /** Description of a NotificationHub AdmCredential. */ + admCredential?: AdmCredential; + /** Description of a NotificationHub BaiduCredential. */ + baiduCredential?: BaiduCredential; + /** Description of a NotificationHub BrowserCredential. */ + browserCredential?: BrowserCredential; + /** Description of a NotificationHub XiaomiCredential. */ + xiaomiCredential?: XiaomiCredential; + /** Description of a NotificationHub FcmV1Credential. */ + fcmV1Credential?: FcmV1Credential; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly dailyMaxActiveDevices?: number; } -/** Description of a Namespace resource. */ -export interface NamespaceResource extends Resource { - /** The name of the namespace. */ - namePropertiesName?: string; - /** Provisioning state of the Namespace. */ - provisioningState?: string; - /** Specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia East, Australia Southeast, Central US, East US, East US 2, West US, North Central US, South Central US, East Asia, Southeast Asia, Brazil South, Japan East, Japan West, North Europe, West Europe */ - region?: string; +/** The response of the List NotificationHub operation. */ +export interface NotificationHubListResult { /** - * Identifier for Azure Insights metrics + * Gets or sets result of the List AuthorizationRules operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly metricId?: string; - /** Status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting */ - status?: string; - /** The time the namespace was created. */ - createdAt?: Date; - /** The time the namespace was updated. */ - updatedAt?: Date; - /** Endpoint you can use to perform NotificationHub operations. */ - serviceBusEndpoint?: string; - /** The Id of the Azure subscription associated with the namespace. */ - subscriptionId?: string; - /** ScaleUnit where the namespace gets created */ - scaleUnit?: string; - /** Whether or not the namespace is currently enabled. */ - enabled?: boolean; - /** Whether or not the namespace is set as Critical. */ - critical?: boolean; - /** Data center for the namespace */ - dataCenter?: string; - /** The namespace type. */ - namespaceType?: NamespaceType; + readonly value?: NotificationHubResource[]; + /** + * Gets or sets link to the next set of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; } -/** Description of a Namespace AuthorizationRules. */ -export interface SharedAccessAuthorizationRuleResource extends Resource { - /** The rights associated with the rule. */ - rights?: AccessRights[]; +/** Notification result for a single registration. */ +export interface RegistrationResult { /** - * A base64-encoded 256-bit primary key for signing and validating the SAS token. + * PNS type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly primaryKey?: string; + readonly applicationPlatform?: string; /** - * A base64-encoded 256-bit primary key for signing and validating the SAS token. + * PNS handle. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly secondaryKey?: string; + readonly pnsHandle?: string; /** - * A string that describes the authorization rule. + * Registration id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly keyName?: string; + readonly registrationId?: string; /** - * A string that describes the claim type + * Notification outcome. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly claimType?: string; + readonly outcome?: string; +} + +/** The response of the List Namespace operation. */ +export interface SharedAccessAuthorizationRuleListResult { /** - * A string that describes the claim value + * Gets or sets result of the List AuthorizationRules operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly claimValue?: string; + readonly value?: SharedAccessAuthorizationRuleResource[]; + /** + * Gets or sets link to the next set of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** Response for the POST request that returns Namespace or NotificationHub access keys (connection strings). */ +export interface ResourceListKeys { /** - * The last modified time for this rule + * Gets or sets primaryConnectionString of the AuthorizationRule. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly modifiedTime?: string; + readonly primaryConnectionString?: string; /** - * The created time for this rule + * Gets or sets secondaryConnectionString of the created + * AuthorizationRule * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createdTime?: string; + readonly secondaryConnectionString?: string; /** - * The revision number for the rule + * Gets or sets primaryKey of the created AuthorizationRule. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly revision?: number; + readonly primaryKey?: string; + /** + * Gets or sets secondaryKey of the created AuthorizationRule + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly secondaryKey?: string; + /** + * Gets or sets keyName of the created AuthorizationRule + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly keyName?: string; } -/** Parameters supplied to the CreateOrUpdate NotificationHub operation. */ -export interface NotificationHubCreateOrUpdateParameters extends Resource { - /** The NotificationHub name. */ - namePropertiesName?: string; - /** The RegistrationTtl of the created NotificationHub */ - registrationTtl?: string; - /** The AuthorizationRules of the created NotificationHub */ - authorizationRules?: SharedAccessAuthorizationRuleProperties[]; - /** The ApnsCredential of the created NotificationHub */ - apnsCredential?: ApnsCredential; - /** The WnsCredential of the created NotificationHub */ - wnsCredential?: WnsCredential; - /** The GcmCredential of the created NotificationHub */ - gcmCredential?: GcmCredential; - /** The MpnsCredential of the created NotificationHub */ - mpnsCredential?: MpnsCredential; - /** The AdmCredential of the created NotificationHub */ - admCredential?: AdmCredential; - /** The BaiduCredential of the created NotificationHub */ - baiduCredential?: BaiduCredential; +/** Namespace / NotificationHub Regenerate Keys request. */ +export interface PolicyKeyResource { + /** Type of Shared Access Policy Key (primary or secondary). */ + policyKey: PolicyKeyType; } -/** Description of a NotificationHub Resource. */ -export interface NotificationHubResource extends Resource { - /** The NotificationHub name. */ - namePropertiesName?: string; - /** The RegistrationTtl of the created NotificationHub */ - registrationTtl?: string; - /** The AuthorizationRules of the created NotificationHub */ - authorizationRules?: SharedAccessAuthorizationRuleProperties[]; - /** The ApnsCredential of the created NotificationHub */ +/** Collection of Notification Hub or Notification Hub Namespace PNS credentials. */ +export interface PnsCredentials { + /** Description of a NotificationHub AdmCredential. */ + admCredential?: AdmCredential; + /** Description of a NotificationHub ApnsCredential. */ apnsCredential?: ApnsCredential; - /** The WnsCredential of the created NotificationHub */ - wnsCredential?: WnsCredential; - /** The GcmCredential of the created NotificationHub */ + /** Description of a NotificationHub BaiduCredential. */ + baiduCredential?: BaiduCredential; + /** Description of a NotificationHub BrowserCredential. */ + browserCredential?: BrowserCredential; + /** Description of a NotificationHub GcmCredential. */ gcmCredential?: GcmCredential; - /** The MpnsCredential of the created NotificationHub */ + /** Description of a NotificationHub MpnsCredential. */ mpnsCredential?: MpnsCredential; - /** The AdmCredential of the created NotificationHub */ - admCredential?: AdmCredential; - /** The BaiduCredential of the created NotificationHub */ - baiduCredential?: BaiduCredential; + /** Description of a NotificationHub WnsCredential. */ + wnsCredential?: WnsCredential; + /** Description of a NotificationHub XiaomiCredential. */ + xiaomiCredential?: XiaomiCredential; + /** Description of a NotificationHub FcmV1Credential. */ + fcmV1Credential?: FcmV1Credential; } -/** Parameters supplied to the patch NotificationHub operation. */ -export interface NotificationHubPatchParameters extends Resource { - /** The NotificationHub name. */ - namePropertiesName?: string; - /** The RegistrationTtl of the created NotificationHub */ - registrationTtl?: string; - /** The AuthorizationRules of the created NotificationHub */ - authorizationRules?: SharedAccessAuthorizationRuleProperties[]; - /** The ApnsCredential of the created NotificationHub */ - apnsCredential?: ApnsCredential; - /** The WnsCredential of the created NotificationHub */ - wnsCredential?: WnsCredential; - /** The GcmCredential of the created NotificationHub */ - gcmCredential?: GcmCredential; - /** The MpnsCredential of the created NotificationHub */ - mpnsCredential?: MpnsCredential; - /** The AdmCredential of the created NotificationHub */ - admCredential?: AdmCredential; - /** The BaiduCredential of the created NotificationHub */ - baiduCredential?: BaiduCredential; +/** Represents namespace properties. */ +export interface NamespaceProperties { + /** + * Name of the Notification Hubs namespace. This is immutable property, set automatically + * by the service when the namespace is created. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** Defines values for OperationProvisioningState. */ + provisioningState?: OperationProvisioningState; + /** Namespace status. */ + status?: NamespaceStatus; + /** + * Gets or sets whether or not the namespace is currently enabled. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly enabled?: boolean; + /** + * Gets or sets whether or not the namespace is set as Critical. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly critical?: boolean; + /** + * Namespace subscription id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly subscriptionId?: string; + /** + * Region. The value is always set to the same value as Namespace.Location, so we are deprecating + * this property. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly region?: string; + /** + * Azure Insights Metrics id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly metricId?: string; + /** + * Time when the namespace was created. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdAt?: Date; + /** + * Time when the namespace was updated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly updatedAt?: Date; + /** Defines values for NamespaceType. */ + namespaceType?: NamespaceType; + /** Allowed replication region */ + replicationRegion?: ReplicationRegion; + /** Namespace SKU name. */ + zoneRedundancy?: ZoneRedundancyPreference; + /** A collection of network authorization rules. */ + networkAcls?: NetworkAcls; + /** Collection of Notification Hub or Notification Hub Namespace PNS credentials. */ + pnsCredentials?: PnsCredentials; + /** + * Gets or sets endpoint you can use to perform NotificationHub + * operations. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly serviceBusEndpoint?: string; + /** + * Private Endpoint Connections for namespace + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointConnections?: PrivateEndpointConnectionResource[]; + /** Gets or sets scaleUnit where the namespace gets created */ + scaleUnit?: string; + /** Deprecated. */ + dataCenter?: string; + /** Type of public network access. */ + publicNetworkAccess?: PublicNetworkAccess; } -/** Description of a NotificationHub Resource. */ -export interface DebugSendResponse extends Resource { - /** successful send */ - success?: number; - /** send failure */ - failure?: number; - /** actual failure description */ - results?: Record; -} - -/** Description of a NotificationHub PNS Credentials. */ -export interface PnsCredentialsResource extends Resource { - /** The ApnsCredential of the created NotificationHub */ - apnsCredential?: ApnsCredential; - /** The WnsCredential of the created NotificationHub */ - wnsCredential?: WnsCredential; - /** The GcmCredential of the created NotificationHub */ - gcmCredential?: GcmCredential; - /** The MpnsCredential of the created NotificationHub */ - mpnsCredential?: MpnsCredential; - /** The AdmCredential of the created NotificationHub */ - admCredential?: AdmCredential; - /** The BaiduCredential of the created NotificationHub */ - baiduCredential?: BaiduCredential; +/** A collection of network authorization rules. */ +export interface NetworkAcls { + /** List of IP rules. */ + ipRules?: IpRule[]; + /** A default (public Internet) network authorization rule, which contains rights if no other network rule matches. */ + publicNetworkRule?: PublicInternetAuthorizationRule; } -/** Known values of {@link SkuName} that the service accepts. */ -export enum KnownSkuName { - /** Free */ - Free = "Free", - /** Basic */ - Basic = "Basic", - /** Standard */ - Standard = "Standard" +/** A network authorization rule that filters traffic based on IP address. */ +export interface IpRule { + /** IP mask. */ + ipMask: string; + /** List of access rights. */ + rights: AccessRights[]; } -/** - * Defines values for SkuName. \ - * {@link KnownSkuName} can be used interchangeably with SkuName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Free** \ - * **Basic** \ - * **Standard** +/** A default (public Internet) network authorization rule, which contains rights if no other network rule matches. */ +export interface PublicInternetAuthorizationRule { + /** List of access rights. */ + rights: AccessRights[]; +} + +/** Private Endpoint Connection properties. */ +export interface PrivateEndpointConnectionProperties { + /** State of Private Endpoint Connection. */ + provisioningState?: PrivateEndpointConnectionProvisioningState; + /** Represents a Private Endpoint that is connected to Notification Hubs namespace using Private Endpoint Connection. */ + privateEndpoint?: RemotePrivateEndpointConnection; + /** + * List of group ids. For Notification Hubs, it always contains a single "namespace" element. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly groupIds?: string[]; + /** State of the Private Link Service connection. */ + privateLinkServiceConnectionState?: RemotePrivateLinkServiceConnectionState; +} + +/** Represents a Private Endpoint that is connected to Notification Hubs namespace using Private Endpoint Connection. */ +export interface RemotePrivateEndpointConnection { + /** + * ARM resource ID of the Private Endpoint. This may belong to different subscription and resource group than a Notification Hubs namespace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; +} + +/** State of the Private Link Service connection. */ +export interface RemotePrivateLinkServiceConnectionState { + /** State of Private Link Connection. */ + status?: PrivateLinkConnectionStatus; + /** + * Human-friendly description. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; + /** + * Human-friendly description of required actions. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly actionsRequired?: string; +} + +/** Patch parameter for NamespaceResource. */ +export interface NamespacePatchParameters { + /** The Sku description for a namespace */ + sku?: Sku; + /** Represents namespace properties. */ + properties?: NamespaceProperties; + /** Dictionary of */ + tags?: { [propertyName: string]: string }; +} + +/** The response of the List Namespace operation. */ +export interface NamespaceListResult { + /** + * Gets or sets result of the List AuthorizationRules operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: NamespaceResource[]; + /** + * Gets or sets link to the next set of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** + * Result of the request to list NotificationHubs operations. It contains + * a list of operations and a URL link to get the next set of results. + */ +export interface OperationListResult { + /** + * Gets list of NotificationHubs operations supported by the + * Microsoft.NotificationHubs resource provider. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: Operation[]; + /** + * Gets URL to get the next set of operation list results if there are + * any. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** A NotificationHubs REST API operation */ +export interface Operation { + /** + * Gets operation name: {provider}/{resource}/{operation} + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** The object that represents the operation. */ + display?: OperationDisplay; + /** Optional operation properties. */ + properties?: OperationProperties; + /** + * Gets or sets IsDataAction property. It is used to differentiate management and data plane operations. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isDataAction?: boolean; +} + +/** The object that represents the operation. */ +export interface OperationDisplay { + /** + * Gets service provider: Microsoft.NotificationHubs + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provider?: string; + /** + * Gets resource on which the operation is performed: Invoice, etc. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resource?: string; + /** + * Gets operation type: Read, write, delete, etc. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operation?: string; + /** + * Human-friendly operation description. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; +} + +/** Optional operation properties. */ +export interface OperationProperties { + /** Optional service specification used in Operations API. */ + serviceSpecification?: ServiceSpecification; +} + +/** Optional service specification used in Operations API. */ +export interface ServiceSpecification { + /** + * Log specifications. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly logSpecifications?: LogSpecification[]; + /** + * Metric specification. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly metricSpecifications?: MetricSpecification[]; +} + +/** A single log category specification. */ +export interface LogSpecification { + /** + * Name of the log category. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Display name of the log category. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly displayName?: string; + /** + * Duration of data written to a single blob. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly blobDuration?: string; + /** Category group for the log specification. */ + categoryGroups?: string[]; +} + +/** A metric specification. */ +export interface MetricSpecification { + /** + * Metric name / id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * User-visible metric name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly displayName?: string; + /** + * Description of the metric. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly displayDescription?: string; + /** + * Metric unit. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly unit?: string; + /** + * Type of the aggregation (Average, Minimum, Maximum, Total or Count). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly aggregationType?: string; + /** + * List of availabilities. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly availabilities?: Availability[]; + /** + * List of supported time grain types. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly supportedTimeGrainTypes?: string[]; + /** + * The matching regex pattern to be applied to the field pointed by the "metricsFilterPathSelector" flag in the ARM manifest. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly metricFilterPattern?: string; + /** + * Optional property. If set to true, then zero will be returned for time duration where no metric is emitted / published. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fillGapWithZero?: boolean; +} + +/** Represents metric availability (part of RP operation descriptions). */ +export interface Availability { + /** + * Time grain of the availability. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly timeGrain?: string; + /** + * Duration of the availability blob. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly blobDuration?: string; +} + +/** The response of the List Private Endpoint Connections operation. */ +export interface PrivateEndpointConnectionResourceListResult { + /** + * Gets or sets result of the List AuthorizationRules operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: PrivateEndpointConnectionResource[]; + /** + * Gets or sets link to the next set of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** Represents properties of Private Link Resource. */ +export interface PrivateLinkResourceProperties { + /** + * A Group Id for Private Link. For Notification Hubs, it is always set to "namespace". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly groupId?: string; + /** + * Required members. For Notification Hubs, it's always a collection with a single "namespace" item. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly requiredMembers?: string[]; + /** + * Required DNS zone names. For Notification Hubs, it contains two CNames for Service Bus and Notification Hubs zones. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly requiredZoneNames?: string[]; +} + +/** The response of the List Private Link Resources operation. */ +export interface PrivateLinkResourceListResult { + /** + * Gets or sets result of the List AuthorizationRules operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: PrivateLinkResource[]; + /** + * Gets or sets link to the next set of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** + * Part of Private Endpoint description that stores information about a connection between Private Endpoint and Notification Hubs namespace. + * This is internal class, not visible to customers, and we use it only to discover the link identifier. + */ +export interface ConnectionDetails { + /** + * A unique ID of the connection. This is not the ARM id, but rather an internal identifier set by the Networking RP. Notification Hubs code + * does not analyze it. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * IP address of the Private Endpoint. This is not used by Notification Hubs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateIpAddress?: string; + /** + * Link identifier. This is a string representation of an integer that is also encoded in every IPv6 frame received by Front Door, + * and we use it to create implicit authorization rule that allows connection from the associated Private Endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly linkIdentifier?: string; + /** + * Group name. Always "namespace" for Notification Hubs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly groupId?: string; + /** + * Member name. Always "namespace" for Notification Hubs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly memberName?: string; +} + +/** + * Represents a connectivity information to Notification Hubs namespace. This is part of PrivateLinkService proxy that tell + * the Networking RP how to connect to the Notification Hubs namespace. + */ +export interface GroupConnectivityInformation { + /** + * Group id. Always set to "namespace". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly groupId?: string; + /** + * Member name. Always set to "namespace". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly memberName?: string; + /** + * List of customer-visible domain names that point to a Notification Hubs namespace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly customerVisibleFqdns?: string[]; + /** + * One of the domain name from the customer-visible names; this is used internally by Private Link service to make connection to Notification Hubs + * namespace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly internalFqdn?: string; + /** + * Not used by Notification Hubs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly redirectMapId?: string; + /** + * ARM region for Private Link Service. We use the region that contains the connected Notification Hubs namespace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateLinkServiceArmRegion?: string; +} + +/** A customer-visible sub-resource of Private Endpoint, which describe the connection between Private Endpoint and Notification Hubs namespace. */ +export interface PrivateLinkServiceConnection { + /** Name of the Private Link Service connection. */ + name?: string; + /** List of group ids. Always contains a single element - "namespace" - for Notification Hub Namespace. */ + groupIds?: string[]; + /** Request message provided by the user that created the connection. This is usually used when the connection requires manual approval. */ + requestMessage?: string; +} + +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends Resource {} + +/** 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. */ + tags?: { [propertyName: string]: string }; + /** The geo-location where the resource lives */ + location: string; +} + +/** Description of a CheckAvailability resource. */ +export interface CheckAvailabilityResult extends ProxyResource { + /** + * Gets or sets true if the name is available and can be used to + * create new Namespace/NotificationHub. Otherwise false. + */ + isAvailiable?: boolean; + /** Deprecated - only for compatibility. */ + location?: string; + /** Deprecated - only for compatibility. */ + tags?: { [propertyName: string]: string }; + /** The Sku description for a namespace */ + sku?: Sku; +} + +/** Description of a NotificationHub Resource. */ +export interface DebugSendResponse extends ProxyResource { + /** Deprecated - only for compatibility. */ + location?: string; + /** Deprecated - only for compatibility. */ + tags?: { [propertyName: string]: string }; + /** + * Gets or sets successful send + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly success?: number; + /** + * Gets or sets send failure + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly failure?: number; + /** + * Gets or sets actual failure description + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly results?: RegistrationResult[]; +} + +/** Response for POST requests that return single SharedAccessAuthorizationRule. */ +export interface SharedAccessAuthorizationRuleResource extends ProxyResource { + /** Deprecated - only for compatibility. */ + location?: string; + /** Deprecated - only for compatibility. */ + tags?: { [propertyName: string]: string }; + /** Gets or sets the rights associated with the rule. */ + rights?: AccessRights[]; + /** + * Gets a base64-encoded 256-bit primary key for signing and + * validating the SAS token. + */ + primaryKey?: string; + /** + * Gets a base64-encoded 256-bit primary key for signing and + * validating the SAS token. + */ + secondaryKey?: string; + /** + * Gets a string that describes the authorization rule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly keyName?: string; + /** + * Gets the last modified time for this rule + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly modifiedTime?: Date; + /** + * Gets the created time for this rule + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdTime?: Date; + /** + * Gets a string that describes the claim type + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly claimType?: string; + /** + * Gets a string that describes the claim value + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly claimValue?: string; + /** + * Gets the revision number for the rule + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly revision?: number; +} + +/** + * Description of a NotificationHub PNS Credentials. This is a response of the POST requests that return namespace or hubs + * PNS credentials. + */ +export interface PnsCredentialsResource extends ProxyResource { + /** Deprecated - only for compatibility. */ + location?: string; + /** Deprecated - only for compatibility. */ + tags?: { [propertyName: string]: string }; + /** Description of a NotificationHub AdmCredential. */ + admCredential?: AdmCredential; + /** Description of a NotificationHub ApnsCredential. */ + apnsCredential?: ApnsCredential; + /** Description of a NotificationHub BaiduCredential. */ + baiduCredential?: BaiduCredential; + /** Description of a NotificationHub BrowserCredential. */ + browserCredential?: BrowserCredential; + /** Description of a NotificationHub GcmCredential. */ + gcmCredential?: GcmCredential; + /** Description of a NotificationHub MpnsCredential. */ + mpnsCredential?: MpnsCredential; + /** Description of a NotificationHub WnsCredential. */ + wnsCredential?: WnsCredential; + /** Description of a NotificationHub XiaomiCredential. */ + xiaomiCredential?: XiaomiCredential; + /** Description of a NotificationHub FcmV1Credential. */ + fcmV1Credential?: FcmV1Credential; +} + +/** Represents a Private Endpoint Connection ARM resource - a sub-resource of Notification Hubs namespace. */ +export interface PrivateEndpointConnectionResource extends ProxyResource { + /** Private Endpoint Connection properties. */ + properties?: PrivateEndpointConnectionProperties; +} + +/** A Private Link Arm Resource. */ +export interface PrivateLinkResource extends ProxyResource { + /** Represents properties of Private Link Resource. */ + properties?: PrivateLinkResourceProperties; +} + +/** Notification Hub Resource. */ +export interface NotificationHubResource extends TrackedResource { + /** The Sku description for a namespace */ + sku?: Sku; + /** Gets or sets the NotificationHub name. */ + namePropertiesName?: string; + /** Gets or sets the RegistrationTtl of the created NotificationHub */ + registrationTtl?: string; + /** + * Gets or sets the AuthorizationRules of the created NotificationHub + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly authorizationRules?: SharedAccessAuthorizationRuleProperties[]; + /** Description of a NotificationHub ApnsCredential. */ + apnsCredential?: ApnsCredential; + /** Description of a NotificationHub WnsCredential. */ + wnsCredential?: WnsCredential; + /** Description of a NotificationHub GcmCredential. */ + gcmCredential?: GcmCredential; + /** Description of a NotificationHub MpnsCredential. */ + mpnsCredential?: MpnsCredential; + /** Description of a NotificationHub AdmCredential. */ + admCredential?: AdmCredential; + /** Description of a NotificationHub BaiduCredential. */ + baiduCredential?: BaiduCredential; + /** Description of a NotificationHub BrowserCredential. */ + browserCredential?: BrowserCredential; + /** Description of a NotificationHub XiaomiCredential. */ + xiaomiCredential?: XiaomiCredential; + /** Description of a NotificationHub FcmV1Credential. */ + fcmV1Credential?: FcmV1Credential; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly dailyMaxActiveDevices?: number; +} + +/** Notification Hubs Namespace Resource. */ +export interface NamespaceResource extends TrackedResource { + /** The Sku description for a namespace */ + sku: Sku; + /** + * Name of the Notification Hubs namespace. This is immutable property, set automatically + * by the service when the namespace is created. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly namePropertiesName?: string; + /** Defines values for OperationProvisioningState. */ + provisioningState?: OperationProvisioningState; + /** Namespace status. */ + status?: NamespaceStatus; + /** + * Gets or sets whether or not the namespace is currently enabled. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly enabled?: boolean; + /** + * Gets or sets whether or not the namespace is set as Critical. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly critical?: boolean; + /** + * Namespace subscription id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly subscriptionId?: string; + /** + * Region. The value is always set to the same value as Namespace.Location, so we are deprecating + * this property. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly region?: string; + /** + * Azure Insights Metrics id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly metricId?: string; + /** + * Time when the namespace was created. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdAt?: Date; + /** + * Time when the namespace was updated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly updatedAt?: Date; + /** Defines values for NamespaceType. */ + namespaceType?: NamespaceType; + /** Allowed replication region */ + replicationRegion?: ReplicationRegion; + /** Namespace SKU name. */ + zoneRedundancy?: ZoneRedundancyPreference; + /** A collection of network authorization rules. */ + networkAcls?: NetworkAcls; + /** Collection of Notification Hub or Notification Hub Namespace PNS credentials. */ + pnsCredentials?: PnsCredentials; + /** + * Gets or sets endpoint you can use to perform NotificationHub + * operations. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly serviceBusEndpoint?: string; + /** + * Private Endpoint Connections for namespace + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointConnections?: PrivateEndpointConnectionResource[]; + /** Gets or sets scaleUnit where the namespace gets created */ + scaleUnit?: string; + /** Deprecated. */ + dataCenter?: string; + /** Type of public network access. */ + publicNetworkAccess?: PublicNetworkAccess; +} + +/** Defines headers for PrivateEndpointConnections_delete operation. */ +export interface PrivateEndpointConnectionsDeleteHeaders { + location?: string; +} + +/** Known values of {@link SkuName} that the service accepts. */ +export enum KnownSkuName { + /** Free */ + Free = "Free", + /** Basic */ + Basic = "Basic", + /** Standard */ + Standard = "Standard", +} + +/** + * Defines values for SkuName. \ + * {@link KnownSkuName} can be used interchangeably with SkuName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Free** \ + * **Basic** \ + * **Standard** + */ +export type SkuName = string; + +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key", +} + +/** + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type CreatedByType = string; + +/** Known values of {@link AccessRights} that the service accepts. */ +export enum KnownAccessRights { + /** Manage */ + Manage = "Manage", + /** Send */ + Send = "Send", + /** Listen */ + Listen = "Listen", +} + +/** + * Defines values for AccessRights. \ + * {@link KnownAccessRights} can be used interchangeably with AccessRights, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Manage** \ + * **Send** \ + * **Listen** + */ +export type AccessRights = string; + +/** Known values of {@link PolicyKeyType} that the service accepts. */ +export enum KnownPolicyKeyType { + /** PrimaryKey */ + PrimaryKey = "PrimaryKey", + /** SecondaryKey */ + SecondaryKey = "SecondaryKey", +} + +/** + * Defines values for PolicyKeyType. \ + * {@link KnownPolicyKeyType} can be used interchangeably with PolicyKeyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PrimaryKey** \ + * **SecondaryKey** */ -export type SkuName = string; -/** Defines values for NamespaceType. */ -export type NamespaceType = "Messaging" | "NotificationHub"; -/** Defines values for AccessRights. */ -export type AccessRights = "Manage" | "Send" | "Listen"; +export type PolicyKeyType = string; + +/** Known values of {@link OperationProvisioningState} that the service accepts. */ +export enum KnownOperationProvisioningState { + /** Unknown */ + Unknown = "Unknown", + /** InProgress */ + InProgress = "InProgress", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled", + /** Pending */ + Pending = "Pending", + /** Disabled */ + Disabled = "Disabled", +} -/** Optional parameters. */ -export interface OperationsListOptionalParams - extends coreClient.OperationOptions {} +/** + * Defines values for OperationProvisioningState. \ + * {@link KnownOperationProvisioningState} can be used interchangeably with OperationProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unknown** \ + * **InProgress** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** \ + * **Pending** \ + * **Disabled** + */ +export type OperationProvisioningState = string; + +/** Known values of {@link NamespaceStatus} that the service accepts. */ +export enum KnownNamespaceStatus { + /** Created */ + Created = "Created", + /** Creating */ + Creating = "Creating", + /** Suspended */ + Suspended = "Suspended", + /** Deleting */ + Deleting = "Deleting", +} -/** Contains response data for the list operation. */ -export type OperationsListResponse = OperationListResult; +/** + * Defines values for NamespaceStatus. \ + * {@link KnownNamespaceStatus} can be used interchangeably with NamespaceStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Created** \ + * **Creating** \ + * **Suspended** \ + * **Deleting** + */ +export type NamespaceStatus = string; + +/** Known values of {@link NamespaceType} that the service accepts. */ +export enum KnownNamespaceType { + /** Messaging */ + Messaging = "Messaging", + /** NotificationHub */ + NotificationHub = "NotificationHub", +} + +/** + * Defines values for NamespaceType. \ + * {@link KnownNamespaceType} can be used interchangeably with NamespaceType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Messaging** \ + * **NotificationHub** + */ +export type NamespaceType = string; + +/** Known values of {@link ReplicationRegion} that the service accepts. */ +export enum KnownReplicationRegion { + /** Default */ + Default = "Default", + /** WestUs2 */ + WestUs2 = "WestUs2", + /** NorthEurope */ + NorthEurope = "NorthEurope", + /** AustraliaEast */ + AustraliaEast = "AustraliaEast", + /** BrazilSouth */ + BrazilSouth = "BrazilSouth", + /** SouthEastAsia */ + SouthEastAsia = "SouthEastAsia", + /** SouthAfricaNorth */ + SouthAfricaNorth = "SouthAfricaNorth", + /** None */ + None = "None", +} + +/** + * Defines values for ReplicationRegion. \ + * {@link KnownReplicationRegion} can be used interchangeably with ReplicationRegion, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Default** \ + * **WestUs2** \ + * **NorthEurope** \ + * **AustraliaEast** \ + * **BrazilSouth** \ + * **SouthEastAsia** \ + * **SouthAfricaNorth** \ + * **None** + */ +export type ReplicationRegion = string; + +/** Known values of {@link ZoneRedundancyPreference} that the service accepts. */ +export enum KnownZoneRedundancyPreference { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled", +} + +/** + * Defines values for ZoneRedundancyPreference. \ + * {@link KnownZoneRedundancyPreference} can be used interchangeably with ZoneRedundancyPreference, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **Enabled** + */ +export type ZoneRedundancyPreference = string; + +/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ +export enum KnownPrivateEndpointConnectionProvisioningState { + /** Unknown */ + Unknown = "Unknown", + /** Succeeded */ + Succeeded = "Succeeded", + /** Creating */ + Creating = "Creating", + /** Updating */ + Updating = "Updating", + /** UpdatingByProxy */ + UpdatingByProxy = "UpdatingByProxy", + /** Deleting */ + Deleting = "Deleting", + /** DeletingByProxy */ + DeletingByProxy = "DeletingByProxy", + /** Deleted */ + Deleted = "Deleted", +} + +/** + * Defines values for PrivateEndpointConnectionProvisioningState. \ + * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unknown** \ + * **Succeeded** \ + * **Creating** \ + * **Updating** \ + * **UpdatingByProxy** \ + * **Deleting** \ + * **DeletingByProxy** \ + * **Deleted** + */ +export type PrivateEndpointConnectionProvisioningState = string; + +/** Known values of {@link PrivateLinkConnectionStatus} that the service accepts. */ +export enum KnownPrivateLinkConnectionStatus { + /** Disconnected */ + Disconnected = "Disconnected", + /** Pending */ + Pending = "Pending", + /** Approved */ + Approved = "Approved", + /** Rejected */ + Rejected = "Rejected", +} + +/** + * Defines values for PrivateLinkConnectionStatus. \ + * {@link KnownPrivateLinkConnectionStatus} can be used interchangeably with PrivateLinkConnectionStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disconnected** \ + * **Pending** \ + * **Approved** \ + * **Rejected** + */ +export type PrivateLinkConnectionStatus = string; + +/** Known values of {@link PublicNetworkAccess} that the service accepts. */ +export enum KnownPublicNetworkAccess { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled", +} + +/** + * Defines values for PublicNetworkAccess. \ + * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type PublicNetworkAccess = string; /** Optional parameters. */ -export interface OperationsListNextOptionalParams +export interface NotificationHubsCheckNotificationHubAvailabilityOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationListResult; +/** Contains response data for the checkNotificationHubAvailability operation. */ +export type NotificationHubsCheckNotificationHubAvailabilityResponse = + CheckAvailabilityResult; /** Optional parameters. */ -export interface NamespacesCheckAvailabilityOptionalParams +export interface NotificationHubsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkAvailability operation. */ -export type NamespacesCheckAvailabilityResponse = CheckAvailabilityResult; +/** Contains response data for the get operation. */ +export type NotificationHubsGetResponse = NotificationHubResource; /** Optional parameters. */ -export interface NamespacesCreateOrUpdateOptionalParams +export interface NotificationHubsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type NamespacesCreateOrUpdateResponse = NamespaceResource; +export type NotificationHubsCreateOrUpdateResponse = NotificationHubResource; /** Optional parameters. */ -export interface NamespacesPatchOptionalParams +export interface NotificationHubsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the patch operation. */ -export type NamespacesPatchResponse = NamespaceResource; +/** Contains response data for the update operation. */ +export type NotificationHubsUpdateResponse = NotificationHubResource; /** Optional parameters. */ -export interface NamespacesDeleteOptionalParams +export interface NotificationHubsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface NotificationHubsListOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Continuation token. */ + skipToken?: string; + /** Page size. */ + top?: number; } +/** Contains response data for the list operation. */ +export type NotificationHubsListResponse = NotificationHubListResult; + /** Optional parameters. */ -export interface NamespacesGetOptionalParams +export interface NotificationHubsDebugSendOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type NamespacesGetResponse = NamespaceResource; +/** Contains response data for the debugSend operation. */ +export type NotificationHubsDebugSendResponse = DebugSendResponse; /** Optional parameters. */ -export interface NamespacesCreateOrUpdateAuthorizationRuleOptionalParams +export interface NotificationHubsCreateOrUpdateAuthorizationRuleOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdateAuthorizationRule operation. */ -export type NamespacesCreateOrUpdateAuthorizationRuleResponse = SharedAccessAuthorizationRuleResource; +export type NotificationHubsCreateOrUpdateAuthorizationRuleResponse = + SharedAccessAuthorizationRuleResource; /** Optional parameters. */ -export interface NamespacesDeleteAuthorizationRuleOptionalParams +export interface NotificationHubsDeleteAuthorizationRuleOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface NamespacesGetAuthorizationRuleOptionalParams +export interface NotificationHubsGetAuthorizationRuleOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getAuthorizationRule operation. */ -export type NamespacesGetAuthorizationRuleResponse = SharedAccessAuthorizationRuleResource; - -/** Optional parameters. */ -export interface NamespacesListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type NamespacesListResponse = NamespaceListResult; - -/** Optional parameters. */ -export interface NamespacesListAllOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listAll operation. */ -export type NamespacesListAllResponse = NamespaceListResult; +export type NotificationHubsGetAuthorizationRuleResponse = + SharedAccessAuthorizationRuleResource; /** Optional parameters. */ -export interface NamespacesListAuthorizationRulesOptionalParams +export interface NotificationHubsListAuthorizationRulesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAuthorizationRules operation. */ -export type NamespacesListAuthorizationRulesResponse = SharedAccessAuthorizationRuleListResult; +export type NotificationHubsListAuthorizationRulesResponse = + SharedAccessAuthorizationRuleListResult; /** Optional parameters. */ -export interface NamespacesListKeysOptionalParams +export interface NotificationHubsListKeysOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listKeys operation. */ -export type NamespacesListKeysResponse = ResourceListKeys; +export type NotificationHubsListKeysResponse = ResourceListKeys; /** Optional parameters. */ -export interface NamespacesRegenerateKeysOptionalParams +export interface NotificationHubsRegenerateKeysOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the regenerateKeys operation. */ -export type NamespacesRegenerateKeysResponse = ResourceListKeys; +export type NotificationHubsRegenerateKeysResponse = ResourceListKeys; /** Optional parameters. */ -export interface NamespacesListNextOptionalParams +export interface NotificationHubsGetPnsCredentialsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type NamespacesListNextResponse = NamespaceListResult; +/** Contains response data for the getPnsCredentials operation. */ +export type NotificationHubsGetPnsCredentialsResponse = PnsCredentialsResource; /** Optional parameters. */ -export interface NamespacesListAllNextOptionalParams +export interface NotificationHubsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAllNext operation. */ -export type NamespacesListAllNextResponse = NamespaceListResult; +/** Contains response data for the listNext operation. */ +export type NotificationHubsListNextResponse = NotificationHubListResult; /** Optional parameters. */ -export interface NamespacesListAuthorizationRulesNextOptionalParams +export interface NotificationHubsListAuthorizationRulesNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAuthorizationRulesNext operation. */ -export type NamespacesListAuthorizationRulesNextResponse = SharedAccessAuthorizationRuleListResult; +export type NotificationHubsListAuthorizationRulesNextResponse = + SharedAccessAuthorizationRuleListResult; /** Optional parameters. */ -export interface NotificationHubsCheckNotificationHubAvailabilityOptionalParams +export interface NamespacesCheckAvailabilityOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkNotificationHubAvailability operation. */ -export type NotificationHubsCheckNotificationHubAvailabilityResponse = CheckAvailabilityResult; +/** Contains response data for the checkAvailability operation. */ +export type NamespacesCheckAvailabilityResponse = CheckAvailabilityResult; /** Optional parameters. */ -export interface NotificationHubsCreateOrUpdateOptionalParams +export interface NamespacesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type NotificationHubsCreateOrUpdateResponse = NotificationHubResource; +/** Contains response data for the get operation. */ +export type NamespacesGetResponse = NamespaceResource; /** Optional parameters. */ -export interface NotificationHubsPatchOptionalParams +export interface NamespacesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Parameters supplied to patch a NotificationHub Resource. */ - parameters?: NotificationHubPatchParameters; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the patch operation. */ -export type NotificationHubsPatchResponse = NotificationHubResource; +/** Contains response data for the createOrUpdate operation. */ +export type NamespacesCreateOrUpdateResponse = NamespaceResource; /** Optional parameters. */ -export interface NotificationHubsDeleteOptionalParams +export interface NamespacesUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the update operation. */ +export type NamespacesUpdateResponse = NamespaceResource; + /** Optional parameters. */ -export interface NotificationHubsGetOptionalParams +export interface NamespacesDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type NotificationHubsGetResponse = NotificationHubResource; +/** Optional parameters. */ +export interface NamespacesListAllOptionalParams + extends coreClient.OperationOptions { + /** Skip token for subsequent requests. */ + skipToken?: string; + /** Maximum number of results to return. */ + top?: number; +} + +/** Contains response data for the listAll operation. */ +export type NamespacesListAllResponse = NamespaceListResult; /** Optional parameters. */ -export interface NotificationHubsDebugSendOptionalParams +export interface NamespacesListOptionalParams extends coreClient.OperationOptions { - /** Debug send parameters */ - parameters?: Record; + /** Skip token for subsequent requests. */ + skipToken?: string; + /** Maximum number of results to return. */ + top?: number; } -/** Contains response data for the debugSend operation. */ -export type NotificationHubsDebugSendResponse = DebugSendResponse; +/** Contains response data for the list operation. */ +export type NamespacesListResponse = NamespaceListResult; /** Optional parameters. */ -export interface NotificationHubsCreateOrUpdateAuthorizationRuleOptionalParams +export interface NamespacesCreateOrUpdateAuthorizationRuleOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdateAuthorizationRule operation. */ -export type NotificationHubsCreateOrUpdateAuthorizationRuleResponse = SharedAccessAuthorizationRuleResource; +export type NamespacesCreateOrUpdateAuthorizationRuleResponse = + SharedAccessAuthorizationRuleResource; /** Optional parameters. */ -export interface NotificationHubsDeleteAuthorizationRuleOptionalParams +export interface NamespacesDeleteAuthorizationRuleOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface NotificationHubsGetAuthorizationRuleOptionalParams +export interface NamespacesGetAuthorizationRuleOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getAuthorizationRule operation. */ -export type NotificationHubsGetAuthorizationRuleResponse = SharedAccessAuthorizationRuleResource; - -/** Optional parameters. */ -export interface NotificationHubsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type NotificationHubsListResponse = NotificationHubListResult; +export type NamespacesGetAuthorizationRuleResponse = + SharedAccessAuthorizationRuleResource; /** Optional parameters. */ -export interface NotificationHubsListAuthorizationRulesOptionalParams +export interface NamespacesListAuthorizationRulesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAuthorizationRules operation. */ -export type NotificationHubsListAuthorizationRulesResponse = SharedAccessAuthorizationRuleListResult; +export type NamespacesListAuthorizationRulesResponse = + SharedAccessAuthorizationRuleListResult; /** Optional parameters. */ -export interface NotificationHubsListKeysOptionalParams +export interface NamespacesListKeysOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listKeys operation. */ -export type NotificationHubsListKeysResponse = ResourceListKeys; +export type NamespacesListKeysResponse = ResourceListKeys; /** Optional parameters. */ -export interface NotificationHubsRegenerateKeysOptionalParams +export interface NamespacesRegenerateKeysOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the regenerateKeys operation. */ -export type NotificationHubsRegenerateKeysResponse = ResourceListKeys; +export type NamespacesRegenerateKeysResponse = ResourceListKeys; /** Optional parameters. */ -export interface NotificationHubsGetPnsCredentialsOptionalParams +export interface NamespacesGetPnsCredentialsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getPnsCredentials operation. */ -export type NotificationHubsGetPnsCredentialsResponse = PnsCredentialsResource; +export type NamespacesGetPnsCredentialsResponse = PnsCredentialsResource; /** Optional parameters. */ -export interface NotificationHubsListNextOptionalParams +export interface NamespacesListAllNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAllNext operation. */ +export type NamespacesListAllNextResponse = NamespaceListResult; + +/** Optional parameters. */ +export interface NamespacesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type NotificationHubsListNextResponse = NotificationHubListResult; +export type NamespacesListNextResponse = NamespaceListResult; /** Optional parameters. */ -export interface NotificationHubsListAuthorizationRulesNextOptionalParams +export interface NamespacesListAuthorizationRulesNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAuthorizationRulesNext operation. */ -export type NotificationHubsListAuthorizationRulesNextResponse = SharedAccessAuthorizationRuleListResult; +export type NamespacesListAuthorizationRulesNextResponse = + SharedAccessAuthorizationRuleListResult; + +/** Optional parameters. */ +export interface OperationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationListResult; + +/** Optional parameters. */ +export interface OperationsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = OperationListResult; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type PrivateEndpointConnectionsUpdateResponse = + PrivateEndpointConnectionResource; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the delete operation. */ +export type PrivateEndpointConnectionsDeleteResponse = + PrivateEndpointConnectionsDeleteHeaders; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type PrivateEndpointConnectionsGetResponse = + PrivateEndpointConnectionResource; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type PrivateEndpointConnectionsListResponse = + PrivateEndpointConnectionResourceListResult; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsGetGroupIdOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getGroupId operation. */ +export type PrivateEndpointConnectionsGetGroupIdResponse = PrivateLinkResource; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsListGroupIdsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listGroupIds operation. */ +export type PrivateEndpointConnectionsListGroupIdsResponse = + PrivateLinkResourceListResult; /** Optional parameters. */ export interface NotificationHubsManagementClientOptionalParams diff --git a/sdk/notificationhubs/arm-notificationhubs/src/models/mappers.ts b/sdk/notificationhubs/arm-notificationhubs/src/models/mappers.ts index e7d7182bc3f1..3b293ac6d11c 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/models/mappers.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/models/mappers.ts @@ -8,109 +8,6 @@ import * as coreClient from "@azure/core-client"; -export const OperationListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const Operation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Operation", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - display: { - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplay" - } - } - } - } -}; - -export const OperationDisplay: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationDisplay", - modelProperties: { - provider: { - serializedName: "provider", - readOnly: true, - type: { - name: "String" - } - }, - resource: { - serializedName: "resource", - readOnly: true, - type: { - name: "String" - } - }, - operation: { - serializedName: "operation", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - } - } - } -}; - export const CheckAvailabilityParameters: coreClient.CompositeMapper = { type: { name: "Composite", @@ -120,51 +17,54 @@ export const CheckAvailabilityParameters: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { + constraints: { + MinLength: 1, + }, serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, + }, + isAvailiable: { + serializedName: "isAvailiable", + type: { + name: "Boolean", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, - isAvailiable: { - serializedName: "isAvailiable", - type: { - name: "Boolean" - } - } - } - } + }, + }, }; export const Sku: coreClient.CompositeMapper = { @@ -176,35 +76,35 @@ export const Sku: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", type: { - name: "String" - } + name: "String", + }, }, size: { serializedName: "size", type: { - name: "String" - } + name: "String", + }, }, family: { serializedName: "family", type: { - name: "String" - } + name: "String", + }, }, capacity: { serializedName: "capacity", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -216,270 +116,250 @@ 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" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "String", + }, }, - sku: { - serializedName: "sku", + systemData: { + serializedName: "systemData", type: { name: "Composite", - className: "Sku" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; -export const NamespacePatchParameters: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NamespacePatchParameters", + className: "SystemData", modelProperties: { - tags: { - serializedName: "tags", + createdBy: { + serializedName: "createdBy", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "String", + }, }, - sku: { - serializedName: "sku", + createdByType: { + serializedName: "createdByType", type: { - name: "Composite", - className: "Sku" - } - } - } - } + name: "String", + }, + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime", + }, + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String", + }, + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String", + }, + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime", + }, + }, + }, + }, }; -export const SharedAccessAuthorizationRuleCreateOrUpdateParameters: coreClient.CompositeMapper = { +export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharedAccessAuthorizationRuleCreateOrUpdateParameters", + className: "ErrorResponse", modelProperties: { - properties: { - serializedName: "properties", + error: { + serializedName: "error", type: { name: "Composite", - className: "SharedAccessAuthorizationRuleProperties" - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, }; -export const SharedAccessAuthorizationRuleProperties: coreClient.CompositeMapper = { +export const ErrorDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharedAccessAuthorizationRuleProperties", + className: "ErrorDetail", modelProperties: { - rights: { - serializedName: "rights", - type: { - name: "Sequence", - element: { - type: { - name: "Enum", - allowedValues: ["Manage", "Send", "Listen"] - } - } - } - }, - primaryKey: { - serializedName: "primaryKey", - readOnly: true, - type: { - name: "String" - } - }, - secondaryKey: { - serializedName: "secondaryKey", - readOnly: true, - type: { - name: "String" - } - }, - keyName: { - serializedName: "keyName", - readOnly: true, - type: { - name: "String" - } - }, - claimType: { - serializedName: "claimType", - readOnly: true, - type: { - name: "String" - } - }, - claimValue: { - serializedName: "claimValue", + code: { + serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - modifiedTime: { - serializedName: "modifiedTime", + message: { + serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - createdTime: { - serializedName: "createdTime", + target: { + serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - revision: { - serializedName: "revision", + details: { + serializedName: "details", readOnly: true, - type: { - name: "Number" - } - } - } - } -}; - -export const NamespaceListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NamespaceListResult", - modelProperties: { - value: { - serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "NamespaceResource" - } - } - } + className: "ErrorDetail", + }, + }, + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const SharedAccessAuthorizationRuleListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SharedAccessAuthorizationRuleListResult", - modelProperties: { - value: { - serializedName: "value", + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SharedAccessAuthorizationRuleResource" - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ResourceListKeys: coreClient.CompositeMapper = { +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceListKeys", + className: "ErrorAdditionalInfo", modelProperties: { - primaryConnectionString: { - serializedName: "primaryConnectionString", - type: { - name: "String" - } - }, - secondaryConnectionString: { - serializedName: "secondaryConnectionString", - type: { - name: "String" - } - }, - primaryKey: { - serializedName: "primaryKey", + type: { + serializedName: "type", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - secondaryKey: { - serializedName: "secondaryKey", + info: { + serializedName: "info", + readOnly: true, type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "any" } }, + }, }, - keyName: { - serializedName: "keyName", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const PolicykeyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PolicykeyResource", - modelProperties: { - policyKey: { - serializedName: "policyKey", - type: { - name: "String" - } - } - } - } -}; +export const SharedAccessAuthorizationRuleProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SharedAccessAuthorizationRuleProperties", + modelProperties: { + rights: { + serializedName: "rights", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + primaryKey: { + serializedName: "primaryKey", + type: { + name: "String", + }, + }, + secondaryKey: { + serializedName: "secondaryKey", + type: { + name: "String", + }, + }, + keyName: { + serializedName: "keyName", + readOnly: true, + type: { + name: "String", + }, + }, + modifiedTime: { + serializedName: "modifiedTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + createdTime: { + serializedName: "createdTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + claimType: { + serializedName: "claimType", + readOnly: true, + type: { + name: "String", + }, + }, + claimValue: { + serializedName: "claimValue", + readOnly: true, + type: { + name: "String", + }, + }, + revision: { + serializedName: "revision", + readOnly: true, + type: { + name: "Number", + }, + }, + }, + }, + }; export const ApnsCredential: coreClient.CompositeMapper = { type: { @@ -489,53 +369,57 @@ export const ApnsCredential: coreClient.CompositeMapper = { apnsCertificate: { serializedName: "properties.apnsCertificate", type: { - name: "String" - } + name: "String", + }, }, certificateKey: { serializedName: "properties.certificateKey", type: { - name: "String" - } + name: "String", + }, }, endpoint: { + constraints: { + MinLength: 1, + }, serializedName: "properties.endpoint", + required: true, type: { - name: "String" - } + name: "String", + }, }, thumbprint: { serializedName: "properties.thumbprint", type: { - name: "String" - } + name: "String", + }, }, keyId: { serializedName: "properties.keyId", type: { - name: "String" - } + name: "String", + }, }, appName: { serializedName: "properties.appName", type: { - name: "String" - } + name: "String", + }, }, appId: { serializedName: "properties.appId", type: { - name: "String" - } + name: "String", + }, }, token: { serializedName: "properties.token", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WnsCredential: coreClient.CompositeMapper = { @@ -546,23 +430,35 @@ export const WnsCredential: coreClient.CompositeMapper = { packageSid: { serializedName: "properties.packageSid", type: { - name: "String" - } + name: "String", + }, }, secretKey: { serializedName: "properties.secretKey", type: { - name: "String" - } + name: "String", + }, }, windowsLiveEndpoint: { serializedName: "properties.windowsLiveEndpoint", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + certificateKey: { + serializedName: "properties.certificateKey", + type: { + name: "String", + }, + }, + wnsCertificate: { + serializedName: "properties.wnsCertificate", + type: { + name: "String", + }, + }, + }, + }, }; export const GcmCredential: coreClient.CompositeMapper = { @@ -573,17 +469,21 @@ export const GcmCredential: coreClient.CompositeMapper = { gcmEndpoint: { serializedName: "properties.gcmEndpoint", type: { - name: "String" - } + name: "String", + }, }, googleApiKey: { + constraints: { + MinLength: 1, + }, serializedName: "properties.googleApiKey", + required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MpnsCredential: coreClient.CompositeMapper = { @@ -592,25 +492,37 @@ export const MpnsCredential: coreClient.CompositeMapper = { className: "MpnsCredential", modelProperties: { mpnsCertificate: { + constraints: { + MinLength: 1, + }, serializedName: "properties.mpnsCertificate", + required: true, type: { - name: "String" - } + name: "String", + }, }, certificateKey: { + constraints: { + MinLength: 1, + }, serializedName: "properties.certificateKey", + required: true, type: { - name: "String" - } + name: "String", + }, }, thumbprint: { + constraints: { + MinLength: 1, + }, serializedName: "properties.thumbprint", + required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AdmCredential: coreClient.CompositeMapper = { @@ -619,25 +531,37 @@ export const AdmCredential: coreClient.CompositeMapper = { className: "AdmCredential", modelProperties: { clientId: { + constraints: { + MinLength: 1, + }, serializedName: "properties.clientId", + required: true, type: { - name: "String" - } + name: "String", + }, }, clientSecret: { + constraints: { + MinLength: 1, + }, serializedName: "properties.clientSecret", + required: true, type: { - name: "String" - } + name: "String", + }, }, authTokenUrl: { + constraints: { + MinLength: 1, + }, serializedName: "properties.authTokenUrl", + required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BaiduCredential: coreClient.CompositeMapper = { @@ -646,429 +570,1718 @@ export const BaiduCredential: coreClient.CompositeMapper = { className: "BaiduCredential", modelProperties: { baiduApiKey: { + constraints: { + MinLength: 1, + }, serializedName: "properties.baiduApiKey", + required: true, type: { - name: "String" - } + name: "String", + }, }, baiduEndPoint: { + constraints: { + MinLength: 1, + }, serializedName: "properties.baiduEndPoint", + required: true, type: { - name: "String" - } + name: "String", + }, }, baiduSecretKey: { + constraints: { + MinLength: 1, + }, serializedName: "properties.baiduSecretKey", + required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const NotificationHubListResult: coreClient.CompositeMapper = { +export const BrowserCredential: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotificationHubListResult", + className: "BrowserCredential", modelProperties: { - value: { - serializedName: "value", + subject: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.subject", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NotificationHubResource" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", + vapidPrivateKey: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.vapidPrivateKey", + required: true, + type: { + name: "String", + }, + }, + vapidPublicKey: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.vapidPublicKey", + required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SubResource: coreClient.CompositeMapper = { +export const XiaomiCredential: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SubResource", + className: "XiaomiCredential", modelProperties: { - id: { - serializedName: "id", + appSecret: { + serializedName: "properties.appSecret", + type: { + name: "String", + }, + }, + endpoint: { + serializedName: "properties.endpoint", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CheckAvailabilityResult: coreClient.CompositeMapper = { +export const FcmV1Credential: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CheckAvailabilityResult", + className: "FcmV1Credential", modelProperties: { - ...Resource.type.modelProperties, - isAvailiable: { - serializedName: "isAvailiable", + clientEmail: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.clientEmail", + required: true, type: { - name: "Boolean" - } - } - } - } + name: "String", + }, + }, + privateKey: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.privateKey", + required: true, + type: { + name: "String", + }, + }, + projectId: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.projectId", + required: true, + type: { + name: "String", + }, + }, + }, + }, }; -export const NamespaceCreateOrUpdateParameters: coreClient.CompositeMapper = { +export const NotificationHubPatchParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NamespaceCreateOrUpdateParameters", + className: "NotificationHubPatchParameters", modelProperties: { - ...Resource.type.modelProperties, - namePropertiesName: { + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku", + }, + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + name: { serializedName: "properties.name", type: { - name: "String" - } + name: "String", + }, }, - provisioningState: { - serializedName: "properties.provisioningState", + registrationTtl: { + serializedName: "properties.registrationTtl", type: { - name: "String" - } + name: "String", + }, }, - region: { - serializedName: "properties.region", + authorizationRules: { + serializedName: "properties.authorizationRules", + readOnly: true, type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedAccessAuthorizationRuleProperties", + }, + }, + }, }, - metricId: { - serializedName: "properties.metricId", + apnsCredential: { + serializedName: "properties.apnsCredential", + type: { + name: "Composite", + className: "ApnsCredential", + }, + }, + wnsCredential: { + serializedName: "properties.wnsCredential", + type: { + name: "Composite", + className: "WnsCredential", + }, + }, + gcmCredential: { + serializedName: "properties.gcmCredential", + type: { + name: "Composite", + className: "GcmCredential", + }, + }, + mpnsCredential: { + serializedName: "properties.mpnsCredential", + type: { + name: "Composite", + className: "MpnsCredential", + }, + }, + admCredential: { + serializedName: "properties.admCredential", + type: { + name: "Composite", + className: "AdmCredential", + }, + }, + baiduCredential: { + serializedName: "properties.baiduCredential", + type: { + name: "Composite", + className: "BaiduCredential", + }, + }, + browserCredential: { + serializedName: "properties.browserCredential", + type: { + name: "Composite", + className: "BrowserCredential", + }, + }, + xiaomiCredential: { + serializedName: "properties.xiaomiCredential", + type: { + name: "Composite", + className: "XiaomiCredential", + }, + }, + fcmV1Credential: { + serializedName: "properties.fcmV1Credential", + type: { + name: "Composite", + className: "FcmV1Credential", + }, + }, + dailyMaxActiveDevices: { + serializedName: "properties.dailyMaxActiveDevices", readOnly: true, type: { - name: "String" - } + name: "Number", + }, }, - status: { - serializedName: "properties.status", + }, + }, +}; + +export const NotificationHubListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NotificationHubListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NotificationHubResource", + }, + }, + }, }, - createdAt: { - serializedName: "properties.createdAt", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "DateTime" - } + name: "String", + }, }, - updatedAt: { - serializedName: "properties.updatedAt", + }, + }, +}; + +export const RegistrationResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistrationResult", + modelProperties: { + applicationPlatform: { + serializedName: "applicationPlatform", + readOnly: true, type: { - name: "DateTime" - } + name: "String", + }, }, - serviceBusEndpoint: { - serializedName: "properties.serviceBusEndpoint", + pnsHandle: { + serializedName: "pnsHandle", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - subscriptionId: { - serializedName: "properties.subscriptionId", + registrationId: { + serializedName: "registrationId", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - scaleUnit: { - serializedName: "properties.scaleUnit", + outcome: { + serializedName: "outcome", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - enabled: { - serializedName: "properties.enabled", + }, + }, +}; + +export const SharedAccessAuthorizationRuleListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SharedAccessAuthorizationRuleListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedAccessAuthorizationRuleResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ResourceListKeys: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceListKeys", + modelProperties: { + primaryConnectionString: { + serializedName: "primaryConnectionString", + readOnly: true, type: { - name: "Boolean" - } + name: "String", + }, }, - critical: { - serializedName: "properties.critical", + secondaryConnectionString: { + serializedName: "secondaryConnectionString", + readOnly: true, type: { - name: "Boolean" - } + name: "String", + }, }, - dataCenter: { - serializedName: "properties.dataCenter", + primaryKey: { + serializedName: "primaryKey", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - namespaceType: { - serializedName: "properties.namespaceType", + secondaryKey: { + serializedName: "secondaryKey", + readOnly: true, + type: { + name: "String", + }, + }, + keyName: { + serializedName: "keyName", + readOnly: true, type: { - name: "Enum", - allowedValues: ["Messaging", "NotificationHub"] - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const NamespaceResource: coreClient.CompositeMapper = { +export const PolicyKeyResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NamespaceResource", + className: "PolicyKeyResource", modelProperties: { - ...Resource.type.modelProperties, - namePropertiesName: { - serializedName: "properties.name", + policyKey: { + serializedName: "policyKey", + required: true, type: { - name: "String" - } + name: "String", + }, }, - provisioningState: { - serializedName: "properties.provisioningState", + }, + }, +}; + +export const PnsCredentials: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PnsCredentials", + modelProperties: { + admCredential: { + serializedName: "admCredential", type: { - name: "String" - } + name: "Composite", + className: "AdmCredential", + }, }, - region: { - serializedName: "properties.region", + apnsCredential: { + serializedName: "apnsCredential", type: { - name: "String" - } + name: "Composite", + className: "ApnsCredential", + }, }, - metricId: { - serializedName: "properties.metricId", + baiduCredential: { + serializedName: "baiduCredential", + type: { + name: "Composite", + className: "BaiduCredential", + }, + }, + browserCredential: { + serializedName: "browserCredential", + type: { + name: "Composite", + className: "BrowserCredential", + }, + }, + gcmCredential: { + serializedName: "gcmCredential", + type: { + name: "Composite", + className: "GcmCredential", + }, + }, + mpnsCredential: { + serializedName: "mpnsCredential", + type: { + name: "Composite", + className: "MpnsCredential", + }, + }, + wnsCredential: { + serializedName: "wnsCredential", + type: { + name: "Composite", + className: "WnsCredential", + }, + }, + xiaomiCredential: { + serializedName: "xiaomiCredential", + type: { + name: "Composite", + className: "XiaomiCredential", + }, + }, + fcmV1Credential: { + serializedName: "fcmV1Credential", + type: { + name: "Composite", + className: "FcmV1Credential", + }, + }, + }, + }, +}; + +export const NamespaceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NamespaceProperties", + modelProperties: { + name: { + serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + provisioningState: { + serializedName: "provisioningState", + type: { + name: "String", + }, }, status: { - serializedName: "properties.status", + serializedName: "status", + type: { + name: "String", + }, + }, + enabled: { + serializedName: "enabled", + readOnly: true, + type: { + name: "Boolean", + }, + }, + critical: { + serializedName: "critical", + readOnly: true, + type: { + name: "Boolean", + }, + }, + subscriptionId: { + serializedName: "subscriptionId", + readOnly: true, + type: { + name: "String", + }, + }, + region: { + serializedName: "region", + readOnly: true, + type: { + name: "String", + }, + }, + metricId: { + serializedName: "metricId", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, createdAt: { - serializedName: "properties.createdAt", + serializedName: "createdAt", + readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, updatedAt: { - serializedName: "properties.updatedAt", + serializedName: "updatedAt", + readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, - serviceBusEndpoint: { - serializedName: "properties.serviceBusEndpoint", + namespaceType: { + serializedName: "namespaceType", type: { - name: "String" - } + name: "String", + }, }, - subscriptionId: { - serializedName: "properties.subscriptionId", + replicationRegion: { + serializedName: "replicationRegion", type: { - name: "String" - } + name: "String", + }, }, - scaleUnit: { - serializedName: "properties.scaleUnit", + zoneRedundancy: { + defaultValue: "Disabled", + serializedName: "zoneRedundancy", type: { - name: "String" - } + name: "String", + }, }, - enabled: { - serializedName: "properties.enabled", + networkAcls: { + serializedName: "networkAcls", type: { - name: "Boolean" - } + name: "Composite", + className: "NetworkAcls", + }, }, - critical: { - serializedName: "properties.critical", + pnsCredentials: { + serializedName: "pnsCredentials", + type: { + name: "Composite", + className: "PnsCredentials", + }, + }, + serviceBusEndpoint: { + serializedName: "serviceBusEndpoint", + readOnly: true, type: { - name: "Boolean" - } + name: "String", + }, + }, + privateEndpointConnections: { + serializedName: "privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnectionResource", + }, + }, + }, + }, + scaleUnit: { + serializedName: "scaleUnit", + type: { + name: "String", + }, }, dataCenter: { - serializedName: "properties.dataCenter", + serializedName: "dataCenter", + type: { + name: "String", + }, + }, + publicNetworkAccess: { + defaultValue: "Enabled", + serializedName: "publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, + }, + }, + }, +}; + +export const NetworkAcls: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkAcls", + modelProperties: { + ipRules: { + serializedName: "ipRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpRule", + }, + }, + }, + }, + publicNetworkRule: { + serializedName: "publicNetworkRule", + type: { + name: "Composite", + className: "PublicInternetAuthorizationRule", + }, + }, + }, + }, +}; + +export const IpRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpRule", + modelProperties: { + ipMask: { + constraints: { + MinLength: 1, + }, + serializedName: "ipMask", + required: true, + type: { + name: "String", + }, + }, + rights: { + serializedName: "rights", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const PublicInternetAuthorizationRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PublicInternetAuthorizationRule", + modelProperties: { + rights: { + serializedName: "rights", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionProperties", + modelProperties: { + provisioningState: { + serializedName: "provisioningState", + type: { + name: "String", + }, + }, + privateEndpoint: { + serializedName: "privateEndpoint", + type: { + name: "Composite", + className: "RemotePrivateEndpointConnection", + }, + }, + groupIds: { + serializedName: "groupIds", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + privateLinkServiceConnectionState: { + serializedName: "privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "RemotePrivateLinkServiceConnectionState", + }, + }, + }, + }, +}; + +export const RemotePrivateEndpointConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RemotePrivateEndpointConnection", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const RemotePrivateLinkServiceConnectionState: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RemotePrivateLinkServiceConnectionState", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + readOnly: true, + type: { + name: "String", + }, + }, + actionsRequired: { + serializedName: "actionsRequired", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const NamespacePatchParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NamespacePatchParameters", + modelProperties: { + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku", + }, + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "NamespaceProperties", + }, + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, +}; + +export const NamespaceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NamespaceListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NamespaceResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const OperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const Operation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay", + }, + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "OperationProperties", + }, + }, + isDataAction: { + serializedName: "isDataAction", + readOnly: true, + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const OperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", + readOnly: true, + type: { + name: "String", + }, + }, + resource: { + serializedName: "resource", + readOnly: true, + type: { + name: "String", + }, + }, + operation: { + serializedName: "operation", + readOnly: true, + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const OperationProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationProperties", + modelProperties: { + serviceSpecification: { + serializedName: "serviceSpecification", + type: { + name: "Composite", + className: "ServiceSpecification", + }, + }, + }, + }, +}; + +export const ServiceSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceSpecification", + modelProperties: { + logSpecifications: { + serializedName: "logSpecifications", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LogSpecification", + }, + }, + }, + }, + metricSpecifications: { + serializedName: "metricSpecifications", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricSpecification", + }, + }, + }, + }, + }, + }, +}; + +export const LogSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LogSpecification", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + displayName: { + serializedName: "displayName", + readOnly: true, + type: { + name: "String", + }, + }, + blobDuration: { + serializedName: "blobDuration", + readOnly: true, + type: { + name: "String", + }, + }, + categoryGroups: { + serializedName: "categoryGroups", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const MetricSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MetricSpecification", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + displayName: { + serializedName: "displayName", + readOnly: true, + type: { + name: "String", + }, + }, + displayDescription: { + serializedName: "displayDescription", + readOnly: true, + type: { + name: "String", + }, + }, + unit: { + serializedName: "unit", + readOnly: true, + type: { + name: "String", + }, + }, + aggregationType: { + serializedName: "aggregationType", + readOnly: true, + type: { + name: "String", + }, + }, + availabilities: { + serializedName: "availabilities", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Availability", + }, + }, + }, + }, + supportedTimeGrainTypes: { + serializedName: "supportedTimeGrainTypes", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + metricFilterPattern: { + serializedName: "metricFilterPattern", + readOnly: true, + type: { + name: "String", + }, + }, + fillGapWithZero: { + serializedName: "fillGapWithZero", + readOnly: true, + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const Availability: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Availability", + modelProperties: { + timeGrain: { + serializedName: "timeGrain", + readOnly: true, + type: { + name: "String", + }, + }, + blobDuration: { + serializedName: "blobDuration", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const PrivateEndpointConnectionResourceListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PrivateEndpointConnectionResourceListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnectionResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResourceProperties", + modelProperties: { + groupId: { + serializedName: "groupId", + readOnly: true, + type: { + name: "String", + }, + }, + requiredMembers: { + serializedName: "requiredMembers", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + requiredZoneNames: { + serializedName: "requiredZoneNames", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResourceListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ConnectionDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConnectionDetails", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, + privateIpAddress: { + serializedName: "privateIpAddress", + readOnly: true, + type: { + name: "String", + }, + }, + linkIdentifier: { + serializedName: "linkIdentifier", + readOnly: true, + type: { + name: "String", + }, + }, + groupId: { + serializedName: "groupId", + readOnly: true, + type: { + name: "String", + }, + }, + memberName: { + serializedName: "memberName", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GroupConnectivityInformation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GroupConnectivityInformation", + modelProperties: { + groupId: { + serializedName: "groupId", + readOnly: true, + type: { + name: "String", + }, + }, + memberName: { + serializedName: "memberName", + readOnly: true, + type: { + name: "String", + }, + }, + customerVisibleFqdns: { + serializedName: "customerVisibleFqdns", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + internalFqdn: { + serializedName: "internalFqdn", + readOnly: true, + type: { + name: "String", + }, + }, + redirectMapId: { + serializedName: "redirectMapId", + readOnly: true, + type: { + name: "String", + }, + }, + privateLinkServiceArmRegion: { + serializedName: "privateLinkServiceArmRegion", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const PrivateLinkServiceConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkServiceConnection", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + groupIds: { + serializedName: "groupIds", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + requestMessage: { + serializedName: "requestMessage", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties, + }, + }, +}; + +export const TrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - namespaceType: { - serializedName: "properties.namespaceType", + location: { + serializedName: "location", + required: true, type: { - name: "Enum", - allowedValues: ["Messaging", "NotificationHub"] - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SharedAccessAuthorizationRuleResource: coreClient.CompositeMapper = { +export const CheckAvailabilityResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharedAccessAuthorizationRuleResource", + className: "CheckAvailabilityResult", modelProperties: { - ...Resource.type.modelProperties, - rights: { - serializedName: "properties.rights", + ...ProxyResource.type.modelProperties, + isAvailiable: { + serializedName: "isAvailiable", type: { - name: "Sequence", - element: { - type: { - name: "Enum", - allowedValues: ["Manage", "Send", "Listen"] - } - } - } + name: "Boolean", + }, }, - primaryKey: { - serializedName: "properties.primaryKey", - readOnly: true, + location: { + serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, - secondaryKey: { - serializedName: "properties.secondaryKey", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - keyName: { - serializedName: "properties.keyName", - readOnly: true, + sku: { + serializedName: "sku", type: { - name: "String" - } + name: "Composite", + className: "Sku", + }, }, - claimType: { - serializedName: "properties.claimType", - readOnly: true, + }, + }, +}; + +export const DebugSendResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DebugSendResponse", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, - claimValue: { - serializedName: "properties.claimValue", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - modifiedTime: { - serializedName: "properties.modifiedTime", + success: { + serializedName: "properties.success", readOnly: true, type: { - name: "String" - } + name: "Number", + }, }, - createdTime: { - serializedName: "properties.createdTime", + failure: { + serializedName: "properties.failure", readOnly: true, type: { - name: "String" - } + name: "Number", + }, }, - revision: { - serializedName: "properties.revision", + results: { + serializedName: "properties.results", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RegistrationResult", + }, + }, + }, + }, + }, + }, }; -export const NotificationHubCreateOrUpdateParameters: coreClient.CompositeMapper = { +export const SharedAccessAuthorizationRuleResource: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SharedAccessAuthorizationRuleResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + rights: { + serializedName: "properties.rights", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + primaryKey: { + serializedName: "properties.primaryKey", + type: { + name: "String", + }, + }, + secondaryKey: { + serializedName: "properties.secondaryKey", + type: { + name: "String", + }, + }, + keyName: { + serializedName: "properties.keyName", + readOnly: true, + type: { + name: "String", + }, + }, + modifiedTime: { + serializedName: "properties.modifiedTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + createdTime: { + serializedName: "properties.createdTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + claimType: { + serializedName: "properties.claimType", + readOnly: true, + type: { + name: "String", + }, + }, + claimValue: { + serializedName: "properties.claimValue", + readOnly: true, + type: { + name: "String", + }, + }, + revision: { + serializedName: "properties.revision", + readOnly: true, + type: { + name: "Number", + }, + }, + }, + }, + }; + +export const PnsCredentialsResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotificationHubCreateOrUpdateParameters", + className: "PnsCredentialsResource", modelProperties: { - ...Resource.type.modelProperties, - namePropertiesName: { - serializedName: "properties.name", + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, - registrationTtl: { - serializedName: "properties.registrationTtl", + tags: { + serializedName: "tags", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - authorizationRules: { - serializedName: "properties.authorizationRules", + admCredential: { + serializedName: "properties.admCredential", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SharedAccessAuthorizationRuleProperties" - } - } - } + name: "Composite", + className: "AdmCredential", + }, }, apnsCredential: { serializedName: "properties.apnsCredential", type: { name: "Composite", - className: "ApnsCredential" - } + className: "ApnsCredential", + }, }, - wnsCredential: { - serializedName: "properties.wnsCredential", + baiduCredential: { + serializedName: "properties.baiduCredential", type: { name: "Composite", - className: "WnsCredential" - } + className: "BaiduCredential", + }, + }, + browserCredential: { + serializedName: "properties.browserCredential", + type: { + name: "Composite", + className: "BrowserCredential", + }, }, gcmCredential: { serializedName: "properties.gcmCredential", type: { name: "Composite", - className: "GcmCredential" - } + className: "GcmCredential", + }, }, mpnsCredential: { serializedName: "properties.mpnsCredential", type: { name: "Composite", - className: "MpnsCredential" - } + className: "MpnsCredential", + }, }, - admCredential: { - serializedName: "properties.admCredential", + wnsCredential: { + serializedName: "properties.wnsCredential", type: { name: "Composite", - className: "AdmCredential" - } + className: "WnsCredential", + }, }, - baiduCredential: { - serializedName: "properties.baiduCredential", + xiaomiCredential: { + serializedName: "properties.xiaomiCredential", + type: { + name: "Composite", + className: "XiaomiCredential", + }, + }, + fcmV1Credential: { + serializedName: "properties.fcmV1Credential", + type: { + name: "Composite", + className: "FcmV1Credential", + }, + }, + }, + }, +}; + +export const PrivateEndpointConnectionResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "PrivateEndpointConnectionProperties", + }, + }, + }, + }, +}; + +export const PrivateLinkResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", type: { name: "Composite", - className: "BaiduCredential" - } - } - } - } + className: "PrivateLinkResourceProperties", + }, + }, + }, + }, }; export const NotificationHubResource: coreClient.CompositeMapper = { @@ -1076,230 +2289,282 @@ export const NotificationHubResource: coreClient.CompositeMapper = { name: "Composite", className: "NotificationHubResource", modelProperties: { - ...Resource.type.modelProperties, + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku", + }, + }, namePropertiesName: { serializedName: "properties.name", type: { - name: "String" - } + name: "String", + }, }, registrationTtl: { serializedName: "properties.registrationTtl", type: { - name: "String" - } + name: "String", + }, }, authorizationRules: { serializedName: "properties.authorizationRules", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SharedAccessAuthorizationRuleProperties" - } - } - } + className: "SharedAccessAuthorizationRuleProperties", + }, + }, + }, }, apnsCredential: { serializedName: "properties.apnsCredential", type: { name: "Composite", - className: "ApnsCredential" - } + className: "ApnsCredential", + }, }, wnsCredential: { serializedName: "properties.wnsCredential", type: { name: "Composite", - className: "WnsCredential" - } + className: "WnsCredential", + }, }, gcmCredential: { serializedName: "properties.gcmCredential", type: { name: "Composite", - className: "GcmCredential" - } + className: "GcmCredential", + }, }, mpnsCredential: { serializedName: "properties.mpnsCredential", type: { name: "Composite", - className: "MpnsCredential" - } + className: "MpnsCredential", + }, }, admCredential: { serializedName: "properties.admCredential", type: { name: "Composite", - className: "AdmCredential" - } + className: "AdmCredential", + }, }, baiduCredential: { serializedName: "properties.baiduCredential", type: { name: "Composite", - className: "BaiduCredential" - } - } - } - } + className: "BaiduCredential", + }, + }, + browserCredential: { + serializedName: "properties.browserCredential", + type: { + name: "Composite", + className: "BrowserCredential", + }, + }, + xiaomiCredential: { + serializedName: "properties.xiaomiCredential", + type: { + name: "Composite", + className: "XiaomiCredential", + }, + }, + fcmV1Credential: { + serializedName: "properties.fcmV1Credential", + type: { + name: "Composite", + className: "FcmV1Credential", + }, + }, + dailyMaxActiveDevices: { + serializedName: "properties.dailyMaxActiveDevices", + readOnly: true, + type: { + name: "Number", + }, + }, + }, + }, }; -export const NotificationHubPatchParameters: coreClient.CompositeMapper = { +export const NamespaceResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotificationHubPatchParameters", + className: "NamespaceResource", modelProperties: { - ...Resource.type.modelProperties, + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku", + }, + }, namePropertiesName: { serializedName: "properties.name", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - registrationTtl: { - serializedName: "properties.registrationTtl", + provisioningState: { + serializedName: "properties.provisioningState", type: { - name: "String" - } + name: "String", + }, }, - authorizationRules: { - serializedName: "properties.authorizationRules", + status: { + serializedName: "properties.status", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SharedAccessAuthorizationRuleProperties" - } - } - } + name: "String", + }, }, - apnsCredential: { - serializedName: "properties.apnsCredential", + enabled: { + serializedName: "properties.enabled", + readOnly: true, type: { - name: "Composite", - className: "ApnsCredential" - } + name: "Boolean", + }, }, - wnsCredential: { - serializedName: "properties.wnsCredential", + critical: { + serializedName: "properties.critical", + readOnly: true, type: { - name: "Composite", - className: "WnsCredential" - } + name: "Boolean", + }, }, - gcmCredential: { - serializedName: "properties.gcmCredential", + subscriptionId: { + serializedName: "properties.subscriptionId", + readOnly: true, type: { - name: "Composite", - className: "GcmCredential" - } + name: "String", + }, }, - mpnsCredential: { - serializedName: "properties.mpnsCredential", + region: { + serializedName: "properties.region", + readOnly: true, type: { - name: "Composite", - className: "MpnsCredential" - } + name: "String", + }, }, - admCredential: { - serializedName: "properties.admCredential", + metricId: { + serializedName: "properties.metricId", + readOnly: true, type: { - name: "Composite", - className: "AdmCredential" - } + name: "String", + }, }, - baiduCredential: { - serializedName: "properties.baiduCredential", + createdAt: { + serializedName: "properties.createdAt", + readOnly: true, type: { - name: "Composite", - className: "BaiduCredential" - } - } - } - } -}; - -export const DebugSendResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DebugSendResponse", - modelProperties: { - ...Resource.type.modelProperties, - success: { - serializedName: "properties.success", + name: "DateTime", + }, + }, + updatedAt: { + serializedName: "properties.updatedAt", + readOnly: true, type: { - name: "Number" - } + name: "DateTime", + }, }, - failure: { - serializedName: "properties.failure", + namespaceType: { + serializedName: "properties.namespaceType", type: { - name: "Number" - } + name: "String", + }, }, - results: { - serializedName: "properties.results", + replicationRegion: { + serializedName: "properties.replicationRegion", type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } -}; - -export const PnsCredentialsResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PnsCredentialsResource", - modelProperties: { - ...Resource.type.modelProperties, - apnsCredential: { - serializedName: "properties.apnsCredential", + name: "String", + }, + }, + zoneRedundancy: { + defaultValue: "Disabled", + serializedName: "properties.zoneRedundancy", type: { - name: "Composite", - className: "ApnsCredential" - } + name: "String", + }, }, - wnsCredential: { - serializedName: "properties.wnsCredential", + networkAcls: { + serializedName: "properties.networkAcls", type: { name: "Composite", - className: "WnsCredential" - } + className: "NetworkAcls", + }, }, - gcmCredential: { - serializedName: "properties.gcmCredential", + pnsCredentials: { + serializedName: "properties.pnsCredentials", type: { name: "Composite", - className: "GcmCredential" - } + className: "PnsCredentials", + }, }, - mpnsCredential: { - serializedName: "properties.mpnsCredential", + serviceBusEndpoint: { + serializedName: "properties.serviceBusEndpoint", + readOnly: true, type: { - name: "Composite", - className: "MpnsCredential" - } + name: "String", + }, }, - admCredential: { - serializedName: "properties.admCredential", + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, type: { - name: "Composite", - className: "AdmCredential" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnectionResource", + }, + }, + }, }, - baiduCredential: { - serializedName: "properties.baiduCredential", + scaleUnit: { + serializedName: "properties.scaleUnit", type: { - name: "Composite", - className: "BaiduCredential" - } - } - } - } + name: "String", + }, + }, + dataCenter: { + serializedName: "properties.dataCenter", + type: { + name: "String", + }, + }, + publicNetworkAccess: { + defaultValue: "Enabled", + serializedName: "properties.publicNetworkAccess", + type: { + name: "String", + }, + }, + }, + }, }; + +export const PrivateEndpointConnectionsDeleteHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PrivateEndpointConnectionsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; diff --git a/sdk/notificationhubs/arm-notificationhubs/src/models/parameters.ts b/sdk/notificationhubs/arm-notificationhubs/src/models/parameters.ts index 060b7bcfcd59..aaea0d37128d 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/models/parameters.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/models/parameters.ts @@ -9,18 +9,36 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { CheckAvailabilityParameters as CheckAvailabilityParametersMapper, - NamespaceCreateOrUpdateParameters as NamespaceCreateOrUpdateParametersMapper, + NotificationHubResource as NotificationHubResourceMapper, + NotificationHubPatchParameters as NotificationHubPatchParametersMapper, + SharedAccessAuthorizationRuleResource as SharedAccessAuthorizationRuleResourceMapper, + PolicyKeyResource as PolicyKeyResourceMapper, + NamespaceResource as NamespaceResourceMapper, NamespacePatchParameters as NamespacePatchParametersMapper, - SharedAccessAuthorizationRuleCreateOrUpdateParameters as SharedAccessAuthorizationRuleCreateOrUpdateParametersMapper, - PolicykeyResource as PolicykeyResourceMapper, - NotificationHubCreateOrUpdateParameters as NotificationHubCreateOrUpdateParametersMapper, - NotificationHubPatchParameters as NotificationHubPatchParametersMapper + PrivateEndpointConnectionResource as PrivateEndpointConnectionResourceMapper, } from "../models/mappers"; +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], + mapper: { + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", + type: { + name: "String", + }, + }, +}; + +export const parameters: OperationParameter = { + parameterPath: "parameters", + mapper: CheckAvailabilityParametersMapper, +}; + export const accept: OperationParameter = { parameterPath: "accept", mapper: { @@ -28,9 +46,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -39,145 +57,192 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; -export const apiVersion: OperationQueryParameter = { - parameterPath: "apiVersion", +export const subscriptionId: OperationURLParameter = { + parameterPath: "subscriptionId", mapper: { - defaultValue: "2017-04-01", - isConstant: true, - serializedName: "api-version", + serializedName: "subscriptionId", + required: true, type: { - name: "String" - } - } + name: "Uuid", + }, + }, }; -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", +export const resourceGroupName: OperationURLParameter = { + parameterPath: "resourceGroupName", mapper: { - serializedName: "nextLink", + constraints: { + MaxLength: 90, + MinLength: 1, + }, + serializedName: "resourceGroupName", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true }; -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], +export const namespaceName: OperationURLParameter = { + parameterPath: "namespaceName", mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Content-Type", + constraints: { + Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9-]*$"), + MaxLength: 50, + MinLength: 1, + }, + serializedName: "namespaceName", + required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters: OperationParameter = { - parameterPath: "parameters", - mapper: CheckAvailabilityParametersMapper +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2023-10-01-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String", + }, + }, }; -export const subscriptionId: OperationURLParameter = { - parameterPath: "subscriptionId", +export const notificationHubName: OperationURLParameter = { + parameterPath: "notificationHubName", mapper: { - serializedName: "subscriptionId", + constraints: { + Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9-./_]*$"), + MaxLength: 265, + MinLength: 1, + }, + serializedName: "notificationHubName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters1: OperationParameter = { parameterPath: "parameters", - mapper: NamespaceCreateOrUpdateParametersMapper + mapper: NotificationHubResourceMapper, }; -export const resourceGroupName: OperationURLParameter = { - parameterPath: "resourceGroupName", - mapper: { - serializedName: "resourceGroupName", - required: true, - type: { - name: "String" - } - } +export const parameters2: OperationParameter = { + parameterPath: "parameters", + mapper: NotificationHubPatchParametersMapper, }; -export const namespaceName: OperationURLParameter = { - parameterPath: "namespaceName", +export const skipToken: OperationQueryParameter = { + parameterPath: ["options", "skipToken"], mapper: { - serializedName: "namespaceName", - required: true, + serializedName: "$skipToken", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters2: OperationParameter = { - parameterPath: "parameters", - mapper: NamespacePatchParametersMapper +export const top: OperationQueryParameter = { + parameterPath: ["options", "top"], + mapper: { + defaultValue: 100, + serializedName: "$top", + type: { + name: "Number", + }, + }, }; export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: SharedAccessAuthorizationRuleCreateOrUpdateParametersMapper + mapper: SharedAccessAuthorizationRuleResourceMapper, }; export const authorizationRuleName: OperationURLParameter = { parameterPath: "authorizationRuleName", mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9!()*-._]+$"), + MaxLength: 256, + MinLength: 1, + }, serializedName: "authorizationRuleName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters4: OperationParameter = { parameterPath: "parameters", - mapper: PolicykeyResourceMapper + mapper: PolicyKeyResourceMapper, }; -export const parameters5: OperationParameter = { - parameterPath: "parameters", - mapper: NotificationHubCreateOrUpdateParametersMapper -}; - -export const notificationHubName: OperationURLParameter = { - parameterPath: "notificationHubName", +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", mapper: { - serializedName: "notificationHubName", + serializedName: "nextLink", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, + skipEncoding: true, +}; + +export const parameters5: OperationParameter = { + parameterPath: "parameters", + mapper: NamespaceResourceMapper, }; export const parameters6: OperationParameter = { - parameterPath: ["options", "parameters"], - mapper: NotificationHubPatchParametersMapper + parameterPath: "parameters", + mapper: NamespacePatchParametersMapper, }; export const parameters7: OperationParameter = { - parameterPath: ["options", "parameters"], + parameterPath: "parameters", + mapper: PrivateEndpointConnectionResourceMapper, +}; + +export const privateEndpointConnectionName: OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9-]*\\.[a-fA-F0-9\\-]+$"), + MaxLength: 87, + MinLength: 1, + }, + serializedName: "privateEndpointConnectionName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const subResourceName: OperationURLParameter = { + parameterPath: "subResourceName", mapper: { - serializedName: "parameters", + constraints: { + Pattern: new RegExp("^namespace$"), + }, + serializedName: "subResourceName", + required: true, type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } + name: "String", + }, + }, }; diff --git a/sdk/notificationhubs/arm-notificationhubs/src/notificationHubsManagementClient.ts b/sdk/notificationhubs/arm-notificationhubs/src/notificationHubsManagementClient.ts index dac66844e8da..cb76e156c806 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/notificationHubsManagementClient.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/notificationHubsManagementClient.ts @@ -11,37 +11,38 @@ 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 { - OperationsImpl, + NotificationHubsImpl, NamespacesImpl, - NotificationHubsImpl + OperationsImpl, + PrivateEndpointConnectionsImpl, } from "./operations"; import { - Operations, + NotificationHubs, Namespaces, - NotificationHubs + Operations, + PrivateEndpointConnections, } from "./operationsInterfaces"; import { NotificationHubsManagementClientOptionalParams } from "./models"; export class NotificationHubsManagementClient extends coreClient.ServiceClient { $host: string; - apiVersion: string; subscriptionId: string; + apiVersion: string; /** * Initializes a new instance of the NotificationHubsManagementClient class. * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure - * subscription. The subscription ID forms part of the URI for every service call. + * @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?: NotificationHubsManagementClientOptionalParams + options?: NotificationHubsManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -56,10 +57,10 @@ export class NotificationHubsManagementClient extends coreClient.ServiceClient { } const defaults: NotificationHubsManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-notificationhubs/2.1.1`; + const packageDetails = `azsdk-js-arm-notificationhubs/3.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -69,20 +70,21 @@ export class NotificationHubsManagementClient 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 ( @@ -92,7 +94,7 @@ export class NotificationHubsManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -102,9 +104,9 @@ export class NotificationHubsManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -112,10 +114,11 @@ export class NotificationHubsManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2017-04-01"; - this.operations = new OperationsImpl(this); - this.namespaces = new NamespacesImpl(this); + this.apiVersion = options.apiVersion || "2023-10-01-preview"; this.notificationHubs = new NotificationHubsImpl(this); + this.namespaces = new NamespacesImpl(this); + this.operations = new OperationsImpl(this); + this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -128,7 +131,7 @@ export class NotificationHubsManagementClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -142,12 +145,13 @@ export class NotificationHubsManagementClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } - operations: Operations; - namespaces: Namespaces; notificationHubs: NotificationHubs; + namespaces: Namespaces; + operations: Operations; + privateEndpointConnections: PrivateEndpointConnections; } diff --git a/sdk/notificationhubs/arm-notificationhubs/src/operations/index.ts b/sdk/notificationhubs/arm-notificationhubs/src/operations/index.ts index c93887c25e39..cb17c9777d9d 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/operations/index.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/operations/index.ts @@ -6,6 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./operations"; -export * from "./namespaces"; export * from "./notificationHubs"; +export * from "./namespaces"; +export * from "./operations"; +export * from "./privateEndpointConnections"; diff --git a/sdk/notificationhubs/arm-notificationhubs/src/operations/namespaces.ts b/sdk/notificationhubs/arm-notificationhubs/src/operations/namespaces.ts index 12e206a7da6b..9f2c3911cd2f 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/operations/namespaces.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/operations/namespaces.ts @@ -13,16 +13,20 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { NotificationHubsManagementClient } from "../notificationHubsManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { NamespaceResource, - NamespacesListNextOptionalParams, - NamespacesListOptionalParams, - NamespacesListResponse, NamespacesListAllNextOptionalParams, NamespacesListAllOptionalParams, NamespacesListAllResponse, + NamespacesListNextOptionalParams, + NamespacesListOptionalParams, + NamespacesListResponse, SharedAccessAuthorizationRuleResource, NamespacesListAuthorizationRulesNextOptionalParams, NamespacesListAuthorizationRulesOptionalParams, @@ -30,16 +34,14 @@ import { CheckAvailabilityParameters, NamespacesCheckAvailabilityOptionalParams, NamespacesCheckAvailabilityResponse, - NamespaceCreateOrUpdateParameters, + NamespacesGetOptionalParams, + NamespacesGetResponse, NamespacesCreateOrUpdateOptionalParams, NamespacesCreateOrUpdateResponse, NamespacePatchParameters, - NamespacesPatchOptionalParams, - NamespacesPatchResponse, + NamespacesUpdateOptionalParams, + NamespacesUpdateResponse, NamespacesDeleteOptionalParams, - NamespacesGetOptionalParams, - NamespacesGetResponse, - SharedAccessAuthorizationRuleCreateOrUpdateParameters, NamespacesCreateOrUpdateAuthorizationRuleOptionalParams, NamespacesCreateOrUpdateAuthorizationRuleResponse, NamespacesDeleteAuthorizationRuleOptionalParams, @@ -47,12 +49,14 @@ import { NamespacesGetAuthorizationRuleResponse, NamespacesListKeysOptionalParams, NamespacesListKeysResponse, - PolicykeyResource, + PolicyKeyResource, NamespacesRegenerateKeysOptionalParams, NamespacesRegenerateKeysResponse, - NamespacesListNextResponse, + NamespacesGetPnsCredentialsOptionalParams, + NamespacesGetPnsCredentialsResponse, NamespacesListAllNextResponse, - NamespacesListAuthorizationRulesNextResponse + NamespacesListNextResponse, + NamespacesListAuthorizationRulesNextResponse, } from "../models"; /// @@ -69,16 +73,13 @@ export class NamespacesImpl implements Namespaces { } /** - * Lists the available namespaces within a resourceGroup. - * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the - * method lists all the namespaces within subscription + * Lists all the available namespaces within the subscription. * @param options The options parameters. */ - public list( - resourceGroupName: string, - options?: NamespacesListOptionalParams + public listAll( + options?: NamespacesListAllOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceGroupName, options); + const iter = this.listAllPagingAll(options); return { next() { return iter.next(); @@ -90,31 +91,26 @@ export class NamespacesImpl implements Namespaces { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage(resourceGroupName, options, settings); - } + return this.listAllPagingPage(options, settings); + }, }; } - private async *listPagingPage( - resourceGroupName: string, - options?: NamespacesListOptionalParams, - settings?: PageSettings + private async *listAllPagingPage( + options?: NamespacesListAllOptionalParams, + settings?: PageSettings, ): AsyncIterableIterator { - let result: NamespacesListResponse; + let result: NamespacesListAllResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(resourceGroupName, options); + result = await this._listAll(options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listNext( - resourceGroupName, - continuationToken, - options - ); + result = await this._listAllNext(continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -122,23 +118,24 @@ export class NamespacesImpl implements Namespaces { } } - private async *listPagingAll( - resourceGroupName: string, - options?: NamespacesListOptionalParams + private async *listAllPagingAll( + options?: NamespacesListAllOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listPagingPage(resourceGroupName, options)) { + for await (const page of this.listAllPagingPage(options)) { yield* page; } } /** - * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * Lists the available namespaces within a resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ - public listAll( - options?: NamespacesListAllOptionalParams + public list( + resourceGroupName: string, + options?: NamespacesListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listAllPagingAll(options); + const iter = this.listPagingAll(resourceGroupName, options); return { next() { return iter.next(); @@ -150,26 +147,31 @@ export class NamespacesImpl implements Namespaces { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listAllPagingPage(options, settings); - } + return this.listPagingPage(resourceGroupName, options, settings); + }, }; } - private async *listAllPagingPage( - options?: NamespacesListAllOptionalParams, - settings?: PageSettings + private async *listPagingPage( + resourceGroupName: string, + options?: NamespacesListOptionalParams, + settings?: PageSettings, ): AsyncIterableIterator { - let result: NamespacesListAllResponse; + let result: NamespacesListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listAll(options); + result = await this._list(resourceGroupName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listAllNext(continuationToken, options); + result = await this._listNext( + resourceGroupName, + continuationToken, + options, + ); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -177,29 +179,30 @@ export class NamespacesImpl implements Namespaces { } } - private async *listAllPagingAll( - options?: NamespacesListAllOptionalParams + private async *listPagingAll( + resourceGroupName: string, + options?: NamespacesListOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listAllPagingPage(options)) { + for await (const page of this.listPagingPage(resourceGroupName, options)) { yield* page; } } /** * Gets the authorization rules for a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name * @param options The options parameters. */ public listAuthorizationRules( resourceGroupName: string, namespaceName: string, - options?: NamespacesListAuthorizationRulesOptionalParams + options?: NamespacesListAuthorizationRulesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAuthorizationRulesPagingAll( resourceGroupName, namespaceName, - options + options, ); return { next() { @@ -216,9 +219,9 @@ export class NamespacesImpl implements Namespaces { resourceGroupName, namespaceName, options, - settings + settings, ); - } + }, }; } @@ -226,7 +229,7 @@ export class NamespacesImpl implements Namespaces { resourceGroupName: string, namespaceName: string, options?: NamespacesListAuthorizationRulesOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: NamespacesListAuthorizationRulesResponse; let continuationToken = settings?.continuationToken; @@ -234,7 +237,7 @@ export class NamespacesImpl implements Namespaces { result = await this._listAuthorizationRules( resourceGroupName, namespaceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -246,7 +249,7 @@ export class NamespacesImpl implements Namespaces { resourceGroupName, namespaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -258,12 +261,12 @@ export class NamespacesImpl implements Namespaces { private async *listAuthorizationRulesPagingAll( resourceGroupName: string, namespaceName: string, - options?: NamespacesListAuthorizationRulesOptionalParams + options?: NamespacesListAuthorizationRulesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAuthorizationRulesPagingPage( resourceGroupName, namespaceName, - options + options, )) { yield* page; } @@ -272,87 +275,70 @@ export class NamespacesImpl implements Namespaces { /** * Checks the availability of the given service namespace across all Azure subscriptions. This is * useful because the domain name is created based on the service namespace name. - * @param parameters The namespace name. + * @param parameters Request content. * @param options The options parameters. */ checkAvailability( parameters: CheckAvailabilityParameters, - options?: NamespacesCheckAvailabilityOptionalParams + options?: NamespacesCheckAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { parameters, options }, - checkAvailabilityOperationSpec - ); - } - - /** - * Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. - * This operation is idempotent. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param parameters Parameters supplied to create a Namespace Resource. - * @param options The options parameters. - */ - createOrUpdate( - resourceGroupName: string, - namespaceName: string, - parameters: NamespaceCreateOrUpdateParameters, - options?: NamespacesCreateOrUpdateOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, namespaceName, parameters, options }, - createOrUpdateOperationSpec + checkAvailabilityOperationSpec, ); } /** - * Patches the existing namespace - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param parameters Parameters supplied to patch a Namespace Resource. + * Returns the given namespace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name * @param options The options parameters. */ - patch( + get( resourceGroupName: string, namespaceName: string, - parameters: NamespacePatchParameters, - options?: NamespacesPatchOptionalParams - ): Promise { + options?: NamespacesGetOptionalParams, + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, namespaceName, parameters, options }, - patchOperationSpec + { resourceGroupName, namespaceName, options }, + getOperationSpec, ); } /** - * Deletes an existing namespace. This operation also removes all associated notificationHubs under the - * namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. + * Creates / Updates a Notification Hub namespace. This operation is idempotent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param parameters Request content. * @param options The options parameters. */ - async beginDelete( + async beginCreateOrUpdate( resourceGroupName: string, namespaceName: string, - options?: NamespacesDeleteOptionalParams - ): Promise, void>> { + parameters: NamespaceResource, + options?: NamespacesCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NamespacesCreateOrUpdateResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + 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); @@ -361,8 +347,8 @@ export class NamespacesImpl implements Namespaces { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -370,75 +356,126 @@ export class NamespacesImpl implements Namespaces { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, namespaceName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, namespaceName, parameters, options }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + NamespacesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; } /** - * Deletes an existing namespace. This operation also removes all associated notificationHubs under the - * namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. + * Creates / Updates a Notification Hub namespace. This operation is idempotent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param parameters Request content. * @param options The options parameters. */ - async beginDeleteAndWait( + async beginCreateOrUpdateAndWait( resourceGroupName: string, namespaceName: string, - options?: NamespacesDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( + parameters: NamespaceResource, + options?: NamespacesCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( resourceGroupName, namespaceName, - options + parameters, + options, ); return poller.pollUntilDone(); } /** - * Returns the description for the specified namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. + * Patches the existing namespace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param parameters Request content. * @param options The options parameters. */ - get( + update( resourceGroupName: string, namespaceName: string, - options?: NamespacesGetOptionalParams - ): Promise { + parameters: NamespacePatchParameters, + options?: NamespacesUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, namespaceName, parameters, options }, + updateOperationSpec, + ); + } + + /** + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the + * namespace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + namespaceName: string, + options?: NamespacesDeleteOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, options }, - getOperationSpec + deleteOperationSpec, + ); + } + + /** + * Lists all the available namespaces within the subscription. + * @param options The options parameters. + */ + private _listAll( + options?: NamespacesListAllOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ options }, listAllOperationSpec); + } + + /** + * Lists the available namespaces within a resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + options?: NamespacesListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listOperationSpec, ); } /** * Creates an authorization rule for a namespace - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param authorizationRuleName Authorization Rule Name. - * @param parameters The shared access authorization rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param authorizationRuleName Authorization Rule Name + * @param parameters Request content. * @param options The options parameters. */ createOrUpdateAuthorizationRule( resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - parameters: SharedAccessAuthorizationRuleCreateOrUpdateParameters, - options?: NamespacesCreateOrUpdateAuthorizationRuleOptionalParams + parameters: SharedAccessAuthorizationRuleResource, + options?: NamespacesCreateOrUpdateAuthorizationRuleOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -446,128 +483,100 @@ export class NamespacesImpl implements Namespaces { namespaceName, authorizationRuleName, parameters, - options + options, }, - createOrUpdateAuthorizationRuleOperationSpec + createOrUpdateAuthorizationRuleOperationSpec, ); } /** * Deletes a namespace authorization rule - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param authorizationRuleName Authorization Rule Name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param authorizationRuleName Authorization Rule Name * @param options The options parameters. */ deleteAuthorizationRule( resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - options?: NamespacesDeleteAuthorizationRuleOptionalParams + options?: NamespacesDeleteAuthorizationRuleOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, authorizationRuleName, options }, - deleteAuthorizationRuleOperationSpec + deleteAuthorizationRuleOperationSpec, ); } /** * Gets an authorization rule for a namespace by name. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name - * @param authorizationRuleName Authorization rule name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param authorizationRuleName Authorization Rule Name * @param options The options parameters. */ getAuthorizationRule( resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - options?: NamespacesGetAuthorizationRuleOptionalParams + options?: NamespacesGetAuthorizationRuleOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, authorizationRuleName, options }, - getAuthorizationRuleOperationSpec + getAuthorizationRuleOperationSpec, ); } - /** - * Lists the available namespaces within a resourceGroup. - * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the - * method lists all the namespaces within subscription - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - options?: NamespacesListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, options }, - listOperationSpec - ); - } - - /** - * Lists all the available namespaces within the subscription irrespective of the resourceGroups. - * @param options The options parameters. - */ - private _listAll( - options?: NamespacesListAllOptionalParams - ): Promise { - return this.client.sendOperationRequest({ options }, listAllOperationSpec); - } - /** * Gets the authorization rules for a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name * @param options The options parameters. */ private _listAuthorizationRules( resourceGroupName: string, namespaceName: string, - options?: NamespacesListAuthorizationRulesOptionalParams + options?: NamespacesListAuthorizationRulesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, options }, - listAuthorizationRulesOperationSpec + listAuthorizationRulesOperationSpec, ); } /** - * Gets the Primary and Secondary ConnectionStrings to the namespace - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param authorizationRuleName The connection string of the namespace for the specified - * authorizationRule. + * Gets the Primary and Secondary ConnectionStrings to the namespace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param authorizationRuleName Authorization Rule Name * @param options The options parameters. */ listKeys( resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - options?: NamespacesListKeysOptionalParams + options?: NamespacesListKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, authorizationRuleName, options }, - listKeysOperationSpec + listKeysOperationSpec, ); } /** * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param authorizationRuleName The connection string of the namespace for the specified - * authorizationRule. - * @param parameters Parameters supplied to regenerate the Namespace Authorization Rule Key. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param authorizationRuleName Authorization Rule Name + * @param parameters Request content. * @param options The options parameters. */ regenerateKeys( resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - parameters: PolicykeyResource, - options?: NamespacesRegenerateKeysOptionalParams + parameters: PolicyKeyResource, + options?: NamespacesRegenerateKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -575,27 +584,26 @@ export class NamespacesImpl implements Namespaces { namespaceName, authorizationRuleName, parameters, - options + options, }, - regenerateKeysOperationSpec + regenerateKeysOperationSpec, ); } /** - * ListNext - * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the - * method lists all the namespaces within subscription - * @param nextLink The nextLink from the previous successful call to the List method. + * Lists the PNS credentials associated with a namespace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name * @param options The options parameters. */ - private _listNext( + getPnsCredentials( resourceGroupName: string, - nextLink: string, - options?: NamespacesListNextOptionalParams - ): Promise { + namespaceName: string, + options?: NamespacesGetPnsCredentialsOptionalParams, + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, nextLink, options }, - listNextOperationSpec + { resourceGroupName, namespaceName, options }, + getPnsCredentialsOperationSpec, ); } @@ -606,18 +614,35 @@ export class NamespacesImpl implements Namespaces { */ private _listAllNext( nextLink: string, - options?: NamespacesListAllNextOptionalParams + options?: NamespacesListAllNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listAllNextOperationSpec + listAllNextOperationSpec, + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + nextLink: string, + options?: NamespacesListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listNextOperationSpec, ); } /** * ListAuthorizationRulesNext - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name * @param nextLink The nextLink from the previous successful call to the ListAuthorizationRules method. * @param options The options parameters. */ @@ -625,11 +650,11 @@ export class NamespacesImpl implements Namespaces { resourceGroupName: string, namespaceName: string, nextLink: string, - options?: NamespacesListAuthorizationRulesNextOptionalParams + options?: NamespacesListAuthorizationRulesNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, nextLink, options }, - listAuthorizationRulesNextOperationSpec + listAuthorizationRulesNextOperationSpec, ); } } @@ -637,107 +662,176 @@ export class NamespacesImpl implements Namespaces { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const checkAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNamespaceAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNamespaceAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckAvailabilityResult - } + bodyMapper: Mappers.CheckAvailabilityResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NamespaceResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.namespaceName, + ], + headerParameters: [Parameters.accept], + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.NamespaceResource + bodyMapper: Mappers.NamespaceResource, }, 201: { - bodyMapper: Mappers.NamespaceResource - } + bodyMapper: Mappers.NamespaceResource, + }, + 202: { + bodyMapper: Mappers.NamespaceResource, + }, + 204: { + bodyMapper: Mappers.NamespaceResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters1, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; -const patchOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}", +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.NamespaceResource - } + bodyMapper: Mappers.NamespaceResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters2, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {} }, + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}", +const listAllOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NamespaceResource - } + bodyMapper: Mappers.NamespaceListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken, + Parameters.top, + ], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer, +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NamespaceListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken, + Parameters.top, + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateAuthorizationRuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SharedAccessAuthorizationRuleResource - } + bodyMapper: Mappers.SharedAccessAuthorizationRuleResource, + }, + 201: { + bodyMapper: Mappers.SharedAccessAuthorizationRuleResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], @@ -746,35 +840,43 @@ const createOrUpdateAuthorizationRuleOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.authorizationRuleName + Parameters.authorizationRuleName, ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteAuthorizationRuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}", httpMethod: "DELETE", - responses: { 200: {}, 204: {} }, + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.authorizationRuleName + Parameters.authorizationRuleName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedAccessAuthorizationRuleResource - } + bodyMapper: Mappers.SharedAccessAuthorizationRuleResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -782,155 +884,156 @@ const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.authorizationRuleName + Parameters.authorizationRuleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces", +const listAuthorizationRulesOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NamespaceListResult - } + bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, + Parameters.namespaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const listAllOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.NamespaceListResult - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer -}; -const listAuthorizationRulesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules", - httpMethod: "GET", +const listKeysOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/listKeys", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult - } + bodyMapper: Mappers.ResourceListKeys, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, + Parameters.authorizationRuleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const listKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys", +const regenerateKeysOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/regenerateKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ResourceListKeys - } + bodyMapper: Mappers.ResourceListKeys, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.authorizationRuleName + Parameters.authorizationRuleName, ], - headerParameters: [Parameters.accept], - serializer + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer, }; -const regenerateKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys", +const getPnsCredentialsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/pnsCredentials", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ResourceListKeys - } + bodyMapper: Mappers.PnsCredentialsResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.authorizationRuleName ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer + headerParameters: [Parameters.accept], + serializer, }; -const listNextOperationSpec: coreClient.OperationSpec = { +const listAllNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NamespaceListResult - } + bodyMapper: Mappers.NamespaceListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const listAllNextOperationSpec: coreClient.OperationSpec = { +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NamespaceListResult - } + bodyMapper: Mappers.NamespaceListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.nextLink, - Parameters.subscriptionId ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAuthorizationRulesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult - } + bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/notificationhubs/arm-notificationhubs/src/operations/notificationHubs.ts b/sdk/notificationhubs/arm-notificationhubs/src/operations/notificationHubs.ts index b9af2043473e..91eab820bb80 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/operations/notificationHubs.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/operations/notificationHubs.ts @@ -25,17 +25,16 @@ import { CheckAvailabilityParameters, NotificationHubsCheckNotificationHubAvailabilityOptionalParams, NotificationHubsCheckNotificationHubAvailabilityResponse, - NotificationHubCreateOrUpdateParameters, + NotificationHubsGetOptionalParams, + NotificationHubsGetResponse, NotificationHubsCreateOrUpdateOptionalParams, NotificationHubsCreateOrUpdateResponse, - NotificationHubsPatchOptionalParams, - NotificationHubsPatchResponse, + NotificationHubPatchParameters, + NotificationHubsUpdateOptionalParams, + NotificationHubsUpdateResponse, NotificationHubsDeleteOptionalParams, - NotificationHubsGetOptionalParams, - NotificationHubsGetResponse, NotificationHubsDebugSendOptionalParams, NotificationHubsDebugSendResponse, - SharedAccessAuthorizationRuleCreateOrUpdateParameters, NotificationHubsCreateOrUpdateAuthorizationRuleOptionalParams, NotificationHubsCreateOrUpdateAuthorizationRuleResponse, NotificationHubsDeleteAuthorizationRuleOptionalParams, @@ -43,13 +42,13 @@ import { NotificationHubsGetAuthorizationRuleResponse, NotificationHubsListKeysOptionalParams, NotificationHubsListKeysResponse, - PolicykeyResource, + PolicyKeyResource, NotificationHubsRegenerateKeysOptionalParams, NotificationHubsRegenerateKeysResponse, NotificationHubsGetPnsCredentialsOptionalParams, NotificationHubsGetPnsCredentialsResponse, NotificationHubsListNextResponse, - NotificationHubsListAuthorizationRulesNextResponse + NotificationHubsListAuthorizationRulesNextResponse, } from "../models"; /// @@ -67,14 +66,14 @@ export class NotificationHubsImpl implements NotificationHubs { /** * Lists the notification hubs associated with a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name * @param options The options parameters. */ public list( resourceGroupName: string, namespaceName: string, - options?: NotificationHubsListOptionalParams + options?: NotificationHubsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, namespaceName, options); return { @@ -92,9 +91,9 @@ export class NotificationHubsImpl implements NotificationHubs { resourceGroupName, namespaceName, options, - settings + settings, ); - } + }, }; } @@ -102,7 +101,7 @@ export class NotificationHubsImpl implements NotificationHubs { resourceGroupName: string, namespaceName: string, options?: NotificationHubsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: NotificationHubsListResponse; let continuationToken = settings?.continuationToken; @@ -118,7 +117,7 @@ export class NotificationHubsImpl implements NotificationHubs { resourceGroupName, namespaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -130,12 +129,12 @@ export class NotificationHubsImpl implements NotificationHubs { private async *listPagingAll( resourceGroupName: string, namespaceName: string, - options?: NotificationHubsListOptionalParams + options?: NotificationHubsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, namespaceName, - options + options, )) { yield* page; } @@ -143,22 +142,22 @@ export class NotificationHubsImpl implements NotificationHubs { /** * Gets the authorization rules for a NotificationHub. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name - * @param notificationHubName The notification hub name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name * @param options The options parameters. */ public listAuthorizationRules( resourceGroupName: string, namespaceName: string, notificationHubName: string, - options?: NotificationHubsListAuthorizationRulesOptionalParams + options?: NotificationHubsListAuthorizationRulesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAuthorizationRulesPagingAll( resourceGroupName, namespaceName, notificationHubName, - options + options, ); return { next() { @@ -176,9 +175,9 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName, notificationHubName, options, - settings + settings, ); - } + }, }; } @@ -187,7 +186,7 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName: string, notificationHubName: string, options?: NotificationHubsListAuthorizationRulesOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: NotificationHubsListAuthorizationRulesResponse; let continuationToken = settings?.continuationToken; @@ -196,7 +195,7 @@ export class NotificationHubsImpl implements NotificationHubs { resourceGroupName, namespaceName, notificationHubName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -209,7 +208,7 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName, notificationHubName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -222,13 +221,13 @@ export class NotificationHubsImpl implements NotificationHubs { resourceGroupName: string, namespaceName: string, notificationHubName: string, - options?: NotificationHubsListAuthorizationRulesOptionalParams + options?: NotificationHubsListAuthorizationRulesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAuthorizationRulesPagingPage( resourceGroupName, namespaceName, notificationHubName, - options + options, )) { yield* page; } @@ -236,37 +235,56 @@ export class NotificationHubsImpl implements NotificationHubs { /** * Checks the availability of the given notificationHub in a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param parameters The notificationHub name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param parameters Request content. * @param options The options parameters. */ checkNotificationHubAvailability( resourceGroupName: string, namespaceName: string, parameters: CheckAvailabilityParameters, - options?: NotificationHubsCheckNotificationHubAvailabilityOptionalParams + options?: NotificationHubsCheckNotificationHubAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, parameters, options }, - checkNotificationHubAvailabilityOperationSpec + checkNotificationHubAvailabilityOperationSpec, + ); + } + + /** + * Gets the notification hub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param options The options parameters. + */ + get( + resourceGroupName: string, + namespaceName: string, + notificationHubName: string, + options?: NotificationHubsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, namespaceName, notificationHubName, options }, + getOperationSpec, ); } /** * Creates/Update a NotificationHub in a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. - * @param parameters Parameters supplied to the create/update a NotificationHub Resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param parameters Request content. * @param options The options parameters. */ createOrUpdate( resourceGroupName: string, namespaceName: string, notificationHubName: string, - parameters: NotificationHubCreateOrUpdateParameters, - options?: NotificationHubsCreateOrUpdateOptionalParams + parameters: NotificationHubResource, + options?: NotificationHubsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -274,95 +292,101 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName, notificationHubName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } /** * Patch a NotificationHub in a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param parameters Request content. * @param options The options parameters. */ - patch( + update( resourceGroupName: string, namespaceName: string, notificationHubName: string, - options?: NotificationHubsPatchOptionalParams - ): Promise { + parameters: NotificationHubPatchParameters, + options?: NotificationHubsUpdateOptionalParams, + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, namespaceName, notificationHubName, options }, - patchOperationSpec + { + resourceGroupName, + namespaceName, + notificationHubName, + parameters, + options, + }, + updateOperationSpec, ); } /** * Deletes a notification hub associated with a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name * @param options The options parameters. */ delete( resourceGroupName: string, namespaceName: string, notificationHubName: string, - options?: NotificationHubsDeleteOptionalParams + options?: NotificationHubsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, notificationHubName, options }, - deleteOperationSpec + deleteOperationSpec, ); } /** * Lists the notification hubs associated with a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name * @param options The options parameters. */ - get( + private _list( resourceGroupName: string, namespaceName: string, - notificationHubName: string, - options?: NotificationHubsGetOptionalParams - ): Promise { + options?: NotificationHubsListOptionalParams, + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, namespaceName, notificationHubName, options }, - getOperationSpec + { resourceGroupName, namespaceName, options }, + listOperationSpec, ); } /** - * test send a push notification - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. + * Test send a push notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name * @param options The options parameters. */ debugSend( resourceGroupName: string, namespaceName: string, notificationHubName: string, - options?: NotificationHubsDebugSendOptionalParams + options?: NotificationHubsDebugSendOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, notificationHubName, options }, - debugSendOperationSpec + debugSendOperationSpec, ); } /** * Creates/Updates an authorization rule for a NotificationHub - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. - * @param authorizationRuleName Authorization Rule Name. - * @param parameters The shared access authorization rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param authorizationRuleName Authorization Rule Name + * @param parameters Request content. * @param options The options parameters. */ createOrUpdateAuthorizationRule( @@ -370,8 +394,8 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName: string, notificationHubName: string, authorizationRuleName: string, - parameters: SharedAccessAuthorizationRuleCreateOrUpdateParameters, - options?: NotificationHubsCreateOrUpdateAuthorizationRuleOptionalParams + parameters: SharedAccessAuthorizationRuleResource, + options?: NotificationHubsCreateOrUpdateAuthorizationRuleOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -380,18 +404,18 @@ export class NotificationHubsImpl implements NotificationHubs { notificationHubName, authorizationRuleName, parameters, - options + options, }, - createOrUpdateAuthorizationRuleOperationSpec + createOrUpdateAuthorizationRuleOperationSpec, ); } /** * Deletes a notificationHub authorization rule - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. - * @param authorizationRuleName Authorization Rule Name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param authorizationRuleName Authorization Rule Name * @param options The options parameters. */ deleteAuthorizationRule( @@ -399,7 +423,7 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName: string, notificationHubName: string, authorizationRuleName: string, - options?: NotificationHubsDeleteAuthorizationRuleOptionalParams + options?: NotificationHubsDeleteAuthorizationRuleOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -407,18 +431,18 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName, notificationHubName, authorizationRuleName, - options + options, }, - deleteAuthorizationRuleOperationSpec + deleteAuthorizationRuleOperationSpec, ); } /** * Gets an authorization rule for a NotificationHub by name. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name - * @param notificationHubName The notification hub name. - * @param authorizationRuleName authorization rule name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param authorizationRuleName Authorization Rule Name * @param options The options parameters. */ getAuthorizationRule( @@ -426,7 +450,7 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName: string, notificationHubName: string, authorizationRuleName: string, - options?: NotificationHubsGetAuthorizationRuleOptionalParams + options?: NotificationHubsGetAuthorizationRuleOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -434,55 +458,37 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName, notificationHubName, authorizationRuleName, - options + options, }, - getAuthorizationRuleOperationSpec - ); - } - - /** - * Lists the notification hubs associated with a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - namespaceName: string, - options?: NotificationHubsListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, namespaceName, options }, - listOperationSpec + getAuthorizationRuleOperationSpec, ); } /** * Gets the authorization rules for a NotificationHub. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name - * @param notificationHubName The notification hub name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name * @param options The options parameters. */ private _listAuthorizationRules( resourceGroupName: string, namespaceName: string, notificationHubName: string, - options?: NotificationHubsListAuthorizationRulesOptionalParams + options?: NotificationHubsListAuthorizationRulesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, notificationHubName, options }, - listAuthorizationRulesOperationSpec + listAuthorizationRulesOperationSpec, ); } /** * Gets the Primary and Secondary ConnectionStrings to the NotificationHub - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. - * @param authorizationRuleName The connection string of the NotificationHub for the specified - * authorizationRule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param authorizationRuleName Authorization Rule Name * @param options The options parameters. */ listKeys( @@ -490,7 +496,7 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName: string, notificationHubName: string, authorizationRuleName: string, - options?: NotificationHubsListKeysOptionalParams + options?: NotificationHubsListKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -498,20 +504,19 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName, notificationHubName, authorizationRuleName, - options + options, }, - listKeysOperationSpec + listKeysOperationSpec, ); } /** * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. - * @param authorizationRuleName The connection string of the NotificationHub for the specified - * authorizationRule. - * @param parameters Parameters supplied to regenerate the NotificationHub Authorization Rule Key. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param authorizationRuleName Authorization Rule Name + * @param parameters Request content. * @param options The options parameters. */ regenerateKeys( @@ -519,8 +524,8 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName: string, notificationHubName: string, authorizationRuleName: string, - parameters: PolicykeyResource, - options?: NotificationHubsRegenerateKeysOptionalParams + parameters: PolicyKeyResource, + options?: NotificationHubsRegenerateKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -529,35 +534,35 @@ export class NotificationHubsImpl implements NotificationHubs { notificationHubName, authorizationRuleName, parameters, - options + options, }, - regenerateKeysOperationSpec + regenerateKeysOperationSpec, ); } /** - * Lists the PNS Credentials associated with a notification hub . - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. + * Lists the PNS Credentials associated with a notification hub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name * @param options The options parameters. */ getPnsCredentials( resourceGroupName: string, namespaceName: string, notificationHubName: string, - options?: NotificationHubsGetPnsCredentialsOptionalParams + options?: NotificationHubsGetPnsCredentialsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, notificationHubName, options }, - getPnsCredentialsOperationSpec + getPnsCredentialsOperationSpec, ); } /** * ListNext - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ @@ -565,19 +570,19 @@ export class NotificationHubsImpl implements NotificationHubs { resourceGroupName: string, namespaceName: string, nextLink: string, - options?: NotificationHubsListNextOptionalParams + options?: NotificationHubsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } /** * ListAuthorizationRulesNext - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name - * @param notificationHubName The notification hub name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name * @param nextLink The nextLink from the previous successful call to the ListAuthorizationRules method. * @param options The options parameters. */ @@ -586,7 +591,7 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName: string, notificationHubName: string, nextLink: string, - options?: NotificationHubsListAuthorizationRulesNextOptionalParams + options?: NotificationHubsListAuthorizationRulesNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -594,148 +599,193 @@ export class NotificationHubsImpl implements NotificationHubs { namespaceName, notificationHubName, nextLink, - options + options, }, - listAuthorizationRulesNextOperationSpec + listAuthorizationRulesNextOperationSpec, ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const checkNotificationHubAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability", - httpMethod: "POST", +const checkNotificationHubAvailabilityOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CheckAvailabilityResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.namespaceName, + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer, + }; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CheckAvailabilityResult - } + bodyMapper: Mappers.NotificationHubResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, + Parameters.notificationHubName, ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer + headerParameters: [Parameters.accept], + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.NotificationHubResource + bodyMapper: Mappers.NotificationHubResource, }, 201: { - bodyMapper: Mappers.NotificationHubResource - } + bodyMapper: Mappers.NotificationHubResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.notificationHubName + Parameters.notificationHubName, ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; -const patchOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}", +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.NotificationHubResource - } + bodyMapper: Mappers.NotificationHubResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.notificationHubName + Parameters.notificationHubName, ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}", httpMethod: "DELETE", - responses: { 200: {} }, + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.notificationHubName + Parameters.notificationHubName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}", +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NotificationHubResource - } + bodyMapper: Mappers.NotificationHubListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken, + Parameters.top, + ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.notificationHubName ], headerParameters: [Parameters.accept], - serializer + serializer, }; const debugSendOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/debugsend", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/debugsend", httpMethod: "POST", responses: { - 201: { - bodyMapper: Mappers.DebugSendResponse - } + 200: { + bodyMapper: Mappers.DebugSendResponse, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.notificationHubName + Parameters.notificationHubName, ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer + headerParameters: [Parameters.accept], + serializer, }; const createOrUpdateAuthorizationRuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SharedAccessAuthorizationRuleResource - } + bodyMapper: Mappers.SharedAccessAuthorizationRuleResource, + }, + 201: { + bodyMapper: Mappers.SharedAccessAuthorizationRuleResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], @@ -744,37 +794,22 @@ const createOrUpdateAuthorizationRuleOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, + Parameters.notificationHubName, Parameters.authorizationRuleName, - Parameters.notificationHubName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteAuthorizationRuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}", httpMethod: "DELETE", - responses: { 200: {}, 204: {} }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.namespaceName, - Parameters.authorizationRuleName, - Parameters.notificationHubName - ], - serializer -}; -const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}", - httpMethod: "GET", responses: { - 200: { - bodyMapper: Mappers.SharedAccessAuthorizationRuleResource - } + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -782,39 +817,45 @@ const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, + Parameters.notificationHubName, Parameters.authorizationRuleName, - Parameters.notificationHubName ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs", +const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NotificationHubListResult - } + bodyMapper: Mappers.SharedAccessAuthorizationRuleResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, + Parameters.notificationHubName, + Parameters.authorizationRuleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAuthorizationRulesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult - } + bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -822,19 +863,21 @@ const listAuthorizationRulesOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.notificationHubName + Parameters.notificationHubName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}/listKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/listKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ResourceListKeys - } + bodyMapper: Mappers.ResourceListKeys, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -842,20 +885,22 @@ const listKeysOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, + Parameters.notificationHubName, Parameters.authorizationRuleName, - Parameters.notificationHubName ], headerParameters: [Parameters.accept], - serializer + serializer, }; const regenerateKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ResourceListKeys - } + bodyMapper: Mappers.ResourceListKeys, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], @@ -864,21 +909,23 @@ const regenerateKeysOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, + Parameters.notificationHubName, Parameters.authorizationRuleName, - Parameters.notificationHubName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const getPnsCredentialsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/pnsCredentials", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/pnsCredentials", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.PnsCredentialsResource - } + bodyMapper: Mappers.PnsCredentialsResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -886,47 +933,51 @@ const getPnsCredentialsOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.notificationHubName + Parameters.notificationHubName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NotificationHubListResult - } + bodyMapper: Mappers.NotificationHubListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAuthorizationRulesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult - } + bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.notificationHubName + Parameters.notificationHubName, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/notificationhubs/arm-notificationhubs/src/operations/operations.ts b/sdk/notificationhubs/arm-notificationhubs/src/operations/operations.ts index 9e0392e17d4d..bfe8e5fa85db 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/operations/operations.ts +++ b/sdk/notificationhubs/arm-notificationhubs/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 { } /** - * Lists all of the available NotificationHubs REST API operations. + * Lists all available Notification Hubs 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; @@ -89,11 +89,11 @@ export class OperationsImpl implements Operations { } /** - * Lists all of the available NotificationHubs REST API operations. + * Lists all available Notification Hubs 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,30 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, 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.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/notificationhubs/arm-notificationhubs/src/operations/privateEndpointConnections.ts b/sdk/notificationhubs/arm-notificationhubs/src/operations/privateEndpointConnections.ts new file mode 100644 index 000000000000..d13682cb8c74 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/src/operations/privateEndpointConnections.ts @@ -0,0 +1,629 @@ +/* + * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { PrivateEndpointConnections } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NotificationHubsManagementClient } from "../notificationHubsManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + PrivateEndpointConnectionResource, + PrivateEndpointConnectionsListOptionalParams, + PrivateEndpointConnectionsListResponse, + PrivateLinkResource, + PrivateEndpointConnectionsListGroupIdsOptionalParams, + PrivateEndpointConnectionsListGroupIdsResponse, + PrivateEndpointConnectionsUpdateOptionalParams, + PrivateEndpointConnectionsUpdateResponse, + PrivateEndpointConnectionsDeleteOptionalParams, + PrivateEndpointConnectionsDeleteResponse, + PrivateEndpointConnectionsGetOptionalParams, + PrivateEndpointConnectionsGetResponse, + PrivateEndpointConnectionsGetGroupIdOptionalParams, + PrivateEndpointConnectionsGetGroupIdResponse, +} from "../models"; + +/// +/** Class containing PrivateEndpointConnections operations. */ +export class PrivateEndpointConnectionsImpl + implements PrivateEndpointConnections +{ + private readonly client: NotificationHubsManagementClient; + + /** + * Initialize a new instance of the class PrivateEndpointConnections class. + * @param client Reference to the service client + */ + constructor(client: NotificationHubsManagementClient) { + this.client = client; + } + + /** + * Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + namespaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, namespaceName, 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.listPagingPage( + resourceGroupName, + namespaceName, + options, + settings, + ); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + namespaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams, + _settings?: PageSettings, + ): AsyncIterableIterator { + let result: PrivateEndpointConnectionsListResponse; + result = await this._list(resourceGroupName, namespaceName, options); + yield result.value || []; + } + + private async *listPagingAll( + resourceGroupName: string, + namespaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + namespaceName, + options, + )) { + yield* page; + } + } + + /** + * Even though this namespace requires subscription id, resource group and namespace name, it returns a + * constant payload (for a given namespacE) every time it's called. + * That's why we don't send it to the sibling RP, but process it directly in the scale unit that + * received the request. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param options The options parameters. + */ + public listGroupIds( + resourceGroupName: string, + namespaceName: string, + options?: PrivateEndpointConnectionsListGroupIdsOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listGroupIdsPagingAll( + resourceGroupName, + namespaceName, + 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.listGroupIdsPagingPage( + resourceGroupName, + namespaceName, + options, + settings, + ); + }, + }; + } + + private async *listGroupIdsPagingPage( + resourceGroupName: string, + namespaceName: string, + options?: PrivateEndpointConnectionsListGroupIdsOptionalParams, + _settings?: PageSettings, + ): AsyncIterableIterator { + let result: PrivateEndpointConnectionsListGroupIdsResponse; + result = await this._listGroupIds( + resourceGroupName, + namespaceName, + options, + ); + yield result.value || []; + } + + private async *listGroupIdsPagingAll( + resourceGroupName: string, + namespaceName: string, + options?: PrivateEndpointConnectionsListGroupIdsOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listGroupIdsPagingPage( + resourceGroupName, + namespaceName, + options, + )) { + yield* page; + } + } + + /** + * Approves or rejects Private Endpoint Connection. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param privateEndpointConnectionName Private Endpoint Connection Name + * @param parameters Description of the Private Endpoint Connection resource. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + namespaceName: string, + privateEndpointConnectionName: string, + parameters: PrivateEndpointConnectionResource, + options?: PrivateEndpointConnectionsUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + PrivateEndpointConnectionsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + parameters, + options, + }, + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + PrivateEndpointConnectionsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * Approves or rejects Private Endpoint Connection. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param privateEndpointConnectionName Private Endpoint Connection Name + * @param parameters Description of the Private Endpoint Connection resource. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + namespaceName: string, + privateEndpointConnectionName: string, + parameters: PrivateEndpointConnectionResource, + options?: PrivateEndpointConnectionsUpdateOptionalParams, + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Deletes the Private Endpoint Connection. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param privateEndpointConnectionName Private Endpoint Connection Name + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + namespaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + PrivateEndpointConnectionsDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + options, + }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + PrivateEndpointConnectionsDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Deletes the Private Endpoint Connection. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param privateEndpointConnectionName Private Endpoint Connection Name + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + namespaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Returns a Private Endpoint Connection with a given name. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param privateEndpointConnectionName Private Endpoint Connection Name + * @param options The options parameters. + */ + get( + resourceGroupName: string, + namespaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + namespaceName, + privateEndpointConnectionName, + options, + }, + getOperationSpec, + ); + } + + /** + * Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + namespaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, namespaceName, options }, + listOperationSpec, + ); + } + + /** + * Even though this namespace requires subscription id, resource group and namespace name, it returns a + * constant payload (for a given namespacE) every time it's called. + * That's why we don't send it to the sibling RP, but process it directly in the scale unit that + * received the request. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param subResourceName Name of the Private Link sub-resource. The only supported sub-resource is + * "namespace" + * @param options The options parameters. + */ + getGroupId( + resourceGroupName: string, + namespaceName: string, + subResourceName: string, + options?: PrivateEndpointConnectionsGetGroupIdOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, namespaceName, subResourceName, options }, + getGroupIdOperationSpec, + ); + } + + /** + * Even though this namespace requires subscription id, resource group and namespace name, it returns a + * constant payload (for a given namespacE) every time it's called. + * That's why we don't send it to the sibling RP, but process it directly in the scale unit that + * received the request. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param options The options parameters. + */ + private _listGroupIds( + resourceGroupName: string, + namespaceName: string, + options?: PrivateEndpointConnectionsListGroupIdsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, namespaceName, options }, + listGroupIdsOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionResource, + }, + 201: { + bodyMapper: Mappers.PrivateEndpointConnectionResource, + }, + 202: { + bodyMapper: Mappers.PrivateEndpointConnectionResource, + }, + 204: { + bodyMapper: Mappers.PrivateEndpointConnectionResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.namespaceName, + Parameters.privateEndpointConnectionName, + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders, + }, + 201: { + headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders, + }, + 202: { + headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders, + }, + 204: { + headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.namespaceName, + Parameters.privateEndpointConnectionName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.namespaceName, + Parameters.privateEndpointConnectionName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionResourceListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.namespaceName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getGroupIdOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateLinkResources/{subResourceName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.namespaceName, + Parameters.subResourceName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listGroupIdsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateLinkResources", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResourceListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.namespaceName, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/index.ts b/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/index.ts index c93887c25e39..cb17c9777d9d 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/index.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/index.ts @@ -6,6 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./operations"; -export * from "./namespaces"; export * from "./notificationHubs"; +export * from "./namespaces"; +export * from "./operations"; +export * from "./privateEndpointConnections"; diff --git a/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/namespaces.ts b/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/namespaces.ts index 9926e4166f52..40c4fcbf3308 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/namespaces.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/namespaces.ts @@ -7,26 +7,24 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { NamespaceResource, - NamespacesListOptionalParams, NamespacesListAllOptionalParams, + NamespacesListOptionalParams, SharedAccessAuthorizationRuleResource, NamespacesListAuthorizationRulesOptionalParams, CheckAvailabilityParameters, NamespacesCheckAvailabilityOptionalParams, NamespacesCheckAvailabilityResponse, - NamespaceCreateOrUpdateParameters, + NamespacesGetOptionalParams, + NamespacesGetResponse, NamespacesCreateOrUpdateOptionalParams, NamespacesCreateOrUpdateResponse, NamespacePatchParameters, - NamespacesPatchOptionalParams, - NamespacesPatchResponse, + NamespacesUpdateOptionalParams, + NamespacesUpdateResponse, NamespacesDeleteOptionalParams, - NamespacesGetOptionalParams, - NamespacesGetResponse, - SharedAccessAuthorizationRuleCreateOrUpdateParameters, NamespacesCreateOrUpdateAuthorizationRuleOptionalParams, NamespacesCreateOrUpdateAuthorizationRuleResponse, NamespacesDeleteAuthorizationRuleOptionalParams, @@ -34,183 +32,198 @@ import { NamespacesGetAuthorizationRuleResponse, NamespacesListKeysOptionalParams, NamespacesListKeysResponse, - PolicykeyResource, + PolicyKeyResource, NamespacesRegenerateKeysOptionalParams, - NamespacesRegenerateKeysResponse + NamespacesRegenerateKeysResponse, + NamespacesGetPnsCredentialsOptionalParams, + NamespacesGetPnsCredentialsResponse, } from "../models"; /// /** Interface representing a Namespaces. */ export interface Namespaces { /** - * Lists the available namespaces within a resourceGroup. - * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the - * method lists all the namespaces within subscription + * Lists all the available namespaces within the subscription. * @param options The options parameters. */ - list( - resourceGroupName: string, - options?: NamespacesListOptionalParams + listAll( + options?: NamespacesListAllOptionalParams, ): PagedAsyncIterableIterator; /** - * Lists all the available namespaces within the subscription irrespective of the resourceGroups. + * Lists the available namespaces within a resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ - listAll( - options?: NamespacesListAllOptionalParams + list( + resourceGroupName: string, + options?: NamespacesListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the authorization rules for a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name * @param options The options parameters. */ listAuthorizationRules( resourceGroupName: string, namespaceName: string, - options?: NamespacesListAuthorizationRulesOptionalParams + options?: NamespacesListAuthorizationRulesOptionalParams, ): PagedAsyncIterableIterator; /** * Checks the availability of the given service namespace across all Azure subscriptions. This is * useful because the domain name is created based on the service namespace name. - * @param parameters The namespace name. + * @param parameters Request content. * @param options The options parameters. */ checkAvailability( parameters: CheckAvailabilityParameters, - options?: NamespacesCheckAvailabilityOptionalParams + options?: NamespacesCheckAvailabilityOptionalParams, ): Promise; /** - * Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. - * This operation is idempotent. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param parameters Parameters supplied to create a Namespace Resource. + * Returns the given namespace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name * @param options The options parameters. */ - createOrUpdate( + get( resourceGroupName: string, namespaceName: string, - parameters: NamespaceCreateOrUpdateParameters, - options?: NamespacesCreateOrUpdateOptionalParams - ): Promise; + options?: NamespacesGetOptionalParams, + ): Promise; /** - * Patches the existing namespace - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param parameters Parameters supplied to patch a Namespace Resource. + * Creates / Updates a Notification Hub namespace. This operation is idempotent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param parameters Request content. * @param options The options parameters. */ - patch( + beginCreateOrUpdate( resourceGroupName: string, namespaceName: string, - parameters: NamespacePatchParameters, - options?: NamespacesPatchOptionalParams - ): Promise; + parameters: NamespaceResource, + options?: NamespacesCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NamespacesCreateOrUpdateResponse + > + >; /** - * Deletes an existing namespace. This operation also removes all associated notificationHubs under the - * namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. + * Creates / Updates a Notification Hub namespace. This operation is idempotent. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param parameters Request content. * @param options The options parameters. */ - beginDelete( + beginCreateOrUpdateAndWait( resourceGroupName: string, namespaceName: string, - options?: NamespacesDeleteOptionalParams - ): Promise, void>>; + parameters: NamespaceResource, + options?: NamespacesCreateOrUpdateOptionalParams, + ): Promise; /** - * Deletes an existing namespace. This operation also removes all associated notificationHubs under the - * namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. + * Patches the existing namespace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param parameters Request content. * @param options The options parameters. */ - beginDeleteAndWait( + update( resourceGroupName: string, namespaceName: string, - options?: NamespacesDeleteOptionalParams - ): Promise; + parameters: NamespacePatchParameters, + options?: NamespacesUpdateOptionalParams, + ): Promise; /** - * Returns the description for the specified namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. + * Deletes an existing namespace. This operation also removes all associated notificationHubs under the + * namespace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name * @param options The options parameters. */ - get( + delete( resourceGroupName: string, namespaceName: string, - options?: NamespacesGetOptionalParams - ): Promise; + options?: NamespacesDeleteOptionalParams, + ): Promise; /** * Creates an authorization rule for a namespace - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param authorizationRuleName Authorization Rule Name. - * @param parameters The shared access authorization rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param authorizationRuleName Authorization Rule Name + * @param parameters Request content. * @param options The options parameters. */ createOrUpdateAuthorizationRule( resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - parameters: SharedAccessAuthorizationRuleCreateOrUpdateParameters, - options?: NamespacesCreateOrUpdateAuthorizationRuleOptionalParams + parameters: SharedAccessAuthorizationRuleResource, + options?: NamespacesCreateOrUpdateAuthorizationRuleOptionalParams, ): Promise; /** * Deletes a namespace authorization rule - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param authorizationRuleName Authorization Rule Name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param authorizationRuleName Authorization Rule Name * @param options The options parameters. */ deleteAuthorizationRule( resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - options?: NamespacesDeleteAuthorizationRuleOptionalParams + options?: NamespacesDeleteAuthorizationRuleOptionalParams, ): Promise; /** * Gets an authorization rule for a namespace by name. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name - * @param authorizationRuleName Authorization rule name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param authorizationRuleName Authorization Rule Name * @param options The options parameters. */ getAuthorizationRule( resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - options?: NamespacesGetAuthorizationRuleOptionalParams + options?: NamespacesGetAuthorizationRuleOptionalParams, ): Promise; /** - * Gets the Primary and Secondary ConnectionStrings to the namespace - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param authorizationRuleName The connection string of the namespace for the specified - * authorizationRule. + * Gets the Primary and Secondary ConnectionStrings to the namespace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param authorizationRuleName Authorization Rule Name * @param options The options parameters. */ listKeys( resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - options?: NamespacesListKeysOptionalParams + options?: NamespacesListKeysOptionalParams, ): Promise; /** * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param authorizationRuleName The connection string of the namespace for the specified - * authorizationRule. - * @param parameters Parameters supplied to regenerate the Namespace Authorization Rule Key. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param authorizationRuleName Authorization Rule Name + * @param parameters Request content. * @param options The options parameters. */ regenerateKeys( resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - parameters: PolicykeyResource, - options?: NamespacesRegenerateKeysOptionalParams + parameters: PolicyKeyResource, + options?: NamespacesRegenerateKeysOptionalParams, ): Promise; + /** + * Lists the PNS credentials associated with a namespace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param options The options parameters. + */ + getPnsCredentials( + resourceGroupName: string, + namespaceName: string, + options?: NamespacesGetPnsCredentialsOptionalParams, + ): Promise; } diff --git a/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/notificationHubs.ts b/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/notificationHubs.ts index 3864c4303140..2bfb7fca6bff 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/notificationHubs.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/notificationHubs.ts @@ -15,17 +15,16 @@ import { CheckAvailabilityParameters, NotificationHubsCheckNotificationHubAvailabilityOptionalParams, NotificationHubsCheckNotificationHubAvailabilityResponse, - NotificationHubCreateOrUpdateParameters, + NotificationHubsGetOptionalParams, + NotificationHubsGetResponse, NotificationHubsCreateOrUpdateOptionalParams, NotificationHubsCreateOrUpdateResponse, - NotificationHubsPatchOptionalParams, - NotificationHubsPatchResponse, + NotificationHubPatchParameters, + NotificationHubsUpdateOptionalParams, + NotificationHubsUpdateResponse, NotificationHubsDeleteOptionalParams, - NotificationHubsGetOptionalParams, - NotificationHubsGetResponse, NotificationHubsDebugSendOptionalParams, NotificationHubsDebugSendResponse, - SharedAccessAuthorizationRuleCreateOrUpdateParameters, NotificationHubsCreateOrUpdateAuthorizationRuleOptionalParams, NotificationHubsCreateOrUpdateAuthorizationRuleResponse, NotificationHubsDeleteAuthorizationRuleOptionalParams, @@ -33,11 +32,11 @@ import { NotificationHubsGetAuthorizationRuleResponse, NotificationHubsListKeysOptionalParams, NotificationHubsListKeysResponse, - PolicykeyResource, + PolicyKeyResource, NotificationHubsRegenerateKeysOptionalParams, NotificationHubsRegenerateKeysResponse, NotificationHubsGetPnsCredentialsOptionalParams, - NotificationHubsGetPnsCredentialsResponse + NotificationHubsGetPnsCredentialsResponse, } from "../models"; /// @@ -45,115 +44,117 @@ import { export interface NotificationHubs { /** * Lists the notification hubs associated with a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name * @param options The options parameters. */ list( resourceGroupName: string, namespaceName: string, - options?: NotificationHubsListOptionalParams + options?: NotificationHubsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the authorization rules for a NotificationHub. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name - * @param notificationHubName The notification hub name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name * @param options The options parameters. */ listAuthorizationRules( resourceGroupName: string, namespaceName: string, notificationHubName: string, - options?: NotificationHubsListAuthorizationRulesOptionalParams + options?: NotificationHubsListAuthorizationRulesOptionalParams, ): PagedAsyncIterableIterator; /** * Checks the availability of the given notificationHub in a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param parameters The notificationHub name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param parameters Request content. * @param options The options parameters. */ checkNotificationHubAvailability( resourceGroupName: string, namespaceName: string, parameters: CheckAvailabilityParameters, - options?: NotificationHubsCheckNotificationHubAvailabilityOptionalParams + options?: NotificationHubsCheckNotificationHubAvailabilityOptionalParams, ): Promise; + /** + * Gets the notification hub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param options The options parameters. + */ + get( + resourceGroupName: string, + namespaceName: string, + notificationHubName: string, + options?: NotificationHubsGetOptionalParams, + ): Promise; /** * Creates/Update a NotificationHub in a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. - * @param parameters Parameters supplied to the create/update a NotificationHub Resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param parameters Request content. * @param options The options parameters. */ createOrUpdate( resourceGroupName: string, namespaceName: string, notificationHubName: string, - parameters: NotificationHubCreateOrUpdateParameters, - options?: NotificationHubsCreateOrUpdateOptionalParams + parameters: NotificationHubResource, + options?: NotificationHubsCreateOrUpdateOptionalParams, ): Promise; /** * Patch a NotificationHub in a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param parameters Request content. * @param options The options parameters. */ - patch( + update( resourceGroupName: string, namespaceName: string, notificationHubName: string, - options?: NotificationHubsPatchOptionalParams - ): Promise; + parameters: NotificationHubPatchParameters, + options?: NotificationHubsUpdateOptionalParams, + ): Promise; /** * Deletes a notification hub associated with a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name * @param options The options parameters. */ delete( resourceGroupName: string, namespaceName: string, notificationHubName: string, - options?: NotificationHubsDeleteOptionalParams + options?: NotificationHubsDeleteOptionalParams, ): Promise; /** - * Lists the notification hubs associated with a namespace. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - namespaceName: string, - notificationHubName: string, - options?: NotificationHubsGetOptionalParams - ): Promise; - /** - * test send a push notification - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. + * Test send a push notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name * @param options The options parameters. */ debugSend( resourceGroupName: string, namespaceName: string, notificationHubName: string, - options?: NotificationHubsDebugSendOptionalParams + options?: NotificationHubsDebugSendOptionalParams, ): Promise; /** * Creates/Updates an authorization rule for a NotificationHub - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. - * @param authorizationRuleName Authorization Rule Name. - * @param parameters The shared access authorization rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param authorizationRuleName Authorization Rule Name + * @param parameters Request content. * @param options The options parameters. */ createOrUpdateAuthorizationRule( @@ -161,15 +162,15 @@ export interface NotificationHubs { namespaceName: string, notificationHubName: string, authorizationRuleName: string, - parameters: SharedAccessAuthorizationRuleCreateOrUpdateParameters, - options?: NotificationHubsCreateOrUpdateAuthorizationRuleOptionalParams + parameters: SharedAccessAuthorizationRuleResource, + options?: NotificationHubsCreateOrUpdateAuthorizationRuleOptionalParams, ): Promise; /** * Deletes a notificationHub authorization rule - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. - * @param authorizationRuleName Authorization Rule Name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param authorizationRuleName Authorization Rule Name * @param options The options parameters. */ deleteAuthorizationRule( @@ -177,14 +178,14 @@ export interface NotificationHubs { namespaceName: string, notificationHubName: string, authorizationRuleName: string, - options?: NotificationHubsDeleteAuthorizationRuleOptionalParams + options?: NotificationHubsDeleteAuthorizationRuleOptionalParams, ): Promise; /** * Gets an authorization rule for a NotificationHub by name. - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name - * @param notificationHubName The notification hub name. - * @param authorizationRuleName authorization rule name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param authorizationRuleName Authorization Rule Name * @param options The options parameters. */ getAuthorizationRule( @@ -192,15 +193,14 @@ export interface NotificationHubs { namespaceName: string, notificationHubName: string, authorizationRuleName: string, - options?: NotificationHubsGetAuthorizationRuleOptionalParams + options?: NotificationHubsGetAuthorizationRuleOptionalParams, ): Promise; /** * Gets the Primary and Secondary ConnectionStrings to the NotificationHub - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. - * @param authorizationRuleName The connection string of the NotificationHub for the specified - * authorizationRule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param authorizationRuleName Authorization Rule Name * @param options The options parameters. */ listKeys( @@ -208,16 +208,15 @@ export interface NotificationHubs { namespaceName: string, notificationHubName: string, authorizationRuleName: string, - options?: NotificationHubsListKeysOptionalParams + options?: NotificationHubsListKeysOptionalParams, ): Promise; /** * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. - * @param authorizationRuleName The connection string of the NotificationHub for the specified - * authorizationRule. - * @param parameters Parameters supplied to regenerate the NotificationHub Authorization Rule Key. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name + * @param authorizationRuleName Authorization Rule Name + * @param parameters Request content. * @param options The options parameters. */ regenerateKeys( @@ -225,20 +224,20 @@ export interface NotificationHubs { namespaceName: string, notificationHubName: string, authorizationRuleName: string, - parameters: PolicykeyResource, - options?: NotificationHubsRegenerateKeysOptionalParams + parameters: PolicyKeyResource, + options?: NotificationHubsRegenerateKeysOptionalParams, ): Promise; /** - * Lists the PNS Credentials associated with a notification hub . - * @param resourceGroupName The name of the resource group. - * @param namespaceName The namespace name. - * @param notificationHubName The notification hub name. + * Lists the PNS Credentials associated with a notification hub. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param notificationHubName Notification Hub name * @param options The options parameters. */ getPnsCredentials( resourceGroupName: string, namespaceName: string, notificationHubName: string, - options?: NotificationHubsGetPnsCredentialsOptionalParams + options?: NotificationHubsGetPnsCredentialsOptionalParams, ): Promise; } diff --git a/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/operations.ts b/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/operations.ts index fd9cb1c618ca..05f96558ebbd 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/operations.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/operations.ts @@ -13,10 +13,10 @@ import { Operation, OperationsListOptionalParams } from "../models"; /** Interface representing a Operations. */ export interface Operations { /** - * Lists all of the available NotificationHubs REST API operations. + * Lists all available Notification Hubs operations. * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/privateEndpointConnections.ts new file mode 100644 index 000000000000..393d2dfdc992 --- /dev/null +++ b/sdk/notificationhubs/arm-notificationhubs/src/operationsInterfaces/privateEndpointConnections.ts @@ -0,0 +1,156 @@ +/* + * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + PrivateEndpointConnectionResource, + PrivateEndpointConnectionsListOptionalParams, + PrivateLinkResource, + PrivateEndpointConnectionsListGroupIdsOptionalParams, + PrivateEndpointConnectionsUpdateOptionalParams, + PrivateEndpointConnectionsUpdateResponse, + PrivateEndpointConnectionsDeleteOptionalParams, + PrivateEndpointConnectionsDeleteResponse, + PrivateEndpointConnectionsGetOptionalParams, + PrivateEndpointConnectionsGetResponse, + PrivateEndpointConnectionsGetGroupIdOptionalParams, + PrivateEndpointConnectionsGetGroupIdResponse, +} from "../models"; + +/// +/** Interface representing a PrivateEndpointConnections. */ +export interface PrivateEndpointConnections { + /** + * Returns all Private Endpoint Connections that belong to the given Notification Hubs namespace. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param options The options parameters. + */ + list( + resourceGroupName: string, + namespaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Even though this namespace requires subscription id, resource group and namespace name, it returns a + * constant payload (for a given namespacE) every time it's called. + * That's why we don't send it to the sibling RP, but process it directly in the scale unit that + * received the request. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param options The options parameters. + */ + listGroupIds( + resourceGroupName: string, + namespaceName: string, + options?: PrivateEndpointConnectionsListGroupIdsOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Approves or rejects Private Endpoint Connection. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param privateEndpointConnectionName Private Endpoint Connection Name + * @param parameters Description of the Private Endpoint Connection resource. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + namespaceName: string, + privateEndpointConnectionName: string, + parameters: PrivateEndpointConnectionResource, + options?: PrivateEndpointConnectionsUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + PrivateEndpointConnectionsUpdateResponse + > + >; + /** + * Approves or rejects Private Endpoint Connection. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param privateEndpointConnectionName Private Endpoint Connection Name + * @param parameters Description of the Private Endpoint Connection resource. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + namespaceName: string, + privateEndpointConnectionName: string, + parameters: PrivateEndpointConnectionResource, + options?: PrivateEndpointConnectionsUpdateOptionalParams, + ): Promise; + /** + * Deletes the Private Endpoint Connection. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param privateEndpointConnectionName Private Endpoint Connection Name + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + namespaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + PrivateEndpointConnectionsDeleteResponse + > + >; + /** + * Deletes the Private Endpoint Connection. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param privateEndpointConnectionName Private Endpoint Connection Name + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + namespaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsDeleteOptionalParams, + ): Promise; + /** + * Returns a Private Endpoint Connection with a given name. + * This is a public API that can be called directly by Notification Hubs users. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param privateEndpointConnectionName Private Endpoint Connection Name + * @param options The options parameters. + */ + get( + resourceGroupName: string, + namespaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsGetOptionalParams, + ): Promise; + /** + * Even though this namespace requires subscription id, resource group and namespace name, it returns a + * constant payload (for a given namespacE) every time it's called. + * That's why we don't send it to the sibling RP, but process it directly in the scale unit that + * received the request. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param namespaceName Namespace name + * @param subResourceName Name of the Private Link sub-resource. The only supported sub-resource is + * "namespace" + * @param options The options parameters. + */ + getGroupId( + resourceGroupName: string, + namespaceName: string, + subResourceName: string, + options?: PrivateEndpointConnectionsGetGroupIdOptionalParams, + ): Promise; +} diff --git a/sdk/notificationhubs/arm-notificationhubs/src/pagingHelper.ts b/sdk/notificationhubs/arm-notificationhubs/src/pagingHelper.ts index d85fc13bce1e..205cccc26592 100644 --- a/sdk/notificationhubs/arm-notificationhubs/src/pagingHelper.ts +++ b/sdk/notificationhubs/arm-notificationhubs/src/pagingHelper.ts @@ -13,11 +13,11 @@ export interface PageInfo { const pageMap = new WeakMap(); /** - * Given a result page from a pageable operation, returns a - * continuation token that can be used to begin paging from + * Given the last `.value` produced by the `byPage` iterator, + * returns a continuation token that can be used to begin paging from * that point later. - * @param page A result object from calling .byPage() on a paged operation. - * @returns The continuation token that can be passed into byPage(). + * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. + * @returns The continuation token that can be passed into byPage() during future calls. */ export function getContinuationToken(page: unknown): string | undefined { if (typeof page !== "object" || page === null) { @@ -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/notificationhubs/arm-notificationhubs/test/notificationhubs_examples.ts b/sdk/notificationhubs/arm-notificationhubs/test/notificationhubs_examples.ts index 74d180b542c4..d51fc649e30f 100644 --- a/sdk/notificationhubs/arm-notificationhubs/test/notificationhubs_examples.ts +++ b/sdk/notificationhubs/arm-notificationhubs/test/notificationhubs_examples.ts @@ -60,7 +60,20 @@ describe("NotificationHubs test", () => { }); it("namespaces create test", async function () { - const res = await client.namespaces.createOrUpdate(resourceGroup, nameSpaceName, { location: location }); + const res = await client.namespaces.beginCreateOrUpdateAndWait(resourceGroup, + nameSpaceName, + { + networkAcls: { + ipRules: [ + { ipMask: "185.48.100.00/24", rights: ["Manage", "Send", "Listen"] }, + ], + publicNetworkRule: { rights: ["Listen"] }, + }, + zoneRedundancy: "Enabled", + sku: { name: "Standard", tier: "Standard" }, + tags: { tag1: "value1", tag2: "value2" }, + location: location + }, testPollingOptions); assert.equal(res.name, nameSpaceName); }); @@ -71,6 +84,7 @@ describe("NotificationHubs test", () => { it("notificationHubs create test", async function () { const res = await client.notificationHubs.createOrUpdate(resourceGroup, nameSpaceName, notificationhubsName, { location: location }); + await delay(100000); assert.equal(res.name, notificationhubsName); }); @@ -97,6 +111,6 @@ describe("NotificationHubs test", () => { }); it("namespaces delete test", async function () { - const res = await client.namespaces.beginDeleteAndWait(resourceGroup, nameSpaceName, testPollingOptions); + const res = await client.namespaces.delete(resourceGroup, nameSpaceName); }); }); From 751491e6c58e5ed3614c69e5f247e234df4acef9 Mon Sep 17 00:00:00 2001 From: ZiWei Chen <98569699+kazrael2119@users.noreply.github.com> Date: Tue, 19 Mar 2024 14:09:53 +0800 Subject: [PATCH 18/20] [mgmt] netapp release (#28775) https://github.com/Azure/sdk-release-request/issues/4953 --- sdk/netapp/arm-netapp/CHANGELOG.md | 27 +- sdk/netapp/arm-netapp/LICENSE | 2 +- sdk/netapp/arm-netapp/README.md | 2 +- sdk/netapp/arm-netapp/_meta.json | 6 +- sdk/netapp/arm-netapp/assets.json | 2 +- sdk/netapp/arm-netapp/package.json | 9 +- .../arm-netapp/review/arm-netapp.api.md | 449 +- .../samples-dev/accountBackupsDeleteSample.ts | 45 - .../samples-dev/accountBackupsGetSample.ts | 44 - ...accountBackupsListByNetAppAccountSample.ts | 45 - .../accountsCreateOrUpdateSample.ts | 14 +- .../samples-dev/accountsDeleteSample.ts | 4 +- .../samples-dev/accountsGetSample.ts | 2 +- .../accountsListBySubscriptionSample.ts | 2 +- .../samples-dev/accountsListSample.ts | 2 +- .../accountsMigrateEncryptionKeySample.ts | 54 - .../accountsRenewCredentialsSample.ts | 4 +- .../samples-dev/accountsUpdateSample.ts | 4 +- .../samples-dev/backupPoliciesCreateSample.ts | 6 +- .../samples-dev/backupPoliciesDeleteSample.ts | 4 +- .../samples-dev/backupPoliciesGetSample.ts | 4 +- .../samples-dev/backupPoliciesListSample.ts | 4 +- .../samples-dev/backupPoliciesUpdateSample.ts | 6 +- .../backupVaultsCreateOrUpdateSample.ts | 46 - .../samples-dev/backupVaultsDeleteSample.ts | 45 - .../samples-dev/backupVaultsGetSample.ts | 44 - .../backupVaultsListByNetAppAccountSample.ts | 45 - .../samples-dev/backupVaultsUpdateSample.ts | 46 - .../samples-dev/backupsCreateSample.ts | 52 - .../samples-dev/backupsDeleteSample.ts | 47 - .../backupsGetLatestStatusSample.ts | 46 - .../samples-dev/backupsGetSample.ts | 46 - .../backupsGetVolumeRestoreStatusSample.ts | 4 +- .../samples-dev/backupsListByVaultSample.ts | 47 - ...backupsUnderAccountMigrateBackupsSample.ts | 50 - ...ckupsUnderBackupVaultRestoreFilesSample.ts | 52 - .../backupsUnderVolumeMigrateBackupsSample.ts | 54 - .../samples-dev/backupsUpdateSample.ts | 53 - ...ResourceCheckFilePathAvailabilitySample.ts | 4 +- ...tAppResourceCheckNameAvailabilitySample.ts | 4 +- ...AppResourceCheckQuotaAvailabilitySample.ts | 4 +- ...AppResourceQueryNetworkSiblingSetSample.ts | 4 +- .../netAppResourceQueryRegionInfoSample.ts | 2 +- .../netAppResourceQuotaLimitsGetSample.ts | 4 +- .../netAppResourceQuotaLimitsListSample.ts | 2 +- .../netAppResourceRegionInfosGetSample.ts | 38 - .../netAppResourceRegionInfosListSample.ts | 41 - ...ppResourceUpdateNetworkSiblingSetSample.ts | 17 +- .../samples-dev/operationsListSample.ts | 2 +- .../samples-dev/poolsCreateOrUpdateSample.ts | 6 +- .../samples-dev/poolsDeleteSample.ts | 4 +- .../arm-netapp/samples-dev/poolsGetSample.ts | 4 +- .../arm-netapp/samples-dev/poolsListSample.ts | 2 +- .../samples-dev/poolsUpdateSample.ts | 4 +- .../snapshotPoliciesCreateSample.ts | 10 +- .../snapshotPoliciesDeleteSample.ts | 4 +- .../samples-dev/snapshotPoliciesGetSample.ts | 4 +- .../samples-dev/snapshotPoliciesListSample.ts | 4 +- .../snapshotPoliciesListVolumesSample.ts | 4 +- .../snapshotPoliciesUpdateSample.ts | 10 +- .../samples-dev/snapshotsCreateSample.ts | 4 +- .../samples-dev/snapshotsDeleteSample.ts | 4 +- .../samples-dev/snapshotsGetSample.ts | 4 +- .../samples-dev/snapshotsListSample.ts | 4 +- .../snapshotsRestoreFilesSample.ts | 8 +- .../samples-dev/snapshotsUpdateSample.ts | 4 +- .../samples-dev/subvolumesCreateSample.ts | 4 +- .../samples-dev/subvolumesDeleteSample.ts | 4 +- .../subvolumesGetMetadataSample.ts | 4 +- .../samples-dev/subvolumesGetSample.ts | 4 +- .../subvolumesListByVolumeSample.ts | 4 +- .../samples-dev/subvolumesUpdateSample.ts | 6 +- .../samples-dev/volumeGroupsCreateSample.ts | 156 +- .../samples-dev/volumeGroupsDeleteSample.ts | 4 +- .../samples-dev/volumeGroupsGetSample.ts | 8 +- .../volumeGroupsListByNetAppAccountSample.ts | 8 +- .../volumeQuotaRulesCreateSample.ts | 6 +- .../volumeQuotaRulesDeleteSample.ts | 4 +- .../samples-dev/volumeQuotaRulesGetSample.ts | 4 +- .../volumeQuotaRulesListByVolumeSample.ts | 4 +- .../volumeQuotaRulesUpdateSample.ts | 6 +- .../volumesAuthorizeReplicationSample.ts | 6 +- .../volumesBreakFileLocksSample.ts | 8 +- .../volumesBreakReplicationSample.ts | 6 +- .../volumesCreateOrUpdateSample.ts | 8 +- .../volumesDeleteReplicationSample.ts | 4 +- .../samples-dev/volumesDeleteSample.ts | 4 +- .../volumesFinalizeRelocationSample.ts | 4 +- .../samples-dev/volumesGetSample.ts | 4 +- ...umesListGetGroupIdListForLdapUserSample.ts | 6 +- .../volumesListReplicationsSample.ts | 4 +- .../samples-dev/volumesListSample.ts | 4 +- .../samples-dev/volumesPoolChangeSample.ts | 6 +- .../volumesPopulateAvailabilityZoneSample.ts | 4 +- .../volumesReInitializeReplicationSample.ts | 4 +- .../volumesReestablishReplicationSample.ts | 8 +- .../samples-dev/volumesRelocateSample.ts | 6 +- .../volumesReplicationStatusSample.ts | 4 +- .../volumesResetCifsPasswordSample.ts | 4 +- .../volumesResyncReplicationSample.ts | 4 +- .../volumesRevertRelocationSample.ts | 4 +- .../samples-dev/volumesRevertSample.ts | 6 +- .../volumesSplitCloneFromParentSample.ts | 46 - .../samples-dev/volumesUpdateSample.ts | 16 +- .../javascript/accountBackupsDeleteSample.js | 41 - .../javascript/accountBackupsGetSample.js | 37 - ...accountBackupsListByNetAppAccountSample.js | 42 - .../accountsMigrateEncryptionKeySample.js | 47 - .../backupVaultsCreateOrUpdateSample.js | 43 - .../javascript/backupVaultsDeleteSample.js | 41 - .../javascript/backupVaultsGetSample.js | 37 - .../backupVaultsListByNetAppAccountSample.js | 39 - .../javascript/backupVaultsUpdateSample.js | 43 - .../javascript/backupsCreateSample.js | 49 - .../javascript/backupsDeleteSample.js | 43 - .../backupsGetLatestStatusSample.js | 43 - .../v20-beta/javascript/backupsGetSample.js | 43 - .../javascript/backupsListByVaultSample.js | 44 - ...backupsUnderAccountMigrateBackupsSample.js | 44 - ...ckupsUnderBackupVaultRestoreFilesSample.js | 49 - .../backupsUnderVolumeMigrateBackupsSample.js | 48 - .../javascript/backupsUpdateSample.js | 46 - .../netAppResourceRegionInfosGetSample.js | 35 - .../netAppResourceRegionInfosListSample.js | 38 - .../volumesSplitCloneFromParentSample.js | 43 - .../src/accountBackupsDeleteSample.ts | 45 - .../typescript/src/accountBackupsGetSample.ts | 44 - ...accountBackupsListByNetAppAccountSample.ts | 45 - .../src/accountsMigrateEncryptionKeySample.ts | 54 - .../src/backupVaultsCreateOrUpdateSample.ts | 46 - .../src/backupVaultsDeleteSample.ts | 45 - .../typescript/src/backupVaultsGetSample.ts | 44 - .../backupVaultsListByNetAppAccountSample.ts | 45 - .../src/backupVaultsUpdateSample.ts | 46 - .../typescript/src/backupsCreateSample.ts | 52 - .../typescript/src/backupsDeleteSample.ts | 47 - .../src/backupsGetLatestStatusSample.ts | 46 - .../typescript/src/backupsGetSample.ts | 46 - .../src/backupsListByVaultSample.ts | 47 - ...backupsUnderAccountMigrateBackupsSample.ts | 50 - ...ckupsUnderBackupVaultRestoreFilesSample.ts | 52 - .../backupsUnderVolumeMigrateBackupsSample.ts | 54 - .../typescript/src/backupsUpdateSample.ts | 53 - .../src/netAppResourceRegionInfosGetSample.ts | 38 - .../netAppResourceRegionInfosListSample.ts | 41 - .../src/volumesSplitCloneFromParentSample.ts | 46 - .../{v20-beta => v20}/javascript/README.md | 356 +- .../accountsCreateOrUpdateSample.js | 4 +- .../javascript/accountsDeleteSample.js | 2 +- .../javascript/accountsGetSample.js | 2 +- .../accountsListBySubscriptionSample.js | 2 +- .../javascript/accountsListSample.js | 2 +- .../accountsRenewCredentialsSample.js | 2 +- .../javascript/accountsUpdateSample.js | 2 +- .../javascript/backupPoliciesCreateSample.js | 2 +- .../javascript/backupPoliciesDeleteSample.js | 2 +- .../javascript/backupPoliciesGetSample.js | 2 +- .../javascript/backupPoliciesListSample.js | 2 +- .../javascript/backupPoliciesUpdateSample.js | 2 +- .../backupsGetVolumeRestoreStatusSample.js | 2 +- ...ResourceCheckFilePathAvailabilitySample.js | 2 +- ...tAppResourceCheckNameAvailabilitySample.js | 2 +- ...AppResourceCheckQuotaAvailabilitySample.js | 2 +- ...AppResourceQueryNetworkSiblingSetSample.js | 2 +- .../netAppResourceQueryRegionInfoSample.js | 2 +- .../netAppResourceQuotaLimitsGetSample.js | 2 +- .../netAppResourceQuotaLimitsListSample.js | 2 +- ...ppResourceUpdateNetworkSiblingSetSample.js | 2 +- .../javascript/operationsListSample.js | 2 +- .../{v20-beta => v20}/javascript/package.json | 6 +- .../javascript/poolsCreateOrUpdateSample.js | 2 +- .../javascript/poolsDeleteSample.js | 2 +- .../javascript/poolsGetSample.js | 2 +- .../javascript/poolsListSample.js | 2 +- .../javascript/poolsUpdateSample.js | 2 +- .../{v20-beta => v20}/javascript/sample.env | 0 .../snapshotPoliciesCreateSample.js | 2 +- .../snapshotPoliciesDeleteSample.js | 2 +- .../javascript/snapshotPoliciesGetSample.js | 2 +- .../javascript/snapshotPoliciesListSample.js | 2 +- .../snapshotPoliciesListVolumesSample.js | 2 +- .../snapshotPoliciesUpdateSample.js | 2 +- .../javascript/snapshotsCreateSample.js | 2 +- .../javascript/snapshotsDeleteSample.js | 2 +- .../javascript/snapshotsGetSample.js | 2 +- .../javascript/snapshotsListSample.js | 2 +- .../javascript/snapshotsRestoreFilesSample.js | 2 +- .../javascript/snapshotsUpdateSample.js | 2 +- .../javascript/subvolumesCreateSample.js | 2 +- .../javascript/subvolumesDeleteSample.js | 2 +- .../javascript/subvolumesGetMetadataSample.js | 2 +- .../javascript/subvolumesGetSample.js | 2 +- .../subvolumesListByVolumeSample.js | 2 +- .../javascript/subvolumesUpdateSample.js | 2 +- .../javascript/volumeGroupsCreateSample.js | 4 +- .../javascript/volumeGroupsDeleteSample.js | 2 +- .../javascript/volumeGroupsGetSample.js | 4 +- .../volumeGroupsListByNetAppAccountSample.js | 4 +- .../volumeQuotaRulesCreateSample.js | 2 +- .../volumeQuotaRulesDeleteSample.js | 2 +- .../javascript/volumeQuotaRulesGetSample.js | 2 +- .../volumeQuotaRulesListByVolumeSample.js | 2 +- .../volumeQuotaRulesUpdateSample.js | 2 +- .../volumesAuthorizeReplicationSample.js | 2 +- .../javascript/volumesBreakFileLocksSample.js | 2 +- .../volumesBreakReplicationSample.js | 2 +- .../javascript/volumesCreateOrUpdateSample.js | 4 +- .../volumesDeleteReplicationSample.js | 2 +- .../javascript/volumesDeleteSample.js | 2 +- .../volumesFinalizeRelocationSample.js | 2 +- .../javascript/volumesGetSample.js | 2 +- ...umesListGetGroupIdListForLdapUserSample.js | 2 +- .../volumesListReplicationsSample.js | 2 +- .../javascript/volumesListSample.js | 2 +- .../javascript/volumesPoolChangeSample.js | 2 +- .../volumesPopulateAvailabilityZoneSample.js | 2 +- .../volumesReInitializeReplicationSample.js | 2 +- .../volumesReestablishReplicationSample.js | 2 +- .../javascript/volumesRelocateSample.js | 2 +- .../volumesReplicationStatusSample.js | 2 +- .../volumesResetCifsPasswordSample.js | 2 +- .../volumesResyncReplicationSample.js | 2 +- .../volumesRevertRelocationSample.js | 2 +- .../javascript/volumesRevertSample.js | 2 +- .../javascript/volumesUpdateSample.js | 14 +- .../{v20-beta => v20}/typescript/README.md | 356 +- .../{v20-beta => v20}/typescript/package.json | 6 +- .../{v20-beta => v20}/typescript/sample.env | 0 .../src/accountsCreateOrUpdateSample.ts | 14 +- .../typescript/src/accountsDeleteSample.ts | 4 +- .../typescript/src/accountsGetSample.ts | 2 +- .../src/accountsListBySubscriptionSample.ts | 2 +- .../typescript/src/accountsListSample.ts | 2 +- .../src/accountsRenewCredentialsSample.ts | 4 +- .../typescript/src/accountsUpdateSample.ts | 4 +- .../src/backupPoliciesCreateSample.ts | 6 +- .../src/backupPoliciesDeleteSample.ts | 4 +- .../typescript/src/backupPoliciesGetSample.ts | 4 +- .../src/backupPoliciesListSample.ts | 4 +- .../src/backupPoliciesUpdateSample.ts | 6 +- .../backupsGetVolumeRestoreStatusSample.ts | 4 +- ...ResourceCheckFilePathAvailabilitySample.ts | 4 +- ...tAppResourceCheckNameAvailabilitySample.ts | 4 +- ...AppResourceCheckQuotaAvailabilitySample.ts | 4 +- ...AppResourceQueryNetworkSiblingSetSample.ts | 4 +- .../netAppResourceQueryRegionInfoSample.ts | 2 +- .../src/netAppResourceQuotaLimitsGetSample.ts | 4 +- .../netAppResourceQuotaLimitsListSample.ts | 2 +- ...ppResourceUpdateNetworkSiblingSetSample.ts | 17 +- .../typescript/src/operationsListSample.ts | 2 +- .../src/poolsCreateOrUpdateSample.ts | 6 +- .../typescript/src/poolsDeleteSample.ts | 4 +- .../typescript/src/poolsGetSample.ts | 4 +- .../typescript/src/poolsListSample.ts | 2 +- .../typescript/src/poolsUpdateSample.ts | 4 +- .../src/snapshotPoliciesCreateSample.ts | 10 +- .../src/snapshotPoliciesDeleteSample.ts | 4 +- .../src/snapshotPoliciesGetSample.ts | 4 +- .../src/snapshotPoliciesListSample.ts | 4 +- .../src/snapshotPoliciesListVolumesSample.ts | 4 +- .../src/snapshotPoliciesUpdateSample.ts | 10 +- .../typescript/src/snapshotsCreateSample.ts | 4 +- .../typescript/src/snapshotsDeleteSample.ts | 4 +- .../typescript/src/snapshotsGetSample.ts | 4 +- .../typescript/src/snapshotsListSample.ts | 4 +- .../src/snapshotsRestoreFilesSample.ts | 8 +- .../typescript/src/snapshotsUpdateSample.ts | 4 +- .../typescript/src/subvolumesCreateSample.ts | 4 +- .../typescript/src/subvolumesDeleteSample.ts | 4 +- .../src/subvolumesGetMetadataSample.ts | 4 +- .../typescript/src/subvolumesGetSample.ts | 4 +- .../src/subvolumesListByVolumeSample.ts | 4 +- .../typescript/src/subvolumesUpdateSample.ts | 6 +- .../src/volumeGroupsCreateSample.ts | 156 +- .../src/volumeGroupsDeleteSample.ts | 4 +- .../typescript/src/volumeGroupsGetSample.ts | 8 +- .../volumeGroupsListByNetAppAccountSample.ts | 8 +- .../src/volumeQuotaRulesCreateSample.ts | 6 +- .../src/volumeQuotaRulesDeleteSample.ts | 4 +- .../src/volumeQuotaRulesGetSample.ts | 4 +- .../src/volumeQuotaRulesListByVolumeSample.ts | 4 +- .../src/volumeQuotaRulesUpdateSample.ts | 6 +- .../src/volumesAuthorizeReplicationSample.ts | 6 +- .../src/volumesBreakFileLocksSample.ts | 8 +- .../src/volumesBreakReplicationSample.ts | 6 +- .../src/volumesCreateOrUpdateSample.ts | 8 +- .../src/volumesDeleteReplicationSample.ts | 4 +- .../typescript/src/volumesDeleteSample.ts | 4 +- .../src/volumesFinalizeRelocationSample.ts | 4 +- .../typescript/src/volumesGetSample.ts | 4 +- ...umesListGetGroupIdListForLdapUserSample.ts | 6 +- .../src/volumesListReplicationsSample.ts | 4 +- .../typescript/src/volumesListSample.ts | 4 +- .../typescript/src/volumesPoolChangeSample.ts | 6 +- .../volumesPopulateAvailabilityZoneSample.ts | 4 +- .../volumesReInitializeReplicationSample.ts | 4 +- .../volumesReestablishReplicationSample.ts | 8 +- .../typescript/src/volumesRelocateSample.ts | 6 +- .../src/volumesReplicationStatusSample.ts | 4 +- .../src/volumesResetCifsPasswordSample.ts | 4 +- .../src/volumesResyncReplicationSample.ts | 4 +- .../src/volumesRevertRelocationSample.ts | 4 +- .../typescript/src/volumesRevertSample.ts | 6 +- .../typescript/src/volumesUpdateSample.ts | 16 +- .../typescript/tsconfig.json | 0 sdk/netapp/arm-netapp/src/lroImpl.ts | 6 +- sdk/netapp/arm-netapp/src/models/index.ts | 746 +--- sdk/netapp/arm-netapp/src/models/mappers.ts | 3925 +++++++---------- .../arm-netapp/src/models/parameters.ts | 366 +- .../arm-netapp/src/netAppManagementClient.ts | 55 +- .../src/operations/accountBackups.ts | 324 -- .../arm-netapp/src/operations/accounts.ts | 413 +- .../src/operations/backupPolicies.ts | 197 +- .../arm-netapp/src/operations/backupVaults.ts | 657 --- .../arm-netapp/src/operations/backups.ts | 737 +--- .../src/operations/backupsUnderAccount.ts | 169 - .../src/operations/backupsUnderBackupVault.ts | 188 - .../src/operations/backupsUnderVolume.ts | 188 - sdk/netapp/arm-netapp/src/operations/index.ts | 6 - .../src/operations/netAppResource.ts | 161 +- .../operations/netAppResourceQuotaLimits.ts | 47 +- .../operations/netAppResourceRegionInfos.ts | 209 - .../arm-netapp/src/operations/operations.ts | 20 +- sdk/netapp/arm-netapp/src/operations/pools.ts | 215 +- .../src/operations/snapshotPolicies.ts | 187 +- .../arm-netapp/src/operations/snapshots.ts | 261 +- .../arm-netapp/src/operations/subvolumes.ts | 279 +- .../arm-netapp/src/operations/volumeGroups.ts | 151 +- .../src/operations/volumeQuotaRules.ts | 209 +- .../arm-netapp/src/operations/volumes.ts | 1145 +++-- .../operationsInterfaces/accountBackups.ts | 78 - .../src/operationsInterfaces/accounts.ts | 55 +- .../operationsInterfaces/backupPolicies.ts | 18 +- .../src/operationsInterfaces/backupVaults.ts | 153 - .../src/operationsInterfaces/backups.ts | 169 +- .../backupsUnderAccount.ts | 49 - .../backupsUnderBackupVault.ts | 57 - .../backupsUnderVolume.ts | 57 - .../src/operationsInterfaces/index.ts | 6 - .../operationsInterfaces/netAppResource.ts | 20 +- .../netAppResourceQuotaLimits.ts | 6 +- .../netAppResourceRegionInfos.ts | 38 - .../src/operationsInterfaces/operations.ts | 2 +- .../src/operationsInterfaces/pools.ts | 18 +- .../operationsInterfaces/snapshotPolicies.ts | 18 +- .../src/operationsInterfaces/snapshots.ts | 22 +- .../src/operationsInterfaces/subvolumes.ts | 22 +- .../src/operationsInterfaces/volumeGroups.ts | 14 +- .../operationsInterfaces/volumeQuotaRules.ts | 18 +- .../src/operationsInterfaces/volumes.ts | 119 +- sdk/netapp/arm-netapp/src/pagingHelper.ts | 2 +- 351 files changed, 4589 insertions(+), 12549 deletions(-) delete mode 100644 sdk/netapp/arm-netapp/samples-dev/accountBackupsDeleteSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples-dev/accountBackupsGetSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples-dev/accountBackupsListByNetAppAccountSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples-dev/accountsMigrateEncryptionKeySample.ts delete mode 100644 sdk/netapp/arm-netapp/samples-dev/backupVaultsCreateOrUpdateSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples-dev/backupVaultsDeleteSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples-dev/backupVaultsGetSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples-dev/backupVaultsListByNetAppAccountSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples-dev/backupVaultsUpdateSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples-dev/backupsCreateSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples-dev/backupsDeleteSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples-dev/backupsGetLatestStatusSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples-dev/backupsGetSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples-dev/backupsListByVaultSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples-dev/backupsUnderAccountMigrateBackupsSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples-dev/backupsUnderBackupVaultRestoreFilesSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples-dev/backupsUnderVolumeMigrateBackupsSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples-dev/backupsUpdateSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosGetSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosListSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples-dev/volumesSplitCloneFromParentSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsDeleteSample.js delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsGetSample.js delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsListByNetAppAccountSample.js delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsMigrateEncryptionKeySample.js delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsCreateOrUpdateSample.js delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsDeleteSample.js delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsGetSample.js delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsListByNetAppAccountSample.js delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsUpdateSample.js delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsCreateSample.js delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsDeleteSample.js delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetLatestStatusSample.js delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetSample.js delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsListByVaultSample.js delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderAccountMigrateBackupsSample.js delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderBackupVaultRestoreFilesSample.js delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderVolumeMigrateBackupsSample.js delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUpdateSample.js delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosGetSample.js delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosListSample.js delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesSplitCloneFromParentSample.js delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsDeleteSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsGetSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsListByNetAppAccountSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsMigrateEncryptionKeySample.ts delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsCreateOrUpdateSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsDeleteSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsGetSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsListByNetAppAccountSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsUpdateSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsCreateSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsDeleteSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetLatestStatusSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsListByVaultSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderAccountMigrateBackupsSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderBackupVaultRestoreFilesSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderVolumeMigrateBackupsSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUpdateSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosGetSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosListSample.ts delete mode 100644 sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesSplitCloneFromParentSample.ts rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/README.md (53%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/accountsCreateOrUpdateSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/accountsDeleteSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/accountsGetSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/accountsListBySubscriptionSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/accountsListSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/accountsRenewCredentialsSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/accountsUpdateSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/backupPoliciesCreateSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/backupPoliciesDeleteSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/backupPoliciesGetSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/backupPoliciesListSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/backupPoliciesUpdateSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/backupsGetVolumeRestoreStatusSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/netAppResourceCheckFilePathAvailabilitySample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/netAppResourceCheckNameAvailabilitySample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/netAppResourceCheckQuotaAvailabilitySample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/netAppResourceQueryNetworkSiblingSetSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/netAppResourceQueryRegionInfoSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/netAppResourceQuotaLimitsGetSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/netAppResourceQuotaLimitsListSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/netAppResourceUpdateNetworkSiblingSetSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/operationsListSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/package.json (81%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/poolsCreateOrUpdateSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/poolsDeleteSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/poolsGetSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/poolsListSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/poolsUpdateSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/sample.env (100%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/snapshotPoliciesCreateSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/snapshotPoliciesDeleteSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/snapshotPoliciesGetSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/snapshotPoliciesListSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/snapshotPoliciesListVolumesSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/snapshotPoliciesUpdateSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/snapshotsCreateSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/snapshotsDeleteSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/snapshotsGetSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/snapshotsListSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/snapshotsRestoreFilesSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/snapshotsUpdateSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/subvolumesCreateSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/subvolumesDeleteSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/subvolumesGetMetadataSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/subvolumesGetSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/subvolumesListByVolumeSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/subvolumesUpdateSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumeGroupsCreateSample.js (99%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumeGroupsDeleteSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumeGroupsGetSample.js (92%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumeGroupsListByNetAppAccountSample.js (92%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumeQuotaRulesCreateSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumeQuotaRulesDeleteSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumeQuotaRulesGetSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumeQuotaRulesListByVolumeSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumeQuotaRulesUpdateSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumesAuthorizeReplicationSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumesBreakFileLocksSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumesBreakReplicationSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumesCreateOrUpdateSample.js (91%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumesDeleteReplicationSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumesDeleteSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumesFinalizeRelocationSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumesGetSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumesListGetGroupIdListForLdapUserSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumesListReplicationsSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumesListSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumesPoolChangeSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumesPopulateAvailabilityZoneSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumesReInitializeReplicationSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumesReestablishReplicationSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumesRelocateSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumesReplicationStatusSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumesResetCifsPasswordSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumesResyncReplicationSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumesRevertRelocationSample.js (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumesRevertSample.js (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/javascript/volumesUpdateSample.js (76%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/README.md (53%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/package.json (84%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/sample.env (100%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/accountsCreateOrUpdateSample.ts (91%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/accountsDeleteSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/accountsGetSample.ts (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/accountsListBySubscriptionSample.ts (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/accountsListSample.ts (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/accountsRenewCredentialsSample.ts (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/accountsUpdateSample.ts (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/backupPoliciesCreateSample.ts (92%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/backupPoliciesDeleteSample.ts (92%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/backupPoliciesGetSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/backupPoliciesListSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/backupPoliciesUpdateSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/backupsGetVolumeRestoreStatusSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/netAppResourceCheckNameAvailabilitySample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/netAppResourceQueryRegionInfoSample.ts (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/netAppResourceQuotaLimitsGetSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/netAppResourceQuotaLimitsListSample.ts (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts (84%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/operationsListSample.ts (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/poolsCreateOrUpdateSample.ts (92%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/poolsDeleteSample.ts (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/poolsGetSample.ts (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/poolsListSample.ts (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/poolsUpdateSample.ts (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/snapshotPoliciesCreateSample.ts (92%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/snapshotPoliciesDeleteSample.ts (92%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/snapshotPoliciesGetSample.ts (92%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/snapshotPoliciesListSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/snapshotPoliciesListVolumesSample.ts (92%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/snapshotPoliciesUpdateSample.ts (92%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/snapshotsCreateSample.ts (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/snapshotsDeleteSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/snapshotsGetSample.ts (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/snapshotsListSample.ts (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/snapshotsRestoreFilesSample.ts (89%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/snapshotsUpdateSample.ts (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/subvolumesCreateSample.ts (95%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/subvolumesDeleteSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/subvolumesGetMetadataSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/subvolumesGetSample.ts (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/subvolumesListByVolumeSample.ts (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/subvolumesUpdateSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumeGroupsCreateSample.ts (92%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumeGroupsDeleteSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumeGroupsGetSample.ts (91%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumeGroupsListByNetAppAccountSample.ts (91%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumeQuotaRulesCreateSample.ts (92%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumeQuotaRulesDeleteSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumeQuotaRulesGetSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumeQuotaRulesListByVolumeSample.ts (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumeQuotaRulesUpdateSample.ts (92%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumesAuthorizeReplicationSample.ts (91%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumesBreakFileLocksSample.ts (90%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumesBreakReplicationSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumesCreateOrUpdateSample.ts (89%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumesDeleteReplicationSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumesDeleteSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumesFinalizeRelocationSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumesGetSample.ts (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumesListReplicationsSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumesListSample.ts (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumesPoolChangeSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumesPopulateAvailabilityZoneSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumesReInitializeReplicationSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumesReestablishReplicationSample.ts (90%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumesRelocateSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumesReplicationStatusSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumesResetCifsPasswordSample.ts (93%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumesResyncReplicationSample.ts (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumesRevertRelocationSample.ts (94%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumesRevertSample.ts (91%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/src/volumesUpdateSample.ts (75%) rename sdk/netapp/arm-netapp/samples/{v20-beta => v20}/typescript/tsconfig.json (100%) delete mode 100644 sdk/netapp/arm-netapp/src/operations/accountBackups.ts delete mode 100644 sdk/netapp/arm-netapp/src/operations/backupVaults.ts delete mode 100644 sdk/netapp/arm-netapp/src/operations/backupsUnderAccount.ts delete mode 100644 sdk/netapp/arm-netapp/src/operations/backupsUnderBackupVault.ts delete mode 100644 sdk/netapp/arm-netapp/src/operations/backupsUnderVolume.ts delete mode 100644 sdk/netapp/arm-netapp/src/operations/netAppResourceRegionInfos.ts delete mode 100644 sdk/netapp/arm-netapp/src/operationsInterfaces/accountBackups.ts delete mode 100644 sdk/netapp/arm-netapp/src/operationsInterfaces/backupVaults.ts delete mode 100644 sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderAccount.ts delete mode 100644 sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderBackupVault.ts delete mode 100644 sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderVolume.ts delete mode 100644 sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceRegionInfos.ts diff --git a/sdk/netapp/arm-netapp/CHANGELOG.md b/sdk/netapp/arm-netapp/CHANGELOG.md index a7ba0edb000f..f57770489e5a 100644 --- a/sdk/netapp/arm-netapp/CHANGELOG.md +++ b/sdk/netapp/arm-netapp/CHANGELOG.md @@ -1,15 +1,24 @@ # Release History + +## 20.0.0 (2024-03-05) + +**Features** -## 20.0.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added Interface VolumesResetCifsPasswordHeaders + - Added Type Alias VolumesResetCifsPasswordResponse + - Enum KnownRelationshipStatus has a new value Failed + - Enum KnownRelationshipStatus has a new value Unknown -### Other Changes +**Breaking Changes** + - Interface VolumeGroupMetaData no longer has parameter deploymentSpecId + - Type of parameter userAssignedIdentities of interface ManagedServiceIdentity is changed from { + [propertyName: string]: UserAssignedIdentity; + } to { + [propertyName: string]: UserAssignedIdentity | null; + } + + ## 20.0.0-beta.1 (2023-12-14) **Features** @@ -128,7 +137,7 @@ [propertyName: string]: UserAssignedIdentity | null; } - + ## 19.0.0 (2023-09-25) **Features** diff --git a/sdk/netapp/arm-netapp/LICENSE b/sdk/netapp/arm-netapp/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/netapp/arm-netapp/LICENSE +++ b/sdk/netapp/arm-netapp/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/netapp/arm-netapp/README.md b/sdk/netapp/arm-netapp/README.md index 78ab29c62855..0d9fb4d010e8 100644 --- a/sdk/netapp/arm-netapp/README.md +++ b/sdk/netapp/arm-netapp/README.md @@ -6,7 +6,7 @@ Microsoft NetApp Files Azure Resource Provider specification [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-netapp) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-netapp?view=azure-node-preview) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-netapp) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/netapp/arm-netapp/_meta.json b/sdk/netapp/arm-netapp/_meta.json index f2d5bdacd65f..fe652ccb5c09 100644 --- a/sdk/netapp/arm-netapp/_meta.json +++ b/sdk/netapp/arm-netapp/_meta.json @@ -1,8 +1,8 @@ { - "commit": "e62b17a09302b9bacca3504135091d1a71eeaebf", + "commit": "99686ad45c380cf8fbcf7811db9c984a0e9d6639", "readme": "specification/netapp/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\\netapp\\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\\netapp\\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/netapp/arm-netapp/assets.json b/sdk/netapp/arm-netapp/assets.json index 9b748930f005..db08bc5ea2e8 100644 --- a/sdk/netapp/arm-netapp/assets.json +++ b/sdk/netapp/arm-netapp/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/netapp/arm-netapp", - "Tag": "js/netapp/arm-netapp_efdf6a61ca" + "Tag": "js/netapp/arm-netapp_b61830c12b" } diff --git a/sdk/netapp/arm-netapp/package.json b/sdk/netapp/arm-netapp/package.json index f97ce71f8bae..85619edbd730 100644 --- a/sdk/netapp/arm-netapp/package.json +++ b/sdk/netapp/arm-netapp/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for NetAppManagementClient.", - "version": "20.0.0-beta.2", + "version": "20.0.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-netapp?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/netapp/arm-netapp/review/arm-netapp.api.md b/sdk/netapp/arm-netapp/review/arm-netapp.api.md index 82f63b7bf12f..cfda04d0ce5c 100644 --- a/sdk/netapp/arm-netapp/review/arm-netapp.api.md +++ b/sdk/netapp/arm-netapp/review/arm-netapp.api.md @@ -10,44 +10,6 @@ import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { SimplePollerLike } from '@azure/core-lro'; -// @public -export interface AccountBackups { - beginDelete(resourceGroupName: string, accountName: string, backupName: string, options?: AccountBackupsDeleteOptionalParams): Promise, AccountBackupsDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, accountName: string, backupName: string, options?: AccountBackupsDeleteOptionalParams): Promise; - get(resourceGroupName: string, accountName: string, backupName: string, options?: AccountBackupsGetOptionalParams): Promise; - listByNetAppAccount(resourceGroupName: string, accountName: string, options?: AccountBackupsListByNetAppAccountOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface AccountBackupsDeleteHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface AccountBackupsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type AccountBackupsDeleteResponse = AccountBackupsDeleteHeaders; - -// @public -export interface AccountBackupsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AccountBackupsGetResponse = Backup; - -// @public -export interface AccountBackupsListByNetAppAccountOptionalParams extends coreClient.OperationOptions { - includeOnlyBackupsFromDeletedVolumes?: string; -} - -// @public -export type AccountBackupsListByNetAppAccountResponse = BackupsList; - // @public export interface AccountEncryption { identity?: EncryptionIdentity; @@ -61,8 +23,6 @@ export interface Accounts { beginCreateOrUpdateAndWait(resourceGroupName: string, accountName: string, body: NetAppAccount, options?: AccountsCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, accountName: string, options?: AccountsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, accountName: string, options?: AccountsDeleteOptionalParams): Promise; - beginMigrateEncryptionKey(resourceGroupName: string, accountName: string, options?: AccountsMigrateEncryptionKeyOptionalParams): Promise, AccountsMigrateEncryptionKeyResponse>>; - beginMigrateEncryptionKeyAndWait(resourceGroupName: string, accountName: string, options?: AccountsMigrateEncryptionKeyOptionalParams): Promise; beginRenewCredentials(resourceGroupName: string, accountName: string, options?: AccountsRenewCredentialsOptionalParams): Promise, void>>; beginRenewCredentialsAndWait(resourceGroupName: string, accountName: string, options?: AccountsRenewCredentialsOptionalParams): Promise; beginUpdate(resourceGroupName: string, accountName: string, body: NetAppAccountPatch, options?: AccountsUpdateOptionalParams): Promise, AccountsUpdateResponse>>; @@ -122,22 +82,6 @@ export interface AccountsListOptionalParams extends coreClient.OperationOptions // @public export type AccountsListResponse = NetAppAccountList; -// @public -export interface AccountsMigrateEncryptionKeyHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface AccountsMigrateEncryptionKeyOptionalParams extends coreClient.OperationOptions { - body?: EncryptionMigrationRequest; - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type AccountsMigrateEncryptionKeyResponse = AccountsMigrateEncryptionKeyHeaders; - // @public export interface AccountsRenewCredentialsOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -194,26 +138,6 @@ export interface AuthorizeRequest { // @public export type AvsDataStore = string; -// @public -export interface Backup extends ProxyResource { - readonly backupId?: string; - readonly backupPolicyResourceId?: string; - readonly backupType?: BackupType; - readonly creationDate?: Date; - readonly failureReason?: string; - label?: string; - readonly provisioningState?: string; - readonly size?: number; - snapshotName?: string; - useExistingSnapshot?: boolean; - volumeResourceId: string; -} - -// @public -export interface BackupPatch { - label?: string; -} - // @public export interface BackupPolicies { beginCreate(resourceGroupName: string, accountName: string, backupPolicyName: string, body: BackupPolicy, options?: BackupPoliciesCreateOptionalParams): Promise, BackupPoliciesCreateResponse>>; @@ -301,65 +225,11 @@ export interface BackupPolicyPatch { weeklyBackupsToKeep?: number; } -// @public -export interface BackupRestoreFiles { - destinationVolumeId: string; - fileList: string[]; - restoreFilePath?: string; -} - // @public export interface Backups { - beginCreate(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, body: Backup, options?: BackupsCreateOptionalParams): Promise, BackupsCreateResponse>>; - beginCreateAndWait(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, body: Backup, options?: BackupsCreateOptionalParams): Promise; - beginDelete(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, options?: BackupsDeleteOptionalParams): Promise, BackupsDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, options?: BackupsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, options?: BackupsUpdateOptionalParams): Promise, BackupsUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, options?: BackupsUpdateOptionalParams): Promise; - get(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, options?: BackupsGetOptionalParams): Promise; - getLatestStatus(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: BackupsGetLatestStatusOptionalParams): Promise; getVolumeRestoreStatus(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: BackupsGetVolumeRestoreStatusOptionalParams): Promise; - listByVault(resourceGroupName: string, accountName: string, backupVaultName: string, options?: BackupsListByVaultOptionalParams): PagedAsyncIterableIterator; } -// @public -export interface BackupsCreateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupsCreateResponse = Backup; - -// @public -export interface BackupsDeleteHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface BackupsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupsDeleteResponse = BackupsDeleteHeaders; - -// @public -export interface BackupsGetLatestStatusOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type BackupsGetLatestStatusResponse = BackupStatus; - -// @public -export interface BackupsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type BackupsGetResponse = Backup; - // @public export interface BackupsGetVolumeRestoreStatusOptionalParams extends coreClient.OperationOptions { } @@ -367,217 +237,6 @@ export interface BackupsGetVolumeRestoreStatusOptionalParams extends coreClient. // @public export type BackupsGetVolumeRestoreStatusResponse = RestoreStatus; -// @public -export interface BackupsList { - nextLink?: string; - value?: Backup[]; -} - -// @public -export interface BackupsListByVaultNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type BackupsListByVaultNextResponse = BackupsList; - -// @public -export interface BackupsListByVaultOptionalParams extends coreClient.OperationOptions { - filter?: string; -} - -// @public -export type BackupsListByVaultResponse = BackupsList; - -// @public -export interface BackupsMigrationRequest { - backupVaultId: string; -} - -// @public -export interface BackupStatus { - readonly errorMessage?: string; - readonly healthy?: boolean; - readonly lastTransferSize?: number; - readonly lastTransferType?: string; - readonly mirrorState?: MirrorState; - readonly relationshipStatus?: RelationshipStatus; - readonly totalTransferBytes?: number; - readonly transferProgressBytes?: number; - readonly unhealthyReason?: string; -} - -// @public -export interface BackupsUnderAccount { - beginMigrateBackups(resourceGroupName: string, accountName: string, body: BackupsMigrationRequest, options?: BackupsUnderAccountMigrateBackupsOptionalParams): Promise, BackupsUnderAccountMigrateBackupsResponse>>; - beginMigrateBackupsAndWait(resourceGroupName: string, accountName: string, body: BackupsMigrationRequest, options?: BackupsUnderAccountMigrateBackupsOptionalParams): Promise; -} - -// @public -export interface BackupsUnderAccountMigrateBackupsHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface BackupsUnderAccountMigrateBackupsOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupsUnderAccountMigrateBackupsResponse = BackupsUnderAccountMigrateBackupsHeaders; - -// @public -export interface BackupsUnderBackupVault { - beginRestoreFiles(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, body: BackupRestoreFiles, options?: BackupsUnderBackupVaultRestoreFilesOptionalParams): Promise, BackupsUnderBackupVaultRestoreFilesResponse>>; - beginRestoreFilesAndWait(resourceGroupName: string, accountName: string, backupVaultName: string, backupName: string, body: BackupRestoreFiles, options?: BackupsUnderBackupVaultRestoreFilesOptionalParams): Promise; -} - -// @public -export interface BackupsUnderBackupVaultRestoreFilesHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface BackupsUnderBackupVaultRestoreFilesOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupsUnderBackupVaultRestoreFilesResponse = BackupsUnderBackupVaultRestoreFilesHeaders; - -// @public -export interface BackupsUnderVolume { - beginMigrateBackups(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: BackupsMigrationRequest, options?: BackupsUnderVolumeMigrateBackupsOptionalParams): Promise, BackupsUnderVolumeMigrateBackupsResponse>>; - beginMigrateBackupsAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: BackupsMigrationRequest, options?: BackupsUnderVolumeMigrateBackupsOptionalParams): Promise; -} - -// @public -export interface BackupsUnderVolumeMigrateBackupsHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface BackupsUnderVolumeMigrateBackupsOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupsUnderVolumeMigrateBackupsResponse = BackupsUnderVolumeMigrateBackupsHeaders; - -// @public -export interface BackupsUpdateHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface BackupsUpdateOptionalParams extends coreClient.OperationOptions { - body?: BackupPatch; - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupsUpdateResponse = Backup; - -// @public -export type BackupType = string; - -// @public -export interface BackupVault extends TrackedResource { - readonly provisioningState?: string; -} - -// @public -export interface BackupVaultPatch { - tags?: { - [propertyName: string]: string; - }; -} - -// @public -export interface BackupVaults { - beginCreateOrUpdate(resourceGroupName: string, accountName: string, backupVaultName: string, body: BackupVault, options?: BackupVaultsCreateOrUpdateOptionalParams): Promise, BackupVaultsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, accountName: string, backupVaultName: string, body: BackupVault, options?: BackupVaultsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, accountName: string, backupVaultName: string, options?: BackupVaultsDeleteOptionalParams): Promise, BackupVaultsDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, accountName: string, backupVaultName: string, options?: BackupVaultsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, accountName: string, backupVaultName: string, body: BackupVaultPatch, options?: BackupVaultsUpdateOptionalParams): Promise, BackupVaultsUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, accountName: string, backupVaultName: string, body: BackupVaultPatch, options?: BackupVaultsUpdateOptionalParams): Promise; - get(resourceGroupName: string, accountName: string, backupVaultName: string, options?: BackupVaultsGetOptionalParams): Promise; - listByNetAppAccount(resourceGroupName: string, accountName: string, options?: BackupVaultsListByNetAppAccountOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface BackupVaultsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupVaultsCreateOrUpdateResponse = BackupVault; - -// @public -export interface BackupVaultsDeleteHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface BackupVaultsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupVaultsDeleteResponse = BackupVaultsDeleteHeaders; - -// @public -export interface BackupVaultsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type BackupVaultsGetResponse = BackupVault; - -// @public -export interface BackupVaultsList { - nextLink?: string; - value?: BackupVault[]; -} - -// @public -export interface BackupVaultsListByNetAppAccountNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type BackupVaultsListByNetAppAccountNextResponse = BackupVaultsList; - -// @public -export interface BackupVaultsListByNetAppAccountOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type BackupVaultsListByNetAppAccountResponse = BackupVaultsList; - -// @public -export interface BackupVaultsUpdateHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface BackupVaultsUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type BackupVaultsUpdateResponse = BackupVault; - // @public export interface BreakFileLocksRequest { clientIp?: string; @@ -682,12 +341,6 @@ export interface EncryptionIdentity { // @public export type EncryptionKeySource = string; -// @public -export interface EncryptionMigrationRequest { - privateEndpointId: string; - virtualNetworkId: string; -} - // @public export type EncryptionType = string; @@ -801,12 +454,6 @@ export enum KnownAvsDataStore { Enabled = "Enabled" } -// @public -export enum KnownBackupType { - Manual = "Manual", - Scheduled = "Scheduled" -} - // @public export enum KnownCheckNameResourceTypes { MicrosoftNetAppNetAppAccounts = "Microsoft.NetApp/netAppAccounts", @@ -951,8 +598,10 @@ export enum KnownRegionStorageToNetworkProximity { // @public export enum KnownRelationshipStatus { + Failed = "Failed", Idle = "Idle", - Transferring = "Transferring" + Transferring = "Transferring", + Unknown = "Unknown" } // @public @@ -1100,8 +749,6 @@ export interface NetAppAccount extends TrackedResource { encryption?: AccountEncryption; readonly etag?: string; identity?: ManagedServiceIdentity; - readonly isMultiAdEnabled?: boolean; - nfsV4IDDomain?: string; readonly provisioningState?: string; } @@ -1118,10 +765,8 @@ export interface NetAppAccountPatch { encryption?: AccountEncryption; readonly id?: string; identity?: ManagedServiceIdentity; - readonly isMultiAdEnabled?: boolean; location?: string; readonly name?: string; - nfsV4IDDomain?: string; readonly provisioningState?: string; tags?: { [propertyName: string]: string; @@ -1135,8 +780,6 @@ export class NetAppManagementClient extends coreClient.ServiceClient { $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: NetAppManagementClientOptionalParams); // (undocumented) - accountBackups: AccountBackups; - // (undocumented) accounts: Accounts; // (undocumented) apiVersion: string; @@ -1145,20 +788,10 @@ export class NetAppManagementClient extends coreClient.ServiceClient { // (undocumented) backups: Backups; // (undocumented) - backupsUnderAccount: BackupsUnderAccount; - // (undocumented) - backupsUnderBackupVault: BackupsUnderBackupVault; - // (undocumented) - backupsUnderVolume: BackupsUnderVolume; - // (undocumented) - backupVaults: BackupVaults; - // (undocumented) netAppResource: NetAppResource; // (undocumented) netAppResourceQuotaLimits: NetAppResourceQuotaLimits; // (undocumented) - netAppResourceRegionInfos: NetAppResourceRegionInfos; - // (undocumented) operations: Operations; // (undocumented) pools: Pools; @@ -1251,33 +884,6 @@ export interface NetAppResourceQuotaLimitsListOptionalParams extends coreClient. // @public export type NetAppResourceQuotaLimitsListResponse = SubscriptionQuotaItemList; -// @public -export interface NetAppResourceRegionInfos { - get(location: string, options?: NetAppResourceRegionInfosGetOptionalParams): Promise; - list(location: string, options?: NetAppResourceRegionInfosListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface NetAppResourceRegionInfosGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NetAppResourceRegionInfosGetResponse = RegionInfoResource; - -// @public -export interface NetAppResourceRegionInfosListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NetAppResourceRegionInfosListNextResponse = RegionInfosList; - -// @public -export interface NetAppResourceRegionInfosListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NetAppResourceRegionInfosListResponse = RegionInfosList; - // @public export interface NetAppResourceUpdateNetworkSiblingSetHeaders { // (undocumented) @@ -1456,18 +1062,6 @@ export interface RegionInfoAvailabilityZoneMappingsItem { isAvailable?: boolean; } -// @public -export interface RegionInfoResource extends ProxyResource { - availabilityZoneMappings?: RegionInfoAvailabilityZoneMappingsItem[]; - storageToNetworkProximity?: RegionStorageToNetworkProximity; -} - -// @public -export interface RegionInfosList { - nextLink?: string; - value?: RegionInfoResource[]; -} - // @public export type RegionStorageToNetworkProximity = string; @@ -1479,13 +1073,6 @@ export interface RelocateVolumeRequest { creationToken?: string; } -// @public -export interface RemotePath { - externalHostName: string; - serverName: string; - volumeName: string; -} - // @public export interface Replication { endpointType?: EndpointType; @@ -1497,7 +1084,6 @@ export interface Replication { // @public export interface ReplicationObject { endpointType?: EndpointType; - remotePath?: RemotePath; remoteVolumeRegion?: string; remoteVolumeResourceId: string; readonly replicationId?: string; @@ -1928,7 +1514,6 @@ export interface Volume extends TrackedResource { exportPolicy?: VolumePropertiesExportPolicy; readonly fileAccessLogs?: FileAccessLogs; readonly fileSystemId?: string; - readonly inheritedSizeInBytes?: number; isDefaultQuotaEnabled?: boolean; isLargeVolume?: boolean; isRestoring?: boolean; @@ -1965,14 +1550,6 @@ export interface Volume extends TrackedResource { zones?: string[]; } -// @public -export interface VolumeBackupProperties { - backupEnabled?: boolean; - backupPolicyId?: string; - backupVaultId?: string; - policyEnforced?: boolean; -} - // @public export interface VolumeBackups { backupsCount?: number; @@ -2078,7 +1655,6 @@ export interface VolumeGroupVolumeProperties { readonly fileAccessLogs?: FileAccessLogs; readonly fileSystemId?: string; readonly id?: string; - readonly inheritedSizeInBytes?: number; isDefaultQuotaEnabled?: boolean; isLargeVolume?: boolean; isRestoring?: boolean; @@ -2154,7 +1730,6 @@ export interface VolumePatch { // @public export interface VolumePatchPropertiesDataProtection { - backup?: VolumeBackupProperties; snapshot?: VolumeSnapshotProperties; } @@ -2165,7 +1740,6 @@ export interface VolumePatchPropertiesExportPolicy { // @public export interface VolumePropertiesDataProtection { - backup?: VolumeBackupProperties; replication?: ReplicationObject; snapshot?: VolumeSnapshotProperties; volumeRelocation?: VolumeRelocationProperties; @@ -2297,8 +1871,6 @@ export interface Volumes { beginRevertAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: VolumeRevert, options?: VolumesRevertOptionalParams): Promise; beginRevertRelocation(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesRevertRelocationOptionalParams): Promise, void>>; beginRevertRelocationAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesRevertRelocationOptionalParams): Promise; - beginSplitCloneFromParent(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesSplitCloneFromParentOptionalParams): Promise, VolumesSplitCloneFromParentResponse>>; - beginSplitCloneFromParentAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesSplitCloneFromParentOptionalParams): Promise; beginUpdate(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: VolumePatch, options?: VolumesUpdateOptionalParams): Promise, VolumesUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, body: VolumePatch, options?: VolumesUpdateOptionalParams): Promise; get(resourceGroupName: string, accountName: string, poolName: string, volumeName: string, options?: VolumesGetOptionalParams): Promise; @@ -2489,21 +2061,6 @@ export interface VolumesRevertRelocationOptionalParams extends coreClient.Operat updateIntervalInMs?: number; } -// @public -export interface VolumesSplitCloneFromParentHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface VolumesSplitCloneFromParentOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type VolumesSplitCloneFromParentResponse = VolumesSplitCloneFromParentHeaders; - // @public export type VolumeStorageToNetworkProximity = string; diff --git a/sdk/netapp/arm-netapp/samples-dev/accountBackupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountBackupsDeleteSample.ts deleted file mode 100644 index a70df34e81e9..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/accountBackupsDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the specified Backup for a Netapp Account - * - * @summary Delete the specified Backup for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Delete.json - */ -async function accountBackupsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = - process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "accountName"; - const backupName = "backupName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accountBackups.beginDeleteAndWait( - resourceGroupName, - accountName, - backupName - ); - console.log(result); -} - -async function main() { - accountBackupsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/accountBackupsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountBackupsGetSample.ts deleted file mode 100644 index 2410c0df94ab..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/accountBackupsGetSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the specified backup for a Netapp Account - * - * @summary Gets the specified backup for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Get.json - */ -async function accountBackupsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accountBackups.get( - resourceGroupName, - accountName, - backupName - ); - console.log(result); -} - -async function main() { - accountBackupsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/accountBackupsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountBackupsListByNetAppAccountSample.ts deleted file mode 100644 index b9f7624afc1f..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/accountBackupsListByNetAppAccountSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all Backups for a Netapp Account - * - * @summary List all Backups for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_List.json - */ -async function accountBackupsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.accountBackups.listByNetAppAccount( - resourceGroupName, - accountName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - accountBackupsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsCreateOrUpdateSample.ts index e53609546155..85c10bc1b59d 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update the specified NetApp account within the resource group * * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdate.json */ async function accountsCreateOrUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function accountsCreateOrUpdate() { const result = await client.accounts.beginCreateOrUpdateAndWait( resourceGroupName, accountName, - body + body, ); console.log(result); } @@ -41,7 +41,7 @@ async function accountsCreateOrUpdate() { * This sample demonstrates how to Create or update the specified NetApp account within the resource group * * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdateAD.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdateAD.json */ async function accountsCreateOrUpdateWithActiveDirectory() { const subscriptionId = @@ -61,17 +61,17 @@ async function accountsCreateOrUpdateWithActiveDirectory() { password: "ad_password", site: "SiteName", smbServerName: "SMBServer", - username: "ad_user_name" - } + username: "ad_user_name", + }, ], - location: "eastus" + location: "eastus", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.accounts.beginCreateOrUpdateAndWait( resourceGroupName, accountName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsDeleteSample.ts index e520aff851ff..0308e9ad499a 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified NetApp account * * @summary Delete the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Delete.json */ async function accountsDelete() { const subscriptionId = @@ -30,7 +30,7 @@ async function accountsDelete() { const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.accounts.beginDeleteAndWait( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsGetSample.ts index 22a8a1ab0873..38bb8c6756c1 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the NetApp account * * @summary Get the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Get.json */ async function accountsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsListBySubscriptionSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsListBySubscriptionSample.ts index 1f292e0303b9..05a45b7d8c31 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsListBySubscriptionSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List and describe all NetApp accounts in the subscription. * * @summary List and describe all NetApp accounts in the subscription. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json */ async function accountsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsListSample.ts index fc0b884f17c3..852a3d845dd8 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List and describe all NetApp accounts in the resource group. * * @summary List and describe all NetApp accounts in the resource group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json */ async function accountsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsMigrateEncryptionKeySample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsMigrateEncryptionKeySample.ts deleted file mode 100644 index 4975f091426e..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/accountsMigrateEncryptionKeySample.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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 { - EncryptionMigrationRequest, - AccountsMigrateEncryptionKeyOptionalParams, - NetAppManagementClient -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. - * - * @summary Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_MigrateEncryptionKey.json - */ -async function accountsMigrateEncryptionKey() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body: EncryptionMigrationRequest = { - privateEndpointId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1", - virtualNetworkId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1" - }; - const options: AccountsMigrateEncryptionKeyOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginMigrateEncryptionKeyAndWait( - resourceGroupName, - accountName, - options - ); - console.log(result); -} - -async function main() { - accountsMigrateEncryptionKey(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsRenewCredentialsSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsRenewCredentialsSample.ts index 4d0b3ca77014..3280153c50ce 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsRenewCredentialsSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsRenewCredentialsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * * @summary Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_RenewCredentials.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_RenewCredentials.json */ async function accountsRenewCredentials() { const subscriptionId = @@ -30,7 +30,7 @@ async function accountsRenewCredentials() { const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.accounts.beginRenewCredentialsAndWait( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/accountsUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/accountsUpdateSample.ts index f70d57a33678..6ad6f365b75d 100644 --- a/sdk/netapp/arm-netapp/samples-dev/accountsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/accountsUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch the specified NetApp account * * @summary Patch the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Update.json */ async function accountsUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function accountsUpdate() { const result = await client.accounts.beginUpdateAndWait( resourceGroupName, accountName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesCreateSample.ts index 6b2316ba4533..5349b14f7720 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a backup policy for Netapp Account * * @summary Create a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Create.json */ async function backupPoliciesCreate() { const subscriptionId = @@ -32,7 +32,7 @@ async function backupPoliciesCreate() { enabled: true, location: "westus", monthlyBackupsToKeep: 10, - weeklyBackupsToKeep: 10 + weeklyBackupsToKeep: 10, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -40,7 +40,7 @@ async function backupPoliciesCreate() { resourceGroupName, accountName, backupPolicyName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesDeleteSample.ts index ab6bae9205cc..b08e68c37a1f 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete backup policy * * @summary Delete backup policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Delete.json */ async function backupsDelete() { const subscriptionId = @@ -33,7 +33,7 @@ async function backupsDelete() { const result = await client.backupPolicies.beginDeleteAndWait( resourceGroupName, accountName, - backupPolicyName + backupPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesGetSample.ts index 53cc2fc4840c..8f692b9901bd 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a particular backup Policy * * @summary Get a particular backup Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Get.json */ async function backupsGet() { const subscriptionId = @@ -32,7 +32,7 @@ async function backupsGet() { const result = await client.backupPolicies.get( resourceGroupName, accountName, - backupPolicyName + backupPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesListSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesListSample.ts index 6c99bb47ce8e..0fe398c65443 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List backup policies for Netapp Account * * @summary List backup policies for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_List.json */ async function backupsList() { const subscriptionId = @@ -31,7 +31,7 @@ async function backupsList() { const resArray = new Array(); for await (let item of client.backupPolicies.list( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesUpdateSample.ts index 7b8288681132..ebce8bb82494 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupPoliciesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupPoliciesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch a backup policy for Netapp Account * * @summary Patch a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Update.json */ async function backupPoliciesUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function backupPoliciesUpdate() { enabled: false, location: "westus", monthlyBackupsToKeep: 10, - weeklyBackupsToKeep: 10 + weeklyBackupsToKeep: 10, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -40,7 +40,7 @@ async function backupPoliciesUpdate() { resourceGroupName, accountName, backupPolicyName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/backupVaultsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupVaultsCreateOrUpdateSample.ts deleted file mode 100644 index e741c2c215c6..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupVaultsCreateOrUpdateSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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 { BackupVault, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create or update the specified Backup Vault in the NetApp account - * - * @summary Create or update the specified Backup Vault in the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Create.json - */ -async function backupVaultCreateOrUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const body: BackupVault = { location: "eastus" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginCreateOrUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - body - ); - console.log(result); -} - -async function main() { - backupVaultCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupVaultsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupVaultsDeleteSample.ts deleted file mode 100644 index 5918f68afc9d..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupVaultsDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the specified Backup Vault - * - * @summary Delete the specified Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Delete.json - */ -async function backupVaultsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = - process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginDeleteAndWait( - resourceGroupName, - accountName, - backupVaultName - ); - console.log(result); -} - -async function main() { - backupVaultsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupVaultsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupVaultsGetSample.ts deleted file mode 100644 index f12d1e74b43e..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupVaultsGetSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the Backup Vault - * - * @summary Get the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Get.json - */ -async function backupVaultsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.get( - resourceGroupName, - accountName, - backupVaultName - ); - console.log(result); -} - -async function main() { - backupVaultsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupVaultsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupVaultsListByNetAppAccountSample.ts deleted file mode 100644 index 26db2a521b97..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupVaultsListByNetAppAccountSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List and describe all Backup Vaults in the NetApp account. - * - * @summary List and describe all Backup Vaults in the NetApp account. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_List.json - */ -async function backupVaultsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.backupVaults.listByNetAppAccount( - resourceGroupName, - accountName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - backupVaultsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupVaultsUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupVaultsUpdateSample.ts deleted file mode 100644 index 90ad3a20022d..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupVaultsUpdateSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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 { BackupVaultPatch, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch the specified NetApp Backup Vault - * - * @summary Patch the specified NetApp Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Update.json - */ -async function backupVaultsUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const body: BackupVaultPatch = { tags: { tag1: "Value1" } }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - body - ); - console.log(result); -} - -async function main() { - backupVaultsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsCreateSample.ts deleted file mode 100644 index 11eb66c7c2b7..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsCreateSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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 { Backup, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a backup under the Backup Vault - * - * @summary Create a backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Create.json - */ -async function backupsUnderBackupVaultCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body: Backup = { - label: "myLabel", - volumeResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPool/pool1/volumes/volume1" - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginCreateAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - body - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsDeleteSample.ts deleted file mode 100644 index fec3afd8d873..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsDeleteSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete a Backup under the Backup Vault - * - * @summary Delete a Backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Delete.json - */ -async function backupsUnderBackupVaultDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = - process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginDeleteAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsGetLatestStatusSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsGetLatestStatusSample.ts deleted file mode 100644 index bd1cb2a56c89..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsGetLatestStatusSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the latest status of the backup for a volume - * - * @summary Get the latest status of the backup for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_LatestBackupStatus.json - */ -async function volumesBackupStatus() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.getLatestStatus( - resourceGroupName, - accountName, - poolName, - volumeName - ); - console.log(result); -} - -async function main() { - volumesBackupStatus(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsGetSample.ts deleted file mode 100644 index 98f4a3dd8d30..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsGetSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the specified Backup under Backup Vault. - * - * @summary Get the specified Backup under Backup Vault. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Get.json - */ -async function backupsUnderBackupVaultGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.get( - resourceGroupName, - accountName, - backupVaultName, - backupName - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsGetVolumeRestoreStatusSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsGetVolumeRestoreStatusSample.ts index 6d6ca819cdc8..b65cb60d137c 100644 --- a/sdk/netapp/arm-netapp/samples-dev/backupsGetVolumeRestoreStatusSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/backupsGetVolumeRestoreStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the status of the restore for a volume * * @summary Get the status of the restore for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RestoreStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RestoreStatus.json */ async function volumesRestoreStatus() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesRestoreStatus() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsListByVaultSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsListByVaultSample.ts deleted file mode 100644 index 828c41fbc9af..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsListByVaultSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all backups Under a Backup Vault - * - * @summary List all backups Under a Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_List.json - */ -async function backupsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.backups.listByVault( - resourceGroupName, - accountName, - backupVaultName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - backupsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsUnderAccountMigrateBackupsSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsUnderAccountMigrateBackupsSample.ts deleted file mode 100644 index 9bf1d05d2bf4..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsUnderAccountMigrateBackupsSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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 { - BackupsMigrationRequest, - NetAppManagementClient -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Migrate the backups under a NetApp account to backup vault - * - * @summary Migrate the backups under a NetApp account to backup vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderAccount_Migrate.json - */ -async function backupsUnderAccountMigrate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body: BackupsMigrationRequest = { - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1" - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderAccount.beginMigrateBackupsAndWait( - resourceGroupName, - accountName, - body - ); - console.log(result); -} - -async function main() { - backupsUnderAccountMigrate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsUnderBackupVaultRestoreFilesSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsUnderBackupVaultRestoreFilesSample.ts deleted file mode 100644 index d463fa78ae3d..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsUnderBackupVaultRestoreFilesSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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 { BackupRestoreFiles, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Restore the specified files from the specified backup to the active filesystem - * - * @summary Restore the specified files from the specified backup to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_SingleFileRestore.json - */ -async function backupsSingleFileRestore() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body: BackupRestoreFiles = { - destinationVolumeId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1", - fileList: ["/dir1/customer1.db", "/dir1/customer2.db"] - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderBackupVault.beginRestoreFilesAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - body - ); - console.log(result); -} - -async function main() { - backupsSingleFileRestore(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsUnderVolumeMigrateBackupsSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsUnderVolumeMigrateBackupsSample.ts deleted file mode 100644 index ab1ce078a0b4..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsUnderVolumeMigrateBackupsSample.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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 { - BackupsMigrationRequest, - NetAppManagementClient -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Migrate the backups under volume to backup vault - * - * @summary Migrate the backups under volume to backup vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderVolume_Migrate.json - */ -async function backupsUnderVolumeMigrate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: BackupsMigrationRequest = { - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1" - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderVolume.beginMigrateBackupsAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body - ); - console.log(result); -} - -async function main() { - backupsUnderVolumeMigrate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/backupsUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/backupsUpdateSample.ts deleted file mode 100644 index 07d90d61e774..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/backupsUpdateSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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 { - BackupPatch, - BackupsUpdateOptionalParams, - NetAppManagementClient -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch a Backup under the Backup Vault - * - * @summary Patch a Backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Update.json - */ -async function backupsUnderBackupVaultUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body: BackupPatch = {}; - const options: BackupsUpdateOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - options - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckFilePathAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckFilePathAvailabilitySample.ts index 63a0ea2906e4..05b7dc514c9f 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckFilePathAvailabilitySample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckFilePathAvailabilitySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Check if a file path is available. * * @summary Check if a file path is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckFilePathAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckFilePathAvailability.json */ async function checkFilePathAvailability() { const subscriptionId = @@ -33,7 +33,7 @@ async function checkFilePathAvailability() { const result = await client.netAppResource.checkFilePathAvailability( location, name, - subnetId + subnetId, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckNameAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckNameAvailabilitySample.ts index 3cc975b1d3f9..820942bee7b4 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckNameAvailabilitySample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckNameAvailabilitySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Check if a resource name is available. * * @summary Check if a resource name is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckNameAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckNameAvailability.json */ async function checkNameAvailability() { const subscriptionId = @@ -34,7 +34,7 @@ async function checkNameAvailability() { location, name, typeParam, - resourceGroup + resourceGroup, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckQuotaAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckQuotaAvailabilitySample.ts index 3378adbd26b4..2a1f7e3c50c1 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckQuotaAvailabilitySample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceCheckQuotaAvailabilitySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Check if a quota is available. * * @summary Check if a quota is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckQuotaAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckQuotaAvailability.json */ async function checkQuotaAvailability() { const subscriptionId = @@ -34,7 +34,7 @@ async function checkQuotaAvailability() { location, name, typeParam, - resourceGroup + resourceGroup, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryNetworkSiblingSetSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryNetworkSiblingSetSample.ts index bb58c0a33128..a936ed78bbc9 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryNetworkSiblingSetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryNetworkSiblingSetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified network sibling set. * * @summary Get details of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Query.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Query.json */ async function networkSiblingSetQuery() { const subscriptionId = @@ -33,7 +33,7 @@ async function networkSiblingSetQuery() { const result = await client.netAppResource.queryNetworkSiblingSet( location, networkSiblingSetId, - subnetId + subnetId, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryRegionInfoSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryRegionInfoSample.ts index 7c3cd7080e7d..1d9c5323cee2 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryRegionInfoSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQueryRegionInfoSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. * * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfo.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json */ async function regionInfoQuery() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsGetSample.ts index 8f0f34b8878d..3078387d6b35 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the default and current subscription quota limit * * @summary Get the default and current subscription quota limit - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_Get.json */ async function quotaLimits() { const subscriptionId = @@ -30,7 +30,7 @@ async function quotaLimits() { const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.netAppResourceQuotaLimits.get( location, - quotaLimitName + quotaLimitName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsListSample.ts index 4a2b587d265e..2d0326e06565 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceQuotaLimitsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the default and current limits for quotas * * @summary Get the default and current limits for quotas - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_List.json */ async function quotaLimits() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosGetSample.ts deleted file mode 100644 index 6ad0077bbeb3..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosGetSample.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. - * - * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_Get.json - */ -async function regionInfosGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResourceRegionInfos.get(location); - console.log(result); -} - -async function main() { - regionInfosGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosListSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosListSample.ts deleted file mode 100644 index 0f001d6f3e8e..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceRegionInfosListSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Provides region specific information. - * - * @summary Provides region specific information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_List.json - */ -async function regionInfosList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.netAppResourceRegionInfos.list(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - regionInfosList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/netAppResourceUpdateNetworkSiblingSetSample.ts b/sdk/netapp/arm-netapp/samples-dev/netAppResourceUpdateNetworkSiblingSetSample.ts index 993cb310901c..d813bd8ef06a 100644 --- a/sdk/netapp/arm-netapp/samples-dev/netAppResourceUpdateNetworkSiblingSetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/netAppResourceUpdateNetworkSiblingSetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Update the network features of the specified network sibling set. * * @summary Update the network features of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Update.json */ async function networkFeaturesUpdate() { const subscriptionId = @@ -32,13 +32,14 @@ async function networkFeaturesUpdate() { const networkFeatures = "Standard"; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.beginUpdateNetworkSiblingSetAndWait( - location, - networkSiblingSetId, - subnetId, - networkSiblingSetStateId, - networkFeatures - ); + const result = + await client.netAppResource.beginUpdateNetworkSiblingSetAndWait( + location, + networkSiblingSetId, + subnetId, + networkSiblingSetStateId, + networkFeatures, + ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/operationsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/operationsListSample.ts index b6889338df8c..1d41bd056620 100644 --- a/sdk/netapp/arm-netapp/samples-dev/operationsListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the available Microsoft.NetApp Rest API operations * * @summary Lists all of the available Microsoft.NetApp Rest API operations - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/OperationList.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/OperationList.json */ async function operationList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/poolsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/poolsCreateOrUpdateSample.ts index 5e35e7140231..2959e4972a83 100644 --- a/sdk/netapp/arm-netapp/samples-dev/poolsCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/poolsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or Update a capacity pool * * @summary Create or Update a capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_CreateOrUpdate.json */ async function poolsCreateOrUpdate() { const subscriptionId = @@ -31,7 +31,7 @@ async function poolsCreateOrUpdate() { location: "eastus", qosType: "Auto", serviceLevel: "Premium", - size: 4398046511104 + size: 4398046511104, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function poolsCreateOrUpdate() { resourceGroupName, accountName, poolName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/poolsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/poolsDeleteSample.ts index 601a7a09b375..3f3b5543f973 100644 --- a/sdk/netapp/arm-netapp/samples-dev/poolsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/poolsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified capacity pool * * @summary Delete the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Delete.json */ async function poolsDelete() { const subscriptionId = @@ -32,7 +32,7 @@ async function poolsDelete() { const result = await client.pools.beginDeleteAndWait( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/poolsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/poolsGetSample.ts index 1d9e9e863d38..ec8b1e723890 100644 --- a/sdk/netapp/arm-netapp/samples-dev/poolsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/poolsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified capacity pool * * @summary Get details of the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Get.json */ async function poolsGet() { const subscriptionId = @@ -32,7 +32,7 @@ async function poolsGet() { const result = await client.pools.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/poolsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/poolsListSample.ts index cc274cf7c4c8..732e49f0d81f 100644 --- a/sdk/netapp/arm-netapp/samples-dev/poolsListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/poolsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all capacity pools in the NetApp Account * * @summary List all capacity pools in the NetApp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_List.json */ async function poolsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples-dev/poolsUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/poolsUpdateSample.ts index d8b99b70b4cb..fad1ab8f816a 100644 --- a/sdk/netapp/arm-netapp/samples-dev/poolsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/poolsUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch the specified capacity pool * * @summary Patch the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Update.json */ async function poolsUpdate() { const subscriptionId = @@ -34,7 +34,7 @@ async function poolsUpdate() { resourceGroupName, accountName, poolName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesCreateSample.ts index c3bb40d7d4fd..5c03a27f4400 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a snapshot policy * * @summary Create a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Create.json */ async function snapshotPoliciesCreate() { const subscriptionId = @@ -36,14 +36,14 @@ async function snapshotPoliciesCreate() { daysOfMonth: "10,11,12", hour: 14, minute: 15, - snapshotsToKeep: 5 + snapshotsToKeep: 5, }, weeklySchedule: { day: "Wednesday", hour: 14, minute: 45, - snapshotsToKeep: 3 - } + snapshotsToKeep: 3, + }, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -51,7 +51,7 @@ async function snapshotPoliciesCreate() { resourceGroupName, accountName, snapshotPolicyName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesDeleteSample.ts index b070d8be07bf..54342c7e4429 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete snapshot policy * * @summary Delete snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Delete.json */ async function snapshotPoliciesDelete() { const subscriptionId = @@ -33,7 +33,7 @@ async function snapshotPoliciesDelete() { const result = await client.snapshotPolicies.beginDeleteAndWait( resourceGroupName, accountName, - snapshotPolicyName + snapshotPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesGetSample.ts index e04c17f19010..22cee775c848 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a snapshot Policy * * @summary Get a snapshot Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Get.json */ async function snapshotPoliciesGet() { const subscriptionId = @@ -32,7 +32,7 @@ async function snapshotPoliciesGet() { const result = await client.snapshotPolicies.get( resourceGroupName, accountName, - snapshotPolicyName + snapshotPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListSample.ts index 0fcd799a519d..c5979f7e1943 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List snapshot policy * * @summary List snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_List.json */ async function snapshotPoliciesList() { const subscriptionId = @@ -31,7 +31,7 @@ async function snapshotPoliciesList() { const resArray = new Array(); for await (let item of client.snapshotPolicies.list( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListVolumesSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListVolumesSample.ts index fef7aef70825..9b9cba0c5ca5 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListVolumesSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesListVolumesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get volumes associated with snapshot policy * * @summary Get volumes associated with snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_ListVolumes.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_ListVolumes.json */ async function snapshotPoliciesListVolumes() { const subscriptionId = @@ -32,7 +32,7 @@ async function snapshotPoliciesListVolumes() { const result = await client.snapshotPolicies.listVolumes( resourceGroupName, accountName, - snapshotPolicyName + snapshotPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesUpdateSample.ts index 149027a25a16..13bbe1990711 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotPoliciesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch a snapshot policy * * @summary Patch a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Update.json */ async function snapshotPoliciesUpdate() { const subscriptionId = @@ -36,14 +36,14 @@ async function snapshotPoliciesUpdate() { daysOfMonth: "10,11,12", hour: 14, minute: 15, - snapshotsToKeep: 5 + snapshotsToKeep: 5, }, weeklySchedule: { day: "Wednesday", hour: 14, minute: 45, - snapshotsToKeep: 3 - } + snapshotsToKeep: 3, + }, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -51,7 +51,7 @@ async function snapshotPoliciesUpdate() { resourceGroupName, accountName, snapshotPolicyName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsCreateSample.ts index a5ce922be485..a31ec846a3f1 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotsCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create the specified snapshot within the given volume * * @summary Create the specified snapshot within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Create.json */ async function snapshotsCreate() { const subscriptionId = @@ -38,7 +38,7 @@ async function snapshotsCreate() { poolName, volumeName, snapshotName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsDeleteSample.ts index e5fcdca7bfbb..6b948039b70e 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete snapshot * * @summary Delete snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Delete.json */ async function snapshotsDelete() { const subscriptionId = @@ -36,7 +36,7 @@ async function snapshotsDelete() { accountName, poolName, volumeName, - snapshotName + snapshotName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsGetSample.ts index d022a1c4641e..a9ccd7cce449 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified snapshot * * @summary Get details of the specified snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Get.json */ async function snapshotsGet() { const subscriptionId = @@ -36,7 +36,7 @@ async function snapshotsGet() { accountName, poolName, volumeName, - snapshotName + snapshotName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsListSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsListSample.ts index 3e6b274df61f..523f96cd67fa 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotsListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all snapshots associated with the volume * * @summary List all snapshots associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_List.json */ async function snapshotsList() { const subscriptionId = @@ -35,7 +35,7 @@ async function snapshotsList() { resourceGroupName, accountName, poolName, - volumeName + volumeName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsRestoreFilesSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsRestoreFilesSample.ts index cf8c6d188b99..fb03516b70a3 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotsRestoreFilesSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotsRestoreFilesSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { SnapshotRestoreFiles, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Restore the specified files from the specified snapshot to the active filesystem * * @summary Restore the specified files from the specified snapshot to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_SingleFileRestore.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_SingleFileRestore.json */ async function snapshotsSingleFileRestore() { const subscriptionId = @@ -33,7 +33,7 @@ async function snapshotsSingleFileRestore() { const volumeName = "volume1"; const snapshotName = "snapshot1"; const body: SnapshotRestoreFiles = { - filePaths: ["/dir1/customer1.db", "/dir1/customer2.db"] + filePaths: ["/dir1/customer1.db", "/dir1/customer2.db"], }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function snapshotsSingleFileRestore() { poolName, volumeName, snapshotName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/snapshotsUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/snapshotsUpdateSample.ts index 413c1e71fdf8..cda8036eac64 100644 --- a/sdk/netapp/arm-netapp/samples-dev/snapshotsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/snapshotsUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch a snapshot * * @summary Patch a snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Update.json */ async function snapshotsUpdate() { const subscriptionId = @@ -38,7 +38,7 @@ async function snapshotsUpdate() { poolName, volumeName, snapshotName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesCreateSample.ts index bf067d8f406f..38e28ef35576 100644 --- a/sdk/netapp/arm-netapp/samples-dev/subvolumesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/subvolumesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates a subvolume in the path or clones the subvolume mentioned in the parentPath * * @summary Creates a subvolume in the path or clones the subvolume mentioned in the parentPath - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Create.json */ async function subvolumesCreate() { const subscriptionId = @@ -38,7 +38,7 @@ async function subvolumesCreate() { poolName, volumeName, subvolumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesDeleteSample.ts index 7dd5570262e8..b05b7aad7892 100644 --- a/sdk/netapp/arm-netapp/samples-dev/subvolumesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/subvolumesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete subvolume * * @summary Delete subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Delete.json */ async function subvolumesDelete() { const subscriptionId = @@ -36,7 +36,7 @@ async function subvolumesDelete() { accountName, poolName, volumeName, - subvolumeName + subvolumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesGetMetadataSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesGetMetadataSample.ts index abadb46aa9c0..ea888f2ca111 100644 --- a/sdk/netapp/arm-netapp/samples-dev/subvolumesGetMetadataSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/subvolumesGetMetadataSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified subvolume * * @summary Get details of the specified subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Metadata.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Metadata.json */ async function subvolumesMetadata() { const subscriptionId = @@ -36,7 +36,7 @@ async function subvolumesMetadata() { accountName, poolName, volumeName, - subvolumeName + subvolumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesGetSample.ts index a1c2a6cd64d5..5c524fb51a04 100644 --- a/sdk/netapp/arm-netapp/samples-dev/subvolumesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/subvolumesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns the path associated with the subvolumeName provided * * @summary Returns the path associated with the subvolumeName provided - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Get.json */ async function subvolumesGet() { const subscriptionId = @@ -36,7 +36,7 @@ async function subvolumesGet() { accountName, poolName, volumeName, - subvolumeName + subvolumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesListByVolumeSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesListByVolumeSample.ts index bac5cfd473dd..bd5d44c32e37 100644 --- a/sdk/netapp/arm-netapp/samples-dev/subvolumesListByVolumeSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/subvolumesListByVolumeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns a list of the subvolumes in the volume * * @summary Returns a list of the subvolumes in the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_List.json */ async function subvolumesList() { const subscriptionId = @@ -35,7 +35,7 @@ async function subvolumesList() { resourceGroupName, accountName, poolName, - volumeName + volumeName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples-dev/subvolumesUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/subvolumesUpdateSample.ts index b1ffe151c805..9d2bcb771801 100644 --- a/sdk/netapp/arm-netapp/samples-dev/subvolumesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/subvolumesUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { SubvolumePatchRequest, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Patch a subvolume * * @summary Patch a subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Update.json */ async function subvolumesUpdate() { const subscriptionId = @@ -41,7 +41,7 @@ async function subvolumesUpdate() { poolName, volumeName, subvolumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsCreateSample.ts index 0f13621808dc..418ad5aa3844 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a volume group along with specified volumes * * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_Oracle.json */ async function volumeGroupsCreateOracle() { const subscriptionId = @@ -31,7 +31,7 @@ async function volumeGroupsCreateOracle() { groupMetaData: { applicationIdentifier: "OR2", applicationType: "ORACLE", - groupDescription: "Volume group" + groupDescription: "Volume group", }, location: "westus", volumes: [ @@ -56,9 +56,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -67,7 +67,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data1", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data2", @@ -90,9 +90,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -101,7 +101,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data2", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data3", @@ -124,9 +124,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -135,7 +135,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data3", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data4", @@ -158,9 +158,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -169,7 +169,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data4", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data5", @@ -192,9 +192,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -203,7 +203,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data5", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data6", @@ -226,9 +226,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -237,7 +237,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data6", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data7", @@ -260,9 +260,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -271,7 +271,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data7", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data8", @@ -294,9 +294,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -305,7 +305,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data8", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-log", @@ -328,9 +328,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -339,7 +339,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-log", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-log-mirror", @@ -362,9 +362,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -373,7 +373,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-log-mirror", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-binary", @@ -396,9 +396,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -407,7 +407,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-binary", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-backup", @@ -430,9 +430,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -441,9 +441,9 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-backup", - zones: ["1"] - } - ] + zones: ["1"], + }, + ], }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -451,7 +451,7 @@ async function volumeGroupsCreateOracle() { resourceGroupName, accountName, volumeGroupName, - body + body, ); console.log(result); } @@ -460,7 +460,7 @@ async function volumeGroupsCreateOracle() { * This sample demonstrates how to Create a volume group along with specified volumes * * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_SapHana.json */ async function volumeGroupsCreateSapHana() { const subscriptionId = @@ -473,7 +473,7 @@ async function volumeGroupsCreateSapHana() { groupMetaData: { applicationIdentifier: "SH9", applicationType: "SAP-HANA", - groupDescription: "Volume group" + groupDescription: "Volume group", }, location: "westus", volumes: [ @@ -498,9 +498,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -510,7 +510,7 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "data" + volumeSpecName: "data", }, { name: "test-log-mnt00001", @@ -533,9 +533,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -545,7 +545,7 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "log" + volumeSpecName: "log", }, { name: "test-shared", @@ -568,9 +568,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -580,7 +580,7 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "shared" + volumeSpecName: "shared", }, { name: "test-data-backup", @@ -603,9 +603,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -615,7 +615,7 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "data-backup" + volumeSpecName: "data-backup", }, { name: "test-log-backup", @@ -638,9 +638,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -650,9 +650,9 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "log-backup" - } - ] + volumeSpecName: "log-backup", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -660,7 +660,7 @@ async function volumeGroupsCreateSapHana() { resourceGroupName, accountName, volumeGroupName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsDeleteSample.ts index e01302d73dcd..bfd01348e971 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified volume group only if there are no volumes under volume group. * * @summary Delete the specified volume group only if there are no volumes under volume group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Delete.json */ async function volumeGroupsDelete() { const subscriptionId = @@ -32,7 +32,7 @@ async function volumeGroupsDelete() { const result = await client.volumeGroups.beginDeleteAndWait( resourceGroupName, accountName, - volumeGroupName + volumeGroupName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsGetSample.ts index dc28f5ca1baf..54fc72bd6985 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified volume group * * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_Oracle.json */ async function volumeGroupsGetOracle() { const subscriptionId = @@ -32,7 +32,7 @@ async function volumeGroupsGetOracle() { const result = await client.volumeGroups.get( resourceGroupName, accountName, - volumeGroupName + volumeGroupName, ); console.log(result); } @@ -41,7 +41,7 @@ async function volumeGroupsGetOracle() { * This sample demonstrates how to Get details of the specified volume group * * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_SapHana.json */ async function volumeGroupsGetSapHana() { const subscriptionId = @@ -55,7 +55,7 @@ async function volumeGroupsGetSapHana() { const result = await client.volumeGroups.get( resourceGroupName, accountName, - volumeGroupName + volumeGroupName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsListByNetAppAccountSample.ts index c95287efcf06..ae79592660c1 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeGroupsListByNetAppAccountSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeGroupsListByNetAppAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all volume groups for given account * * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_Oracle.json */ async function volumeGroupsListOracle() { const subscriptionId = @@ -31,7 +31,7 @@ async function volumeGroupsListOracle() { const resArray = new Array(); for await (let item of client.volumeGroups.listByNetAppAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } @@ -42,7 +42,7 @@ async function volumeGroupsListOracle() { * This sample demonstrates how to List all volume groups for given account * * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_SapHana.json */ async function volumeGroupsListSapHana() { const subscriptionId = @@ -55,7 +55,7 @@ async function volumeGroupsListSapHana() { const resArray = new Array(); for await (let item of client.volumeGroups.listByNetAppAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesCreateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesCreateSample.ts index 2635560f8c1f..ebf4971bd014 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create the specified quota rule within the given volume * * @summary Create the specified quota rule within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Create.json */ async function volumeQuotaRulesCreate() { const subscriptionId = @@ -33,7 +33,7 @@ async function volumeQuotaRulesCreate() { location: "westus", quotaSizeInKiBs: 100005, quotaTarget: "1821", - quotaType: "IndividualUserQuota" + quotaType: "IndividualUserQuota", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function volumeQuotaRulesCreate() { poolName, volumeName, volumeQuotaRuleName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesDeleteSample.ts index 3bd1d48a0aba..8df9f5b6705a 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete quota rule * * @summary Delete quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Delete.json */ async function volumeQuotaRulesDelete() { const subscriptionId = @@ -36,7 +36,7 @@ async function volumeQuotaRulesDelete() { accountName, poolName, volumeName, - volumeQuotaRuleName + volumeQuotaRuleName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesGetSample.ts index ae6fa041a5d7..d51f2cbe651d 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified quota rule * * @summary Get details of the specified quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Get.json */ async function volumeQuotaRulesGet() { const subscriptionId = @@ -36,7 +36,7 @@ async function volumeQuotaRulesGet() { accountName, poolName, volumeName, - volumeQuotaRuleName + volumeQuotaRuleName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesListByVolumeSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesListByVolumeSample.ts index 633491b0db13..3c0e2c1a473b 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesListByVolumeSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesListByVolumeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all quota rules associated with the volume * * @summary List all quota rules associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_List.json */ async function volumeQuotaRulesList() { const subscriptionId = @@ -35,7 +35,7 @@ async function volumeQuotaRulesList() { resourceGroupName, accountName, poolName, - volumeName + volumeName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesUpdateSample.ts index d73d0af1c03b..556ec699bf30 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumeQuotaRulesUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VolumeQuotaRulePatch, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Patch a quota rule * * @summary Patch a quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Update.json */ async function volumeQuotaRulesUpdate() { const subscriptionId = @@ -41,7 +41,7 @@ async function volumeQuotaRulesUpdate() { poolName, volumeName, volumeQuotaRuleName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesAuthorizeReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesAuthorizeReplicationSample.ts index 34f5e7d6773b..6278a643d49e 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesAuthorizeReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesAuthorizeReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Authorize the replication connection on the source volume * * @summary Authorize the replication connection on the source volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_AuthorizeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_AuthorizeReplication.json */ async function volumesAuthorizeReplication() { const subscriptionId = @@ -30,7 +30,7 @@ async function volumesAuthorizeReplication() { const volumeName = "volume1"; const body: AuthorizeRequest = { remoteVolumeResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1" + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function volumesAuthorizeReplication() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesBreakFileLocksSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesBreakFileLocksSample.ts index 4968b24e20c5..a0caa568c761 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesBreakFileLocksSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesBreakFileLocksSample.ts @@ -11,7 +11,7 @@ import { BreakFileLocksRequest, VolumesBreakFileLocksOptionalParams, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Break all the file locks on a volume * * @summary Break all the file locks on a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakFileLocks.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakFileLocks.json */ async function volumesBreakFileLocks() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesBreakFileLocks() { const volumeName = "volume1"; const body: BreakFileLocksRequest = { clientIp: "101.102.103.104", - confirmRunningDisruptiveOperation: true + confirmRunningDisruptiveOperation: true, }; const options: VolumesBreakFileLocksOptionalParams = { body }; const credential = new DefaultAzureCredential(); @@ -44,7 +44,7 @@ async function volumesBreakFileLocks() { accountName, poolName, volumeName, - options + options, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesBreakReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesBreakReplicationSample.ts index 8e71b4fb4187..64c5fdbfcebf 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesBreakReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesBreakReplicationSample.ts @@ -11,7 +11,7 @@ import { BreakReplicationRequest, VolumesBreakReplicationOptionalParams, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Break the replication connection on the destination volume * * @summary Break the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakReplication.json */ async function volumesBreakReplication() { const subscriptionId = @@ -41,7 +41,7 @@ async function volumesBreakReplication() { accountName, poolName, volumeName, - options + options, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesCreateOrUpdateSample.ts index b3eb6943dbbf..a9a34de126df 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update the specified volume within the capacity pool * * @summary Create or update the specified volume within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_CreateOrUpdate.json */ async function volumesCreateOrUpdate() { const subscriptionId = @@ -30,13 +30,11 @@ async function volumesCreateOrUpdate() { const volumeName = "volume1"; const body: Volume = { creationToken: "my-unique-file-path", - encryptionKeySource: "Microsoft.KeyVault", location: "eastus", serviceLevel: "Premium", subnetId: "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 128, - usageThreshold: 107374182400 + usageThreshold: 107374182400, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -45,7 +43,7 @@ async function volumesCreateOrUpdate() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesDeleteReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesDeleteReplicationSample.ts index 96063c59f5fd..a4d66f403658 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesDeleteReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesDeleteReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the replication connection on the destination volume, and send release to the source replication * * @summary Delete the replication connection on the destination volume, and send release to the source replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_DeleteReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_DeleteReplication.json */ async function volumesDeleteReplication() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesDeleteReplication() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesDeleteSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesDeleteSample.ts index 75a4bce9ad86..f66ad69f0fc2 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified volume * * @summary Delete the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Delete.json */ async function volumesDelete() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesDelete() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesFinalizeRelocationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesFinalizeRelocationSample.ts index 084aad858a59..f5a6a2a32128 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesFinalizeRelocationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesFinalizeRelocationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Finalizes the relocation of the volume and cleans up the old volume. * * @summary Finalizes the relocation of the volume and cleans up the old volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_FinalizeRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_FinalizeRelocation.json */ async function volumesFinalizeRelocation() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesFinalizeRelocation() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesGetSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesGetSample.ts index 9cd849ab90d0..148073a4ea21 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the details of the specified volume * * @summary Get the details of the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Get.json */ async function volumesGet() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesGet() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesListGetGroupIdListForLdapUserSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesListGetGroupIdListForLdapUserSample.ts index 5bc7dd0c12f5..2c3af3ef5a2a 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesListGetGroupIdListForLdapUserSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesListGetGroupIdListForLdapUserSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GetGroupIdListForLdapUserRequest, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Returns the list of group Ids for a specific LDAP User * * @summary Returns the list of group Ids for a specific LDAP User - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/GroupIdListForLDAPUser.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/GroupIdListForLDAPUser.json */ async function getGroupIdListForUser() { const subscriptionId = @@ -39,7 +39,7 @@ async function getGroupIdListForUser() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesListReplicationsSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesListReplicationsSample.ts index 25b4ea9e10d7..8d4ffdb22d84 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesListReplicationsSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesListReplicationsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all replications for a specified volume * * @summary List all replications for a specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ListReplications.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ListReplications.json */ async function volumesListReplications() { const subscriptionId = @@ -35,7 +35,7 @@ async function volumesListReplications() { resourceGroupName, accountName, poolName, - volumeName + volumeName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesListSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesListSample.ts index 1e6320a9ad05..1897922b20bd 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesListSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all volumes within the capacity pool * * @summary List all volumes within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_List.json */ async function volumesList() { const subscriptionId = @@ -33,7 +33,7 @@ async function volumesList() { for await (let item of client.volumes.list( resourceGroupName, accountName, - poolName + poolName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesPoolChangeSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesPoolChangeSample.ts index e9bcd70a6317..27f44c2d5091 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesPoolChangeSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesPoolChangeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Moves volume to another pool * * @summary Moves volume to another pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PoolChange.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PoolChange.json */ async function volumesAuthorizeReplication() { const subscriptionId = @@ -30,7 +30,7 @@ async function volumesAuthorizeReplication() { const volumeName = "volume1"; const body: PoolChangeRequest = { newPoolResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1" + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function volumesAuthorizeReplication() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesPopulateAvailabilityZoneSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesPopulateAvailabilityZoneSample.ts index c363a99c4af3..693dd0710a7d 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesPopulateAvailabilityZoneSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesPopulateAvailabilityZoneSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to This operation will populate availability zone information for a volume * * @summary This operation will populate availability zone information for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PopulateAvailabilityZones.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PopulateAvailabilityZones.json */ async function volumesPopulateAvailabilityZones() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesPopulateAvailabilityZones() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesReInitializeReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesReInitializeReplicationSample.ts index 2b8e869cc66a..212d4a1b7728 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesReInitializeReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesReInitializeReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Re-Initializes the replication connection on the destination volume * * @summary Re-Initializes the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReInitializeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReInitializeReplication.json */ async function volumesReInitializeReplication() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesReInitializeReplication() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesReestablishReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesReestablishReplicationSample.ts index 74f3243493aa..afdd687cbe2c 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesReestablishReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesReestablishReplicationSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ReestablishReplicationRequest, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots * * @summary Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReestablishReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReestablishReplication.json */ async function volumesReestablishReplication() { const subscriptionId = @@ -33,7 +33,7 @@ async function volumesReestablishReplication() { const volumeName = "volume1"; const body: ReestablishReplicationRequest = { sourceVolumeId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1" + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -42,7 +42,7 @@ async function volumesReestablishReplication() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesRelocateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesRelocateSample.ts index 3c278a1211af..8ee2bb638298 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesRelocateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesRelocateSample.ts @@ -11,7 +11,7 @@ import { RelocateVolumeRequest, VolumesRelocateOptionalParams, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Relocates volume to a new stamp * * @summary Relocates volume to a new stamp - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Relocate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Relocate.json */ async function volumesRelocate() { const subscriptionId = @@ -41,7 +41,7 @@ async function volumesRelocate() { accountName, poolName, volumeName, - options + options, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesReplicationStatusSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesReplicationStatusSample.ts index 703a80c6a2cc..841b6e9cb282 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesReplicationStatusSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesReplicationStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the status of the replication * * @summary Get the status of the replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReplicationStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReplicationStatus.json */ async function volumesReplicationStatus() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesReplicationStatus() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesResetCifsPasswordSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesResetCifsPasswordSample.ts index bfdd4ad6ab8a..12a35039d3f2 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesResetCifsPasswordSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesResetCifsPasswordSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Reset cifs password from volume * * @summary Reset cifs password from volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResetCifsPassword.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResetCifsPassword.json */ async function volumesResetCifsPassword() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesResetCifsPassword() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesResyncReplicationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesResyncReplicationSample.ts index 819e72b259cc..bbefe158f37e 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesResyncReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesResyncReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. * * @summary Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResyncReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResyncReplication.json */ async function volumesResyncReplication() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesResyncReplication() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesRevertRelocationSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesRevertRelocationSample.ts index 971c433827cb..b88b8b4b77ba 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesRevertRelocationSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesRevertRelocationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @summary Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RevertRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RevertRelocation.json */ async function volumesRevertRelocation() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesRevertRelocation() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesRevertSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesRevertSample.ts index be658f3923d5..bf4f444ee1fa 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesRevertSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesRevertSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Revert a volume to the snapshot specified in the body * * @summary Revert a volume to the snapshot specified in the body - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Revert.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Revert.json */ async function volumesRevert() { const subscriptionId = @@ -30,7 +30,7 @@ async function volumesRevert() { const volumeName = "volume1"; const body: VolumeRevert = { snapshotId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1" + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function volumesRevert() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesSplitCloneFromParentSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesSplitCloneFromParentSample.ts deleted file mode 100644 index 83a8764fe8f2..000000000000 --- a/sdk/netapp/arm-netapp/samples-dev/volumesSplitCloneFromParentSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Split operation to convert clone volume to an independent volume. - * - * @summary Split operation to convert clone volume to an independent volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_SplitClone.json - */ -async function volumesSplitClone() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginSplitCloneFromParentAndWait( - resourceGroupName, - accountName, - poolName, - volumeName - ); - console.log(result); -} - -async function main() { - volumesSplitClone(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples-dev/volumesUpdateSample.ts b/sdk/netapp/arm-netapp/samples-dev/volumesUpdateSample.ts index 1b1facca9524..9f6d327bb77a 100644 --- a/sdk/netapp/arm-netapp/samples-dev/volumesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples-dev/volumesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch the specified volume * * @summary Patch the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Update.json */ async function volumesUpdate() { const subscriptionId = @@ -28,17 +28,7 @@ async function volumesUpdate() { const accountName = "account1"; const poolName = "pool1"; const volumeName = "volume1"; - const body: VolumePatch = { - dataProtection: { - backup: { - backupEnabled: true, - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRP/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1", - policyEnforced: false - } - }, - location: "eastus" - }; + const body: VolumePatch = {}; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.volumes.beginUpdateAndWait( @@ -46,7 +36,7 @@ async function volumesUpdate() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsDeleteSample.js deleted file mode 100644 index 89a970a1d13f..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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 { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the specified Backup for a Netapp Account - * - * @summary Delete the specified Backup for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Delete.json - */ -async function accountBackupsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "accountName"; - const backupName = "backupName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accountBackups.beginDeleteAndWait( - resourceGroupName, - accountName, - backupName, - ); - console.log(result); -} - -async function main() { - accountBackupsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsGetSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsGetSample.js deleted file mode 100644 index 37af4530968f..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsGetSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * 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 { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets the specified backup for a Netapp Account - * - * @summary Gets the specified backup for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Get.json - */ -async function accountBackupsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accountBackups.get(resourceGroupName, accountName, backupName); - console.log(result); -} - -async function main() { - accountBackupsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsListByNetAppAccountSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsListByNetAppAccountSample.js deleted file mode 100644 index 0c20b31287a9..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsListByNetAppAccountSample.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all Backups for a Netapp Account - * - * @summary List all Backups for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_List.json - */ -async function accountBackupsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.accountBackups.listByNetAppAccount( - resourceGroupName, - accountName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - accountBackupsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsMigrateEncryptionKeySample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsMigrateEncryptionKeySample.js deleted file mode 100644 index 30623f11199c..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsMigrateEncryptionKeySample.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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 { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. - * - * @summary Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_MigrateEncryptionKey.json - */ -async function accountsMigrateEncryptionKey() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body = { - privateEndpointId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1", - virtualNetworkId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1", - }; - const options = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginMigrateEncryptionKeyAndWait( - resourceGroupName, - accountName, - options, - ); - console.log(result); -} - -async function main() { - accountsMigrateEncryptionKey(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsCreateOrUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsCreateOrUpdateSample.js deleted file mode 100644 index 98c3c5c92209..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsCreateOrUpdateSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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 { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create or update the specified Backup Vault in the NetApp account - * - * @summary Create or update the specified Backup Vault in the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Create.json - */ -async function backupVaultCreateOrUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const body = { location: "eastus" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginCreateOrUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - body, - ); - console.log(result); -} - -async function main() { - backupVaultCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsDeleteSample.js deleted file mode 100644 index ab9d43c1ffe3..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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 { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the specified Backup Vault - * - * @summary Delete the specified Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Delete.json - */ -async function backupVaultsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginDeleteAndWait( - resourceGroupName, - accountName, - backupVaultName, - ); - console.log(result); -} - -async function main() { - backupVaultsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsGetSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsGetSample.js deleted file mode 100644 index 76881e7ec716..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsGetSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * 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 { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the Backup Vault - * - * @summary Get the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Get.json - */ -async function backupVaultsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.get(resourceGroupName, accountName, backupVaultName); - console.log(result); -} - -async function main() { - backupVaultsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsListByNetAppAccountSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsListByNetAppAccountSample.js deleted file mode 100644 index f01e7084898a..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsListByNetAppAccountSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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 { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List and describe all Backup Vaults in the NetApp account. - * - * @summary List and describe all Backup Vaults in the NetApp account. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_List.json - */ -async function backupVaultsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.backupVaults.listByNetAppAccount(resourceGroupName, accountName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - backupVaultsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsUpdateSample.js deleted file mode 100644 index 5ffa172c1707..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsUpdateSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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 { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch the specified NetApp Backup Vault - * - * @summary Patch the specified NetApp Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Update.json - */ -async function backupVaultsUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const body = { tags: { tag1: "Value1" } }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - body, - ); - console.log(result); -} - -async function main() { - backupVaultsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsCreateSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsCreateSample.js deleted file mode 100644 index 698713a92a37..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsCreateSample.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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 { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a backup under the Backup Vault - * - * @summary Create a backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Create.json - */ -async function backupsUnderBackupVaultCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body = { - label: "myLabel", - volumeResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPool/pool1/volumes/volume1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginCreateAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - body, - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsDeleteSample.js deleted file mode 100644 index 3fc6a3dcde72..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsDeleteSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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 { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete a Backup under the Backup Vault - * - * @summary Delete a Backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Delete.json - */ -async function backupsUnderBackupVaultDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginDeleteAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetLatestStatusSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetLatestStatusSample.js deleted file mode 100644 index db0e8f370868..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetLatestStatusSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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 { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the latest status of the backup for a volume - * - * @summary Get the latest status of the backup for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_LatestBackupStatus.json - */ -async function volumesBackupStatus() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.getLatestStatus( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesBackupStatus(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetSample.js deleted file mode 100644 index 06b73145fd62..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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 { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the specified Backup under Backup Vault. - * - * @summary Get the specified Backup under Backup Vault. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Get.json - */ -async function backupsUnderBackupVaultGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.get( - resourceGroupName, - accountName, - backupVaultName, - backupName, - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsListByVaultSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsListByVaultSample.js deleted file mode 100644 index 39eb229f2216..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsListByVaultSample.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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 { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all backups Under a Backup Vault - * - * @summary List all backups Under a Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_List.json - */ -async function backupsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.backups.listByVault( - resourceGroupName, - accountName, - backupVaultName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - backupsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderAccountMigrateBackupsSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderAccountMigrateBackupsSample.js deleted file mode 100644 index 84810072bc25..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderAccountMigrateBackupsSample.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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 { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Migrate the backups under a NetApp account to backup vault - * - * @summary Migrate the backups under a NetApp account to backup vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderAccount_Migrate.json - */ -async function backupsUnderAccountMigrate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body = { - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderAccount.beginMigrateBackupsAndWait( - resourceGroupName, - accountName, - body, - ); - console.log(result); -} - -async function main() { - backupsUnderAccountMigrate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderBackupVaultRestoreFilesSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderBackupVaultRestoreFilesSample.js deleted file mode 100644 index 7769fe00412d..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderBackupVaultRestoreFilesSample.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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 { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Restore the specified files from the specified backup to the active filesystem - * - * @summary Restore the specified files from the specified backup to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_SingleFileRestore.json - */ -async function backupsSingleFileRestore() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body = { - destinationVolumeId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1", - fileList: ["/dir1/customer1.db", "/dir1/customer2.db"], - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderBackupVault.beginRestoreFilesAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - body, - ); - console.log(result); -} - -async function main() { - backupsSingleFileRestore(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderVolumeMigrateBackupsSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderVolumeMigrateBackupsSample.js deleted file mode 100644 index 1a58084b3140..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderVolumeMigrateBackupsSample.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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 { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Migrate the backups under volume to backup vault - * - * @summary Migrate the backups under volume to backup vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderVolume_Migrate.json - */ -async function backupsUnderVolumeMigrate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body = { - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1", - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderVolume.beginMigrateBackupsAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - ); - console.log(result); -} - -async function main() { - backupsUnderVolumeMigrate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUpdateSample.js deleted file mode 100644 index 909295f2c60e..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUpdateSample.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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 { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Patch a Backup under the Backup Vault - * - * @summary Patch a Backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Update.json - */ -async function backupsUnderBackupVaultUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body = {}; - const options = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - options, - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosGetSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosGetSample.js deleted file mode 100644 index 52609dc4fdee..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosGetSample.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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 { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. - * - * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_Get.json - */ -async function regionInfosGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResourceRegionInfos.get(location); - console.log(result); -} - -async function main() { - regionInfosGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosListSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosListSample.js deleted file mode 100644 index bfe7b8ce6851..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosListSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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 { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Provides region specific information. - * - * @summary Provides region specific information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_List.json - */ -async function regionInfosList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.netAppResourceRegionInfos.list(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - regionInfosList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesSplitCloneFromParentSample.js b/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesSplitCloneFromParentSample.js deleted file mode 100644 index 479163184261..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesSplitCloneFromParentSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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 { NetAppManagementClient } = require("@azure/arm-netapp"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Split operation to convert clone volume to an independent volume. - * - * @summary Split operation to convert clone volume to an independent volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_SplitClone.json - */ -async function volumesSplitClone() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginSplitCloneFromParentAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - ); - console.log(result); -} - -async function main() { - volumesSplitClone(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsDeleteSample.ts deleted file mode 100644 index a70df34e81e9..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the specified Backup for a Netapp Account - * - * @summary Delete the specified Backup for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Delete.json - */ -async function accountBackupsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = - process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "accountName"; - const backupName = "backupName"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accountBackups.beginDeleteAndWait( - resourceGroupName, - accountName, - backupName - ); - console.log(result); -} - -async function main() { - accountBackupsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsGetSample.ts deleted file mode 100644 index 2410c0df94ab..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsGetSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the specified backup for a Netapp Account - * - * @summary Gets the specified backup for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Get.json - */ -async function accountBackupsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accountBackups.get( - resourceGroupName, - accountName, - backupName - ); - console.log(result); -} - -async function main() { - accountBackupsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsListByNetAppAccountSample.ts deleted file mode 100644 index b9f7624afc1f..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsListByNetAppAccountSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all Backups for a Netapp Account - * - * @summary List all Backups for a Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_List.json - */ -async function accountBackupsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.accountBackups.listByNetAppAccount( - resourceGroupName, - accountName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - accountBackupsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsMigrateEncryptionKeySample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsMigrateEncryptionKeySample.ts deleted file mode 100644 index 4975f091426e..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsMigrateEncryptionKeySample.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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 { - EncryptionMigrationRequest, - AccountsMigrateEncryptionKeyOptionalParams, - NetAppManagementClient -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. - * - * @summary Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_MigrateEncryptionKey.json - */ -async function accountsMigrateEncryptionKey() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body: EncryptionMigrationRequest = { - privateEndpointId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/privateEndpoints/privip1", - virtualNetworkId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.Network/virtualNetworks/vnet1" - }; - const options: AccountsMigrateEncryptionKeyOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.accounts.beginMigrateEncryptionKeyAndWait( - resourceGroupName, - accountName, - options - ); - console.log(result); -} - -async function main() { - accountsMigrateEncryptionKey(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsCreateOrUpdateSample.ts deleted file mode 100644 index e741c2c215c6..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsCreateOrUpdateSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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 { BackupVault, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create or update the specified Backup Vault in the NetApp account - * - * @summary Create or update the specified Backup Vault in the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Create.json - */ -async function backupVaultCreateOrUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const body: BackupVault = { location: "eastus" }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginCreateOrUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - body - ); - console.log(result); -} - -async function main() { - backupVaultCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsDeleteSample.ts deleted file mode 100644 index 5918f68afc9d..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the specified Backup Vault - * - * @summary Delete the specified Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Delete.json - */ -async function backupVaultsDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = - process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginDeleteAndWait( - resourceGroupName, - accountName, - backupVaultName - ); - console.log(result); -} - -async function main() { - backupVaultsDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsGetSample.ts deleted file mode 100644 index f12d1e74b43e..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsGetSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the Backup Vault - * - * @summary Get the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Get.json - */ -async function backupVaultsGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.get( - resourceGroupName, - accountName, - backupVaultName - ); - console.log(result); -} - -async function main() { - backupVaultsGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsListByNetAppAccountSample.ts deleted file mode 100644 index 26db2a521b97..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsListByNetAppAccountSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List and describe all Backup Vaults in the NetApp account. - * - * @summary List and describe all Backup Vaults in the NetApp account. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_List.json - */ -async function backupVaultsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.backupVaults.listByNetAppAccount( - resourceGroupName, - accountName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - backupVaultsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsUpdateSample.ts deleted file mode 100644 index 90ad3a20022d..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsUpdateSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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 { BackupVaultPatch, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch the specified NetApp Backup Vault - * - * @summary Patch the specified NetApp Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Update.json - */ -async function backupVaultsUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const body: BackupVaultPatch = { tags: { tag1: "Value1" } }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupVaults.beginUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - body - ); - console.log(result); -} - -async function main() { - backupVaultsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsCreateSample.ts deleted file mode 100644 index 11eb66c7c2b7..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsCreateSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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 { Backup, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a backup under the Backup Vault - * - * @summary Create a backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Create.json - */ -async function backupsUnderBackupVaultCreate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body: Backup = { - label: "myLabel", - volumeResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPool/pool1/volumes/volume1" - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginCreateAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - body - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultCreate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsDeleteSample.ts deleted file mode 100644 index fec3afd8d873..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsDeleteSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete a Backup under the Backup Vault - * - * @summary Delete a Backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Delete.json - */ -async function backupsUnderBackupVaultDelete() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = - process.env["NETAPP_RESOURCE_GROUP"] || "resourceGroup"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginDeleteAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultDelete(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetLatestStatusSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetLatestStatusSample.ts deleted file mode 100644 index bd1cb2a56c89..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetLatestStatusSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the latest status of the backup for a volume - * - * @summary Get the latest status of the backup for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_LatestBackupStatus.json - */ -async function volumesBackupStatus() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.getLatestStatus( - resourceGroupName, - accountName, - poolName, - volumeName - ); - console.log(result); -} - -async function main() { - volumesBackupStatus(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetSample.ts deleted file mode 100644 index 98f4a3dd8d30..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the specified Backup under Backup Vault. - * - * @summary Get the specified Backup under Backup Vault. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Get.json - */ -async function backupsUnderBackupVaultGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.get( - resourceGroupName, - accountName, - backupVaultName, - backupName - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsListByVaultSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsListByVaultSample.ts deleted file mode 100644 index 828c41fbc9af..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsListByVaultSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all backups Under a Backup Vault - * - * @summary List all backups Under a Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_List.json - */ -async function backupsList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.backups.listByVault( - resourceGroupName, - accountName, - backupVaultName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - backupsList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderAccountMigrateBackupsSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderAccountMigrateBackupsSample.ts deleted file mode 100644 index 9bf1d05d2bf4..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderAccountMigrateBackupsSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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 { - BackupsMigrationRequest, - NetAppManagementClient -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Migrate the backups under a NetApp account to backup vault - * - * @summary Migrate the backups under a NetApp account to backup vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderAccount_Migrate.json - */ -async function backupsUnderAccountMigrate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const body: BackupsMigrationRequest = { - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1" - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderAccount.beginMigrateBackupsAndWait( - resourceGroupName, - accountName, - body - ); - console.log(result); -} - -async function main() { - backupsUnderAccountMigrate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderBackupVaultRestoreFilesSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderBackupVaultRestoreFilesSample.ts deleted file mode 100644 index d463fa78ae3d..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderBackupVaultRestoreFilesSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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 { BackupRestoreFiles, NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Restore the specified files from the specified backup to the active filesystem - * - * @summary Restore the specified files from the specified backup to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_SingleFileRestore.json - */ -async function backupsSingleFileRestore() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body: BackupRestoreFiles = { - destinationVolumeId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1", - fileList: ["/dir1/customer1.db", "/dir1/customer2.db"] - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderBackupVault.beginRestoreFilesAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - body - ); - console.log(result); -} - -async function main() { - backupsSingleFileRestore(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderVolumeMigrateBackupsSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderVolumeMigrateBackupsSample.ts deleted file mode 100644 index ab1ce078a0b4..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderVolumeMigrateBackupsSample.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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 { - BackupsMigrationRequest, - NetAppManagementClient -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Migrate the backups under volume to backup vault - * - * @summary Migrate the backups under volume to backup vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderVolume_Migrate.json - */ -async function backupsUnderVolumeMigrate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const body: BackupsMigrationRequest = { - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1" - }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backupsUnderVolume.beginMigrateBackupsAndWait( - resourceGroupName, - accountName, - poolName, - volumeName, - body - ); - console.log(result); -} - -async function main() { - backupsUnderVolumeMigrate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUpdateSample.ts deleted file mode 100644 index 07d90d61e774..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUpdateSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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 { - BackupPatch, - BackupsUpdateOptionalParams, - NetAppManagementClient -} from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Patch a Backup under the Backup Vault - * - * @summary Patch a Backup under the Backup Vault - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Update.json - */ -async function backupsUnderBackupVaultUpdate() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const backupVaultName = "backupVault1"; - const backupName = "backup1"; - const body: BackupPatch = {}; - const options: BackupsUpdateOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.backups.beginUpdateAndWait( - resourceGroupName, - accountName, - backupVaultName, - backupName, - options - ); - console.log(result); -} - -async function main() { - backupsUnderBackupVaultUpdate(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosGetSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosGetSample.ts deleted file mode 100644 index 6ad0077bbeb3..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosGetSample.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. - * - * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_Get.json - */ -async function regionInfosGet() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResourceRegionInfos.get(location); - console.log(result); -} - -async function main() { - regionInfosGet(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosListSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosListSample.ts deleted file mode 100644 index 0f001d6f3e8e..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosListSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Provides region specific information. - * - * @summary Provides region specific information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_List.json - */ -async function regionInfosList() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.netAppResourceRegionInfos.list(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - regionInfosList(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesSplitCloneFromParentSample.ts b/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesSplitCloneFromParentSample.ts deleted file mode 100644 index 83a8764fe8f2..000000000000 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesSplitCloneFromParentSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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 { NetAppManagementClient } from "@azure/arm-netapp"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Split operation to convert clone volume to an independent volume. - * - * @summary Split operation to convert clone volume to an independent volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_SplitClone.json - */ -async function volumesSplitClone() { - const subscriptionId = - process.env["NETAPP_SUBSCRIPTION_ID"] || - "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9"; - const resourceGroupName = process.env["NETAPP_RESOURCE_GROUP"] || "myRG"; - const accountName = "account1"; - const poolName = "pool1"; - const volumeName = "volume1"; - const credential = new DefaultAzureCredential(); - const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.volumes.beginSplitCloneFromParentAndWait( - resourceGroupName, - accountName, - poolName, - volumeName - ); - console.log(result); -} - -async function main() { - volumesSplitClone(); -} - -main().catch(console.error); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/README.md b/sdk/netapp/arm-netapp/samples/v20/javascript/README.md similarity index 53% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/README.md rename to sdk/netapp/arm-netapp/samples/v20/javascript/README.md index d2799d0c39f3..3a89a903aff0 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/README.md +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/README.md @@ -1,106 +1,85 @@ -# client library samples for JavaScript (Beta) +# client library samples for JavaScript These sample programs show how to use the JavaScript client libraries for in some common scenarios. -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [accountBackupsDeleteSample.js][accountbackupsdeletesample] | Delete the specified Backup for a Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Delete.json | -| [accountBackupsGetSample.js][accountbackupsgetsample] | Gets the specified backup for a Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Get.json | -| [accountBackupsListByNetAppAccountSample.js][accountbackupslistbynetappaccountsample] | List all Backups for a Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_List.json | -| [accountsCreateOrUpdateSample.js][accountscreateorupdatesample] | Create or update the specified NetApp account within the resource group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdate.json | -| [accountsDeleteSample.js][accountsdeletesample] | Delete the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Delete.json | -| [accountsGetSample.js][accountsgetsample] | Get the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Get.json | -| [accountsListBySubscriptionSample.js][accountslistbysubscriptionsample] | List and describe all NetApp accounts in the subscription. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json | -| [accountsListSample.js][accountslistsample] | List and describe all NetApp accounts in the resource group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json | -| [accountsMigrateEncryptionKeySample.js][accountsmigrateencryptionkeysample] | Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_MigrateEncryptionKey.json | -| [accountsRenewCredentialsSample.js][accountsrenewcredentialssample] | Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_RenewCredentials.json | -| [accountsUpdateSample.js][accountsupdatesample] | Patch the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Update.json | -| [backupPoliciesCreateSample.js][backuppoliciescreatesample] | Create a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Create.json | -| [backupPoliciesDeleteSample.js][backuppoliciesdeletesample] | Delete backup policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Delete.json | -| [backupPoliciesGetSample.js][backuppoliciesgetsample] | Get a particular backup Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Get.json | -| [backupPoliciesListSample.js][backuppolicieslistsample] | List backup policies for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_List.json | -| [backupPoliciesUpdateSample.js][backuppoliciesupdatesample] | Patch a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Update.json | -| [backupVaultsCreateOrUpdateSample.js][backupvaultscreateorupdatesample] | Create or update the specified Backup Vault in the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Create.json | -| [backupVaultsDeleteSample.js][backupvaultsdeletesample] | Delete the specified Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Delete.json | -| [backupVaultsGetSample.js][backupvaultsgetsample] | Get the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Get.json | -| [backupVaultsListByNetAppAccountSample.js][backupvaultslistbynetappaccountsample] | List and describe all Backup Vaults in the NetApp account. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_List.json | -| [backupVaultsUpdateSample.js][backupvaultsupdatesample] | Patch the specified NetApp Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Update.json | -| [backupsCreateSample.js][backupscreatesample] | Create a backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Create.json | -| [backupsDeleteSample.js][backupsdeletesample] | Delete a Backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Delete.json | -| [backupsGetLatestStatusSample.js][backupsgetlateststatussample] | Get the latest status of the backup for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_LatestBackupStatus.json | -| [backupsGetSample.js][backupsgetsample] | Get the specified Backup under Backup Vault. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Get.json | -| [backupsGetVolumeRestoreStatusSample.js][backupsgetvolumerestorestatussample] | Get the status of the restore for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RestoreStatus.json | -| [backupsListByVaultSample.js][backupslistbyvaultsample] | List all backups Under a Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_List.json | -| [backupsUnderAccountMigrateBackupsSample.js][backupsunderaccountmigratebackupssample] | Migrate the backups under a NetApp account to backup vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderAccount_Migrate.json | -| [backupsUnderBackupVaultRestoreFilesSample.js][backupsunderbackupvaultrestorefilessample] | Restore the specified files from the specified backup to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_SingleFileRestore.json | -| [backupsUnderVolumeMigrateBackupsSample.js][backupsundervolumemigratebackupssample] | Migrate the backups under volume to backup vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderVolume_Migrate.json | -| [backupsUpdateSample.js][backupsupdatesample] | Patch a Backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Update.json | -| [netAppResourceCheckFilePathAvailabilitySample.js][netappresourcecheckfilepathavailabilitysample] | Check if a file path is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckFilePathAvailability.json | -| [netAppResourceCheckNameAvailabilitySample.js][netappresourcechecknameavailabilitysample] | Check if a resource name is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckNameAvailability.json | -| [netAppResourceCheckQuotaAvailabilitySample.js][netappresourcecheckquotaavailabilitysample] | Check if a quota is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckQuotaAvailability.json | -| [netAppResourceQueryNetworkSiblingSetSample.js][netappresourcequerynetworksiblingsetsample] | Get details of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Query.json | -| [netAppResourceQueryRegionInfoSample.js][netappresourcequeryregioninfosample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfo.json | -| [netAppResourceQuotaLimitsGetSample.js][netappresourcequotalimitsgetsample] | Get the default and current subscription quota limit x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_Get.json | -| [netAppResourceQuotaLimitsListSample.js][netappresourcequotalimitslistsample] | Get the default and current limits for quotas x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_List.json | -| [netAppResourceRegionInfosGetSample.js][netappresourceregioninfosgetsample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_Get.json | -| [netAppResourceRegionInfosListSample.js][netappresourceregioninfoslistsample] | Provides region specific information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_List.json | -| [netAppResourceUpdateNetworkSiblingSetSample.js][netappresourceupdatenetworksiblingsetsample] | Update the network features of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Update.json | -| [operationsListSample.js][operationslistsample] | Lists all of the available Microsoft.NetApp Rest API operations x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/OperationList.json | -| [poolsCreateOrUpdateSample.js][poolscreateorupdatesample] | Create or Update a capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_CreateOrUpdate.json | -| [poolsDeleteSample.js][poolsdeletesample] | Delete the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Delete.json | -| [poolsGetSample.js][poolsgetsample] | Get details of the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Get.json | -| [poolsListSample.js][poolslistsample] | List all capacity pools in the NetApp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_List.json | -| [poolsUpdateSample.js][poolsupdatesample] | Patch the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Update.json | -| [snapshotPoliciesCreateSample.js][snapshotpoliciescreatesample] | Create a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Create.json | -| [snapshotPoliciesDeleteSample.js][snapshotpoliciesdeletesample] | Delete snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Delete.json | -| [snapshotPoliciesGetSample.js][snapshotpoliciesgetsample] | Get a snapshot Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Get.json | -| [snapshotPoliciesListSample.js][snapshotpolicieslistsample] | List snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_List.json | -| [snapshotPoliciesListVolumesSample.js][snapshotpolicieslistvolumessample] | Get volumes associated with snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_ListVolumes.json | -| [snapshotPoliciesUpdateSample.js][snapshotpoliciesupdatesample] | Patch a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Update.json | -| [snapshotsCreateSample.js][snapshotscreatesample] | Create the specified snapshot within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Create.json | -| [snapshotsDeleteSample.js][snapshotsdeletesample] | Delete snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Delete.json | -| [snapshotsGetSample.js][snapshotsgetsample] | Get details of the specified snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Get.json | -| [snapshotsListSample.js][snapshotslistsample] | List all snapshots associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_List.json | -| [snapshotsRestoreFilesSample.js][snapshotsrestorefilessample] | Restore the specified files from the specified snapshot to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_SingleFileRestore.json | -| [snapshotsUpdateSample.js][snapshotsupdatesample] | Patch a snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Update.json | -| [subvolumesCreateSample.js][subvolumescreatesample] | Creates a subvolume in the path or clones the subvolume mentioned in the parentPath x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Create.json | -| [subvolumesDeleteSample.js][subvolumesdeletesample] | Delete subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Delete.json | -| [subvolumesGetMetadataSample.js][subvolumesgetmetadatasample] | Get details of the specified subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Metadata.json | -| [subvolumesGetSample.js][subvolumesgetsample] | Returns the path associated with the subvolumeName provided x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Get.json | -| [subvolumesListByVolumeSample.js][subvolumeslistbyvolumesample] | Returns a list of the subvolumes in the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_List.json | -| [subvolumesUpdateSample.js][subvolumesupdatesample] | Patch a subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Update.json | -| [volumeGroupsCreateSample.js][volumegroupscreatesample] | Create a volume group along with specified volumes x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_Oracle.json | -| [volumeGroupsDeleteSample.js][volumegroupsdeletesample] | Delete the specified volume group only if there are no volumes under volume group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Delete.json | -| [volumeGroupsGetSample.js][volumegroupsgetsample] | Get details of the specified volume group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_Oracle.json | -| [volumeGroupsListByNetAppAccountSample.js][volumegroupslistbynetappaccountsample] | List all volume groups for given account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_Oracle.json | -| [volumeQuotaRulesCreateSample.js][volumequotarulescreatesample] | Create the specified quota rule within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Create.json | -| [volumeQuotaRulesDeleteSample.js][volumequotarulesdeletesample] | Delete quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Delete.json | -| [volumeQuotaRulesGetSample.js][volumequotarulesgetsample] | Get details of the specified quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Get.json | -| [volumeQuotaRulesListByVolumeSample.js][volumequotaruleslistbyvolumesample] | List all quota rules associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_List.json | -| [volumeQuotaRulesUpdateSample.js][volumequotarulesupdatesample] | Patch a quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Update.json | -| [volumesAuthorizeReplicationSample.js][volumesauthorizereplicationsample] | Authorize the replication connection on the source volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_AuthorizeReplication.json | -| [volumesBreakFileLocksSample.js][volumesbreakfilelockssample] | Break all the file locks on a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakFileLocks.json | -| [volumesBreakReplicationSample.js][volumesbreakreplicationsample] | Break the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakReplication.json | -| [volumesCreateOrUpdateSample.js][volumescreateorupdatesample] | Create or update the specified volume within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_CreateOrUpdate.json | -| [volumesDeleteReplicationSample.js][volumesdeletereplicationsample] | Delete the replication connection on the destination volume, and send release to the source replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_DeleteReplication.json | -| [volumesDeleteSample.js][volumesdeletesample] | Delete the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Delete.json | -| [volumesFinalizeRelocationSample.js][volumesfinalizerelocationsample] | Finalizes the relocation of the volume and cleans up the old volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_FinalizeRelocation.json | -| [volumesGetSample.js][volumesgetsample] | Get the details of the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Get.json | -| [volumesListGetGroupIdListForLdapUserSample.js][volumeslistgetgroupidlistforldapusersample] | Returns the list of group Ids for a specific LDAP User x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/GroupIdListForLDAPUser.json | -| [volumesListReplicationsSample.js][volumeslistreplicationssample] | List all replications for a specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ListReplications.json | -| [volumesListSample.js][volumeslistsample] | List all volumes within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_List.json | -| [volumesPoolChangeSample.js][volumespoolchangesample] | Moves volume to another pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PoolChange.json | -| [volumesPopulateAvailabilityZoneSample.js][volumespopulateavailabilityzonesample] | This operation will populate availability zone information for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PopulateAvailabilityZones.json | -| [volumesReInitializeReplicationSample.js][volumesreinitializereplicationsample] | Re-Initializes the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReInitializeReplication.json | -| [volumesReestablishReplicationSample.js][volumesreestablishreplicationsample] | Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReestablishReplication.json | -| [volumesRelocateSample.js][volumesrelocatesample] | Relocates volume to a new stamp x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Relocate.json | -| [volumesReplicationStatusSample.js][volumesreplicationstatussample] | Get the status of the replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReplicationStatus.json | -| [volumesResetCifsPasswordSample.js][volumesresetcifspasswordsample] | Reset cifs password from volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResetCifsPassword.json | -| [volumesResyncReplicationSample.js][volumesresyncreplicationsample] | Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResyncReplication.json | -| [volumesRevertRelocationSample.js][volumesrevertrelocationsample] | Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RevertRelocation.json | -| [volumesRevertSample.js][volumesrevertsample] | Revert a volume to the snapshot specified in the body x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Revert.json | -| [volumesSplitCloneFromParentSample.js][volumessplitclonefromparentsample] | Split operation to convert clone volume to an independent volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_SplitClone.json | -| [volumesUpdateSample.js][volumesupdatesample] | Patch the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Update.json | +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| [accountsCreateOrUpdateSample.js][accountscreateorupdatesample] | Create or update the specified NetApp account within the resource group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdate.json | +| [accountsDeleteSample.js][accountsdeletesample] | Delete the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Delete.json | +| [accountsGetSample.js][accountsgetsample] | Get the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Get.json | +| [accountsListBySubscriptionSample.js][accountslistbysubscriptionsample] | List and describe all NetApp accounts in the subscription. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json | +| [accountsListSample.js][accountslistsample] | List and describe all NetApp accounts in the resource group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json | +| [accountsRenewCredentialsSample.js][accountsrenewcredentialssample] | Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_RenewCredentials.json | +| [accountsUpdateSample.js][accountsupdatesample] | Patch the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Update.json | +| [backupPoliciesCreateSample.js][backuppoliciescreatesample] | Create a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Create.json | +| [backupPoliciesDeleteSample.js][backuppoliciesdeletesample] | Delete backup policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Delete.json | +| [backupPoliciesGetSample.js][backuppoliciesgetsample] | Get a particular backup Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Get.json | +| [backupPoliciesListSample.js][backuppolicieslistsample] | List backup policies for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_List.json | +| [backupPoliciesUpdateSample.js][backuppoliciesupdatesample] | Patch a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Update.json | +| [backupsGetVolumeRestoreStatusSample.js][backupsgetvolumerestorestatussample] | Get the status of the restore for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RestoreStatus.json | +| [netAppResourceCheckFilePathAvailabilitySample.js][netappresourcecheckfilepathavailabilitysample] | Check if a file path is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckFilePathAvailability.json | +| [netAppResourceCheckNameAvailabilitySample.js][netappresourcechecknameavailabilitysample] | Check if a resource name is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckNameAvailability.json | +| [netAppResourceCheckQuotaAvailabilitySample.js][netappresourcecheckquotaavailabilitysample] | Check if a quota is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckQuotaAvailability.json | +| [netAppResourceQueryNetworkSiblingSetSample.js][netappresourcequerynetworksiblingsetsample] | Get details of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Query.json | +| [netAppResourceQueryRegionInfoSample.js][netappresourcequeryregioninfosample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json | +| [netAppResourceQuotaLimitsGetSample.js][netappresourcequotalimitsgetsample] | Get the default and current subscription quota limit x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_Get.json | +| [netAppResourceQuotaLimitsListSample.js][netappresourcequotalimitslistsample] | Get the default and current limits for quotas x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_List.json | +| [netAppResourceUpdateNetworkSiblingSetSample.js][netappresourceupdatenetworksiblingsetsample] | Update the network features of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Update.json | +| [operationsListSample.js][operationslistsample] | Lists all of the available Microsoft.NetApp Rest API operations x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/OperationList.json | +| [poolsCreateOrUpdateSample.js][poolscreateorupdatesample] | Create or Update a capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_CreateOrUpdate.json | +| [poolsDeleteSample.js][poolsdeletesample] | Delete the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Delete.json | +| [poolsGetSample.js][poolsgetsample] | Get details of the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Get.json | +| [poolsListSample.js][poolslistsample] | List all capacity pools in the NetApp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_List.json | +| [poolsUpdateSample.js][poolsupdatesample] | Patch the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Update.json | +| [snapshotPoliciesCreateSample.js][snapshotpoliciescreatesample] | Create a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Create.json | +| [snapshotPoliciesDeleteSample.js][snapshotpoliciesdeletesample] | Delete snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Delete.json | +| [snapshotPoliciesGetSample.js][snapshotpoliciesgetsample] | Get a snapshot Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Get.json | +| [snapshotPoliciesListSample.js][snapshotpolicieslistsample] | List snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_List.json | +| [snapshotPoliciesListVolumesSample.js][snapshotpolicieslistvolumessample] | Get volumes associated with snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_ListVolumes.json | +| [snapshotPoliciesUpdateSample.js][snapshotpoliciesupdatesample] | Patch a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Update.json | +| [snapshotsCreateSample.js][snapshotscreatesample] | Create the specified snapshot within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Create.json | +| [snapshotsDeleteSample.js][snapshotsdeletesample] | Delete snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Delete.json | +| [snapshotsGetSample.js][snapshotsgetsample] | Get details of the specified snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Get.json | +| [snapshotsListSample.js][snapshotslistsample] | List all snapshots associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_List.json | +| [snapshotsRestoreFilesSample.js][snapshotsrestorefilessample] | Restore the specified files from the specified snapshot to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_SingleFileRestore.json | +| [snapshotsUpdateSample.js][snapshotsupdatesample] | Patch a snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Update.json | +| [subvolumesCreateSample.js][subvolumescreatesample] | Creates a subvolume in the path or clones the subvolume mentioned in the parentPath x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Create.json | +| [subvolumesDeleteSample.js][subvolumesdeletesample] | Delete subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Delete.json | +| [subvolumesGetMetadataSample.js][subvolumesgetmetadatasample] | Get details of the specified subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Metadata.json | +| [subvolumesGetSample.js][subvolumesgetsample] | Returns the path associated with the subvolumeName provided x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Get.json | +| [subvolumesListByVolumeSample.js][subvolumeslistbyvolumesample] | Returns a list of the subvolumes in the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_List.json | +| [subvolumesUpdateSample.js][subvolumesupdatesample] | Patch a subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Update.json | +| [volumeGroupsCreateSample.js][volumegroupscreatesample] | Create a volume group along with specified volumes x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_Oracle.json | +| [volumeGroupsDeleteSample.js][volumegroupsdeletesample] | Delete the specified volume group only if there are no volumes under volume group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Delete.json | +| [volumeGroupsGetSample.js][volumegroupsgetsample] | Get details of the specified volume group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_Oracle.json | +| [volumeGroupsListByNetAppAccountSample.js][volumegroupslistbynetappaccountsample] | List all volume groups for given account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_Oracle.json | +| [volumeQuotaRulesCreateSample.js][volumequotarulescreatesample] | Create the specified quota rule within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Create.json | +| [volumeQuotaRulesDeleteSample.js][volumequotarulesdeletesample] | Delete quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Delete.json | +| [volumeQuotaRulesGetSample.js][volumequotarulesgetsample] | Get details of the specified quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Get.json | +| [volumeQuotaRulesListByVolumeSample.js][volumequotaruleslistbyvolumesample] | List all quota rules associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_List.json | +| [volumeQuotaRulesUpdateSample.js][volumequotarulesupdatesample] | Patch a quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Update.json | +| [volumesAuthorizeReplicationSample.js][volumesauthorizereplicationsample] | Authorize the replication connection on the source volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_AuthorizeReplication.json | +| [volumesBreakFileLocksSample.js][volumesbreakfilelockssample] | Break all the file locks on a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakFileLocks.json | +| [volumesBreakReplicationSample.js][volumesbreakreplicationsample] | Break the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakReplication.json | +| [volumesCreateOrUpdateSample.js][volumescreateorupdatesample] | Create or update the specified volume within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_CreateOrUpdate.json | +| [volumesDeleteReplicationSample.js][volumesdeletereplicationsample] | Delete the replication connection on the destination volume, and send release to the source replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_DeleteReplication.json | +| [volumesDeleteSample.js][volumesdeletesample] | Delete the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Delete.json | +| [volumesFinalizeRelocationSample.js][volumesfinalizerelocationsample] | Finalizes the relocation of the volume and cleans up the old volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_FinalizeRelocation.json | +| [volumesGetSample.js][volumesgetsample] | Get the details of the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Get.json | +| [volumesListGetGroupIdListForLdapUserSample.js][volumeslistgetgroupidlistforldapusersample] | Returns the list of group Ids for a specific LDAP User x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/GroupIdListForLDAPUser.json | +| [volumesListReplicationsSample.js][volumeslistreplicationssample] | List all replications for a specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ListReplications.json | +| [volumesListSample.js][volumeslistsample] | List all volumes within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_List.json | +| [volumesPoolChangeSample.js][volumespoolchangesample] | Moves volume to another pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PoolChange.json | +| [volumesPopulateAvailabilityZoneSample.js][volumespopulateavailabilityzonesample] | This operation will populate availability zone information for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PopulateAvailabilityZones.json | +| [volumesReInitializeReplicationSample.js][volumesreinitializereplicationsample] | Re-Initializes the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReInitializeReplication.json | +| [volumesReestablishReplicationSample.js][volumesreestablishreplicationsample] | Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReestablishReplication.json | +| [volumesRelocateSample.js][volumesrelocatesample] | Relocates volume to a new stamp x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Relocate.json | +| [volumesReplicationStatusSample.js][volumesreplicationstatussample] | Get the status of the replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReplicationStatus.json | +| [volumesResetCifsPasswordSample.js][volumesresetcifspasswordsample] | Reset cifs password from volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResetCifsPassword.json | +| [volumesResyncReplicationSample.js][volumesresyncreplicationsample] | Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResyncReplication.json | +| [volumesRevertRelocationSample.js][volumesrevertrelocationsample] | Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RevertRelocation.json | +| [volumesRevertSample.js][volumesrevertsample] | Revert a volume to the snapshot specified in the body x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Revert.json | +| [volumesUpdateSample.js][volumesupdatesample] | Patch the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Update.json | ## Prerequisites @@ -127,116 +106,95 @@ npm install 3. Run whichever samples you like (note that some samples may require additional setup, see the table above): ```bash -node accountBackupsDeleteSample.js +node accountsCreateOrUpdateSample.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 NETAPP_SUBSCRIPTION_ID="" NETAPP_RESOURCE_GROUP="" node accountBackupsDeleteSample.js +npx cross-env NETAPP_SUBSCRIPTION_ID="" NETAPP_RESOURCE_GROUP="" node accountsCreateOrUpdateSample.js ``` ## Next Steps Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. -[accountbackupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsDeleteSample.js -[accountbackupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsGetSample.js -[accountbackupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountBackupsListByNetAppAccountSample.js -[accountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsCreateOrUpdateSample.js -[accountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsDeleteSample.js -[accountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsGetSample.js -[accountslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsListBySubscriptionSample.js -[accountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsListSample.js -[accountsmigrateencryptionkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsMigrateEncryptionKeySample.js -[accountsrenewcredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsRenewCredentialsSample.js -[accountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsUpdateSample.js -[backuppoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesCreateSample.js -[backuppoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesDeleteSample.js -[backuppoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesGetSample.js -[backuppolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesListSample.js -[backuppoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesUpdateSample.js -[backupvaultscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsCreateOrUpdateSample.js -[backupvaultsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsDeleteSample.js -[backupvaultsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsGetSample.js -[backupvaultslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsListByNetAppAccountSample.js -[backupvaultsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupVaultsUpdateSample.js -[backupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsCreateSample.js -[backupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsDeleteSample.js -[backupsgetlateststatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetLatestStatusSample.js -[backupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetSample.js -[backupsgetvolumerestorestatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetVolumeRestoreStatusSample.js -[backupslistbyvaultsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsListByVaultSample.js -[backupsunderaccountmigratebackupssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderAccountMigrateBackupsSample.js -[backupsunderbackupvaultrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderBackupVaultRestoreFilesSample.js -[backupsundervolumemigratebackupssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUnderVolumeMigrateBackupsSample.js -[backupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsUpdateSample.js -[netappresourcecheckfilepathavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckFilePathAvailabilitySample.js -[netappresourcechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckNameAvailabilitySample.js -[netappresourcecheckquotaavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckQuotaAvailabilitySample.js -[netappresourcequerynetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQueryNetworkSiblingSetSample.js -[netappresourcequeryregioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQueryRegionInfoSample.js -[netappresourcequotalimitsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQuotaLimitsGetSample.js -[netappresourcequotalimitslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQuotaLimitsListSample.js -[netappresourceregioninfosgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosGetSample.js -[netappresourceregioninfoslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceRegionInfosListSample.js -[netappresourceupdatenetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceUpdateNetworkSiblingSetSample.js -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/operationsListSample.js -[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsCreateOrUpdateSample.js -[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsDeleteSample.js -[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsGetSample.js -[poolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsListSample.js -[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsUpdateSample.js -[snapshotpoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesCreateSample.js -[snapshotpoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesDeleteSample.js -[snapshotpoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesGetSample.js -[snapshotpolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesListSample.js -[snapshotpolicieslistvolumessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesListVolumesSample.js -[snapshotpoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesUpdateSample.js -[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsCreateSample.js -[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsDeleteSample.js -[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsGetSample.js -[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsListSample.js -[snapshotsrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsRestoreFilesSample.js -[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsUpdateSample.js -[subvolumescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesCreateSample.js -[subvolumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesDeleteSample.js -[subvolumesgetmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesGetMetadataSample.js -[subvolumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesGetSample.js -[subvolumeslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesListByVolumeSample.js -[subvolumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesUpdateSample.js -[volumegroupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsCreateSample.js -[volumegroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsDeleteSample.js -[volumegroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsGetSample.js -[volumegroupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsListByNetAppAccountSample.js -[volumequotarulescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesCreateSample.js -[volumequotarulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesDeleteSample.js -[volumequotarulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesGetSample.js -[volumequotaruleslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesListByVolumeSample.js -[volumequotarulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesUpdateSample.js -[volumesauthorizereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesAuthorizeReplicationSample.js -[volumesbreakfilelockssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesBreakFileLocksSample.js -[volumesbreakreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesBreakReplicationSample.js -[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesCreateOrUpdateSample.js -[volumesdeletereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesDeleteReplicationSample.js -[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesDeleteSample.js -[volumesfinalizerelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesFinalizeRelocationSample.js -[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesGetSample.js -[volumeslistgetgroupidlistforldapusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListGetGroupIdListForLdapUserSample.js -[volumeslistreplicationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListReplicationsSample.js -[volumeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListSample.js -[volumespoolchangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesPoolChangeSample.js -[volumespopulateavailabilityzonesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesPopulateAvailabilityZoneSample.js -[volumesreinitializereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReInitializeReplicationSample.js -[volumesreestablishreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReestablishReplicationSample.js -[volumesrelocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRelocateSample.js -[volumesreplicationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReplicationStatusSample.js -[volumesresetcifspasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesResetCifsPasswordSample.js -[volumesresyncreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesResyncReplicationSample.js -[volumesrevertrelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRevertRelocationSample.js -[volumesrevertsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRevertSample.js -[volumessplitclonefromparentsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesSplitCloneFromParentSample.js -[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesUpdateSample.js +[accountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsCreateOrUpdateSample.js +[accountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsDeleteSample.js +[accountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsGetSample.js +[accountslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListBySubscriptionSample.js +[accountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListSample.js +[accountsrenewcredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsRenewCredentialsSample.js +[accountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/accountsUpdateSample.js +[backuppoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesCreateSample.js +[backuppoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesDeleteSample.js +[backuppoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesGetSample.js +[backuppolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesListSample.js +[backuppoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesUpdateSample.js +[backupsgetvolumerestorestatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/backupsGetVolumeRestoreStatusSample.js +[netappresourcecheckfilepathavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckFilePathAvailabilitySample.js +[netappresourcechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckNameAvailabilitySample.js +[netappresourcecheckquotaavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckQuotaAvailabilitySample.js +[netappresourcequerynetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryNetworkSiblingSetSample.js +[netappresourcequeryregioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryRegionInfoSample.js +[netappresourcequotalimitsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsGetSample.js +[netappresourcequotalimitslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsListSample.js +[netappresourceupdatenetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceUpdateNetworkSiblingSetSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/operationsListSample.js +[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/poolsCreateOrUpdateSample.js +[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/poolsDeleteSample.js +[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/poolsGetSample.js +[poolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/poolsListSample.js +[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/poolsUpdateSample.js +[snapshotpoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesCreateSample.js +[snapshotpoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesDeleteSample.js +[snapshotpoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesGetSample.js +[snapshotpolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListSample.js +[snapshotpolicieslistvolumessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListVolumesSample.js +[snapshotpoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesUpdateSample.js +[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsCreateSample.js +[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsDeleteSample.js +[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsGetSample.js +[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsListSample.js +[snapshotsrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsRestoreFilesSample.js +[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsUpdateSample.js +[subvolumescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesCreateSample.js +[subvolumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesDeleteSample.js +[subvolumesgetmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetMetadataSample.js +[subvolumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetSample.js +[subvolumeslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesListByVolumeSample.js +[subvolumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesUpdateSample.js +[volumegroupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsCreateSample.js +[volumegroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsDeleteSample.js +[volumegroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsGetSample.js +[volumegroupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsListByNetAppAccountSample.js +[volumequotarulescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesCreateSample.js +[volumequotarulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesDeleteSample.js +[volumequotarulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesGetSample.js +[volumequotaruleslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesListByVolumeSample.js +[volumequotarulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesUpdateSample.js +[volumesauthorizereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesAuthorizeReplicationSample.js +[volumesbreakfilelockssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakFileLocksSample.js +[volumesbreakreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakReplicationSample.js +[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesCreateOrUpdateSample.js +[volumesdeletereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteReplicationSample.js +[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteSample.js +[volumesfinalizerelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesFinalizeRelocationSample.js +[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesGetSample.js +[volumeslistgetgroupidlistforldapusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListGetGroupIdListForLdapUserSample.js +[volumeslistreplicationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListReplicationsSample.js +[volumeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListSample.js +[volumespoolchangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPoolChangeSample.js +[volumespopulateavailabilityzonesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPopulateAvailabilityZoneSample.js +[volumesreinitializereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReInitializeReplicationSample.js +[volumesreestablishreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReestablishReplicationSample.js +[volumesrelocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRelocateSample.js +[volumesreplicationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReplicationStatusSample.js +[volumesresetcifspasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResetCifsPasswordSample.js +[volumesresyncreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResyncReplicationSample.js +[volumesrevertrelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertRelocationSample.js +[volumesrevertsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertSample.js +[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/javascript/volumesUpdateSample.js [apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-netapp?view=azure-node-preview [freesub]: https://azure.microsoft.com/free/ [package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp/README.md diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsCreateOrUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsCreateOrUpdateSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsCreateOrUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/accountsCreateOrUpdateSample.js index 356f13b42725..1544effbc70c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsCreateOrUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update the specified NetApp account within the resource group * * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdate.json */ async function accountsCreateOrUpdate() { const subscriptionId = @@ -38,7 +38,7 @@ async function accountsCreateOrUpdate() { * This sample demonstrates how to Create or update the specified NetApp account within the resource group * * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdateAD.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdateAD.json */ async function accountsCreateOrUpdateWithActiveDirectory() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/accountsDeleteSample.js index ecdde01f72a3..e9fdc967f06c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the specified NetApp account * * @summary Delete the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Delete.json */ async function accountsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsGetSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/accountsGetSample.js index 8a89b17b00de..a325d7313e6e 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the NetApp account * * @summary Get the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Get.json */ async function accountsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsListBySubscriptionSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListBySubscriptionSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsListBySubscriptionSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/accountsListBySubscriptionSample.js index 7a22b22226bb..4194be94bf6c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsListBySubscriptionSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List and describe all NetApp accounts in the subscription. * * @summary List and describe all NetApp accounts in the subscription. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json */ async function accountsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsListSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/accountsListSample.js index 5d76755f998e..69fff1d5b2f7 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsListSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List and describe all NetApp accounts in the resource group. * * @summary List and describe all NetApp accounts in the resource group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json */ async function accountsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsRenewCredentialsSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsRenewCredentialsSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsRenewCredentialsSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/accountsRenewCredentialsSample.js index 9920d251303f..613b31721b67 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsRenewCredentialsSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsRenewCredentialsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * * @summary Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_RenewCredentials.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_RenewCredentials.json */ async function accountsRenewCredentials() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsUpdateSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/accountsUpdateSample.js index baeeaa3cea92..60fdb74aa56a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/accountsUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/accountsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch the specified NetApp account * * @summary Patch the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Update.json */ async function accountsUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesCreateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesCreateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesCreateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesCreateSample.js index 85a463d27424..a5ec4f9458f9 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesCreateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create a backup policy for Netapp Account * * @summary Create a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Create.json */ async function backupPoliciesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesDeleteSample.js index 7aa13db568a5..67938cd240bb 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete backup policy * * @summary Delete backup policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Delete.json */ async function backupsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesGetSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesGetSample.js index d9a296d7eb39..fe3ad0fb8931 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a particular backup Policy * * @summary Get a particular backup Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Get.json */ async function backupsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesListSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesListSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesListSample.js index ed30bdf6324c..63b9ed79d04d 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesListSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List backup policies for Netapp Account * * @summary List backup policies for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_List.json */ async function backupsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesUpdateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesUpdateSample.js index 0456013773f2..38ba7d79729a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupPoliciesUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/backupPoliciesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch a backup policy for Netapp Account * * @summary Patch a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Update.json */ async function backupPoliciesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetVolumeRestoreStatusSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/backupsGetVolumeRestoreStatusSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetVolumeRestoreStatusSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/backupsGetVolumeRestoreStatusSample.js index de1c5c081f96..7f65c6254e9d 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/backupsGetVolumeRestoreStatusSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/backupsGetVolumeRestoreStatusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the status of the restore for a volume * * @summary Get the status of the restore for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RestoreStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RestoreStatus.json */ async function volumesRestoreStatus() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckFilePathAvailabilitySample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckFilePathAvailabilitySample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckFilePathAvailabilitySample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckFilePathAvailabilitySample.js index 6cbe5c6f5794..16a84fccdae1 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckFilePathAvailabilitySample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckFilePathAvailabilitySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Check if a file path is available. * * @summary Check if a file path is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckFilePathAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckFilePathAvailability.json */ async function checkFilePathAvailability() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckNameAvailabilitySample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckNameAvailabilitySample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckNameAvailabilitySample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckNameAvailabilitySample.js index 23dc09b9f1cf..0121ab5a7286 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckNameAvailabilitySample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckNameAvailabilitySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Check if a resource name is available. * * @summary Check if a resource name is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckNameAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckNameAvailability.json */ async function checkNameAvailability() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckQuotaAvailabilitySample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckQuotaAvailabilitySample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckQuotaAvailabilitySample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckQuotaAvailabilitySample.js index 43c4dd46a7c7..ba37d725fcd3 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceCheckQuotaAvailabilitySample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceCheckQuotaAvailabilitySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Check if a quota is available. * * @summary Check if a quota is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckQuotaAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckQuotaAvailability.json */ async function checkQuotaAvailability() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQueryNetworkSiblingSetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryNetworkSiblingSetSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQueryNetworkSiblingSetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryNetworkSiblingSetSample.js index 2740819707cc..0e83f9d34f4d 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQueryNetworkSiblingSetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryNetworkSiblingSetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get details of the specified network sibling set. * * @summary Get details of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Query.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Query.json */ async function networkSiblingSetQuery() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQueryRegionInfoSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryRegionInfoSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQueryRegionInfoSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryRegionInfoSample.js index a11ab3d15397..e3f2b4227f9a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQueryRegionInfoSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQueryRegionInfoSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. * * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfo.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json */ async function regionInfoQuery() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQuotaLimitsGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsGetSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQuotaLimitsGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsGetSample.js index 5a93893cb1d2..8d3265e1a3e9 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQuotaLimitsGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the default and current subscription quota limit * * @summary Get the default and current subscription quota limit - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_Get.json */ async function quotaLimits() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQuotaLimitsListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsListSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQuotaLimitsListSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsListSample.js index 90f2f6af4f90..28dd26713ef3 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceQuotaLimitsListSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceQuotaLimitsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the default and current limits for quotas * * @summary Get the default and current limits for quotas - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_List.json */ async function quotaLimits() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceUpdateNetworkSiblingSetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceUpdateNetworkSiblingSetSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceUpdateNetworkSiblingSetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceUpdateNetworkSiblingSetSample.js index 7b029fb77cf7..fc59d24be22c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/netAppResourceUpdateNetworkSiblingSetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/netAppResourceUpdateNetworkSiblingSetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update the network features of the specified network sibling set. * * @summary Update the network features of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Update.json */ async function networkFeaturesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/operationsListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/operationsListSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/operationsListSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/operationsListSample.js index 6231e1533d32..dfa127d2fcbf 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/operationsListSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/operationsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the available Microsoft.NetApp Rest API operations * * @summary Lists all of the available Microsoft.NetApp Rest API operations - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/OperationList.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/OperationList.json */ async function operationList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/package.json b/sdk/netapp/arm-netapp/samples/v20/javascript/package.json similarity index 81% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/package.json rename to sdk/netapp/arm-netapp/samples/v20/javascript/package.json index 1348842e2fd4..a2e9760744db 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/package.json +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/package.json @@ -1,8 +1,8 @@ { - "name": "@azure-samples/arm-netapp-js-beta", + "name": "@azure-samples/arm-netapp-js", "private": true, "version": "1.0.0", - "description": " client library samples for JavaScript (Beta)", + "description": " client library samples for JavaScript", "engines": { "node": ">=18.0.0" }, @@ -25,7 +25,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp", "dependencies": { - "@azure/arm-netapp": "next", + "@azure/arm-netapp": "latest", "dotenv": "latest", "@azure/identity": "^4.0.1" } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsCreateOrUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsCreateOrUpdateSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsCreateOrUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/poolsCreateOrUpdateSample.js index c56b3da8899e..1c28fc96a651 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsCreateOrUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or Update a capacity pool * * @summary Create or Update a capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_CreateOrUpdate.json */ async function poolsCreateOrUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/poolsDeleteSample.js index 444a1607455a..72039201a54b 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the specified capacity pool * * @summary Delete the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Delete.json */ async function poolsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsGetSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/poolsGetSample.js index 18bcd9b1491f..1a6779ef5004 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get details of the specified capacity pool * * @summary Get details of the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Get.json */ async function poolsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsListSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsListSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/poolsListSample.js index 301c223a32cf..32d2cc2a3786 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsListSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all capacity pools in the NetApp Account * * @summary List all capacity pools in the NetApp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_List.json */ async function poolsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsUpdateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/poolsUpdateSample.js index 920c62380824..a5a2939e9e31 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/poolsUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/poolsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch the specified capacity pool * * @summary Patch the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Update.json */ async function poolsUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/sample.env b/sdk/netapp/arm-netapp/samples/v20/javascript/sample.env similarity index 100% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/sample.env rename to sdk/netapp/arm-netapp/samples/v20/javascript/sample.env diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesCreateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesCreateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesCreateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesCreateSample.js index 8311ad8fa779..4fb870bb2ad9 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesCreateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create a snapshot policy * * @summary Create a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Create.json */ async function snapshotPoliciesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesDeleteSample.js index 63b9597839e8..aca1c0fc43a6 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete snapshot policy * * @summary Delete snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Delete.json */ async function snapshotPoliciesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesGetSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesGetSample.js index fa1b2c6605c5..2922f8467118 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a snapshot Policy * * @summary Get a snapshot Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Get.json */ async function snapshotPoliciesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesListSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListSample.js index 412f44c5a93e..6ecbceb2855e 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesListSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List snapshot policy * * @summary List snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_List.json */ async function snapshotPoliciesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesListVolumesSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListVolumesSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesListVolumesSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListVolumesSample.js index 4aca38404189..deb60ce0a89b 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesListVolumesSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesListVolumesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get volumes associated with snapshot policy * * @summary Get volumes associated with snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_ListVolumes.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_ListVolumes.json */ async function snapshotPoliciesListVolumes() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesUpdateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesUpdateSample.js index 41fe961945e5..d1439a5f3df1 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotPoliciesUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotPoliciesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch a snapshot policy * * @summary Patch a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Update.json */ async function snapshotPoliciesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsCreateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsCreateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsCreateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsCreateSample.js index e798709886d9..47d944c52b8d 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsCreateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create the specified snapshot within the given volume * * @summary Create the specified snapshot within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Create.json */ async function snapshotsCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsDeleteSample.js index 9cd94b20626c..6294f65e40fb 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete snapshot * * @summary Delete snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Delete.json */ async function snapshotsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsGetSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsGetSample.js index 558e0806fd39..f98caec5ba51 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get details of the specified snapshot * * @summary Get details of the specified snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Get.json */ async function snapshotsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsListSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsListSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsListSample.js index bf5924217f55..78770a032be2 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsListSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all snapshots associated with the volume * * @summary List all snapshots associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_List.json */ async function snapshotsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsRestoreFilesSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsRestoreFilesSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsRestoreFilesSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsRestoreFilesSample.js index 80bee2e7adc2..169d7ab8f641 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsRestoreFilesSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsRestoreFilesSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Restore the specified files from the specified snapshot to the active filesystem * * @summary Restore the specified files from the specified snapshot to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_SingleFileRestore.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_SingleFileRestore.json */ async function snapshotsSingleFileRestore() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsUpdateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsUpdateSample.js index cb235762ce65..c54a09206c20 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/snapshotsUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/snapshotsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch a snapshot * * @summary Patch a snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Update.json */ async function snapshotsUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesCreateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesCreateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesCreateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesCreateSample.js index 5c72839966f8..f7ee2b70c08b 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesCreateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a subvolume in the path or clones the subvolume mentioned in the parentPath * * @summary Creates a subvolume in the path or clones the subvolume mentioned in the parentPath - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Create.json */ async function subvolumesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesDeleteSample.js index 572992a983d9..d8032603ebd8 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete subvolume * * @summary Delete subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Delete.json */ async function subvolumesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesGetMetadataSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetMetadataSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesGetMetadataSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetMetadataSample.js index 3f78d8ea6417..858a3e95f1e8 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesGetMetadataSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetMetadataSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get details of the specified subvolume * * @summary Get details of the specified subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Metadata.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Metadata.json */ async function subvolumesMetadata() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetSample.js index e14ac63912cd..5d971b8dc798 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Returns the path associated with the subvolumeName provided * * @summary Returns the path associated with the subvolumeName provided - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Get.json */ async function subvolumesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesListByVolumeSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesListByVolumeSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesListByVolumeSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesListByVolumeSample.js index 39d28210f126..6ea9f4328fd3 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesListByVolumeSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesListByVolumeSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Returns a list of the subvolumes in the volume * * @summary Returns a list of the subvolumes in the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_List.json */ async function subvolumesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesUpdateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesUpdateSample.js index 73090d59f1ed..234e2bdec241 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/subvolumesUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/subvolumesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch a subvolume * * @summary Patch a subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Update.json */ async function subvolumesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsCreateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsCreateSample.js similarity index 99% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsCreateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsCreateSample.js index dc6332842d9b..3adb55c40a43 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsCreateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create a volume group along with specified volumes * * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_Oracle.json */ async function volumeGroupsCreateOracle() { const subscriptionId = @@ -457,7 +457,7 @@ async function volumeGroupsCreateOracle() { * This sample demonstrates how to Create a volume group along with specified volumes * * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_SapHana.json */ async function volumeGroupsCreateSapHana() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsDeleteSample.js index b4a43324486f..0b7293904c17 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the specified volume group only if there are no volumes under volume group. * * @summary Delete the specified volume group only if there are no volumes under volume group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Delete.json */ async function volumeGroupsDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsGetSample.js similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsGetSample.js index 3f19fd13da57..56a109ae5d10 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get details of the specified volume group * * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_Oracle.json */ async function volumeGroupsGetOracle() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumeGroupsGetOracle() { * This sample demonstrates how to Get details of the specified volume group * * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_SapHana.json */ async function volumeGroupsGetSapHana() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsListByNetAppAccountSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsListByNetAppAccountSample.js similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsListByNetAppAccountSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsListByNetAppAccountSample.js index da6a5ae7ca02..419907f398f9 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeGroupsListByNetAppAccountSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeGroupsListByNetAppAccountSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all volume groups for given account * * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_Oracle.json */ async function volumeGroupsListOracle() { const subscriptionId = @@ -36,7 +36,7 @@ async function volumeGroupsListOracle() { * This sample demonstrates how to List all volume groups for given account * * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_SapHana.json */ async function volumeGroupsListSapHana() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesCreateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesCreateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesCreateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesCreateSample.js index 25b49fadb99a..086d94ea8814 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesCreateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create the specified quota rule within the given volume * * @summary Create the specified quota rule within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Create.json */ async function volumeQuotaRulesCreate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesDeleteSample.js index 13b3edb3cc4e..69f776285ca3 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete quota rule * * @summary Delete quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Delete.json */ async function volumeQuotaRulesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesGetSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesGetSample.js index f594c697b6d3..7524e3d3c2e6 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get details of the specified quota rule * * @summary Get details of the specified quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Get.json */ async function volumeQuotaRulesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesListByVolumeSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesListByVolumeSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesListByVolumeSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesListByVolumeSample.js index d03646d3f293..dcbd3baf1019 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesListByVolumeSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesListByVolumeSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all quota rules associated with the volume * * @summary List all quota rules associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_List.json */ async function volumeQuotaRulesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesUpdateSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesUpdateSample.js index a5c45f0d79b9..a0d46bbf91d0 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumeQuotaRulesUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumeQuotaRulesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch a quota rule * * @summary Patch a quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Update.json */ async function volumeQuotaRulesUpdate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesAuthorizeReplicationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesAuthorizeReplicationSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesAuthorizeReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesAuthorizeReplicationSample.js index 9d0d273f0740..4e687f1135cc 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesAuthorizeReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesAuthorizeReplicationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Authorize the replication connection on the source volume * * @summary Authorize the replication connection on the source volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_AuthorizeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_AuthorizeReplication.json */ async function volumesAuthorizeReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesBreakFileLocksSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakFileLocksSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesBreakFileLocksSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakFileLocksSample.js index 369613d5ee9d..5e455f0f76e8 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesBreakFileLocksSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakFileLocksSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Break all the file locks on a volume * * @summary Break all the file locks on a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakFileLocks.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakFileLocks.json */ async function volumesBreakFileLocks() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesBreakReplicationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakReplicationSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesBreakReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakReplicationSample.js index 8707ff772200..a28912dda337 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesBreakReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesBreakReplicationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Break the replication connection on the destination volume * * @summary Break the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakReplication.json */ async function volumesBreakReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesCreateOrUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesCreateOrUpdateSample.js similarity index 91% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesCreateOrUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesCreateOrUpdateSample.js index a7bc02f7c935..89be59853b90 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesCreateOrUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update the specified volume within the capacity pool * * @summary Create or update the specified volume within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_CreateOrUpdate.json */ async function volumesCreateOrUpdate() { const subscriptionId = @@ -27,12 +27,10 @@ async function volumesCreateOrUpdate() { const volumeName = "volume1"; const body = { creationToken: "my-unique-file-path", - encryptionKeySource: "Microsoft.KeyVault", location: "eastus", serviceLevel: "Premium", subnetId: "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 128, usageThreshold: 107374182400, }; const credential = new DefaultAzureCredential(); diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesDeleteReplicationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteReplicationSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesDeleteReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteReplicationSample.js index 866803190c31..d27770c6a6ef 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesDeleteReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteReplicationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the replication connection on the destination volume, and send release to the source replication * * @summary Delete the replication connection on the destination volume, and send release to the source replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_DeleteReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_DeleteReplication.json */ async function volumesDeleteReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesDeleteSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesDeleteSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteSample.js index 0ffaf51fcbd0..b03cee655e34 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesDeleteSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete the specified volume * * @summary Delete the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Delete.json */ async function volumesDelete() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesFinalizeRelocationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesFinalizeRelocationSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesFinalizeRelocationSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesFinalizeRelocationSample.js index 47a82676be0c..0d6a8cc6575c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesFinalizeRelocationSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesFinalizeRelocationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Finalizes the relocation of the volume and cleans up the old volume. * * @summary Finalizes the relocation of the volume and cleans up the old volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_FinalizeRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_FinalizeRelocation.json */ async function volumesFinalizeRelocation() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesGetSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesGetSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesGetSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesGetSample.js index 687c97f00cf2..00aca6a08a28 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesGetSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the details of the specified volume * * @summary Get the details of the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Get.json */ async function volumesGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListGetGroupIdListForLdapUserSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListGetGroupIdListForLdapUserSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListGetGroupIdListForLdapUserSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesListGetGroupIdListForLdapUserSample.js index 8303cc313c84..5a8486115672 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListGetGroupIdListForLdapUserSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListGetGroupIdListForLdapUserSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Returns the list of group Ids for a specific LDAP User * * @summary Returns the list of group Ids for a specific LDAP User - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/GroupIdListForLDAPUser.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/GroupIdListForLDAPUser.json */ async function getGroupIdListForUser() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListReplicationsSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListReplicationsSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListReplicationsSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesListReplicationsSample.js index 5dd1cd534c70..4cfc39c0206b 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListReplicationsSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListReplicationsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all replications for a specified volume * * @summary List all replications for a specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ListReplications.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ListReplications.json */ async function volumesListReplications() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesListSample.js index 56bf8ed91300..e9f51e07671e 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesListSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all volumes within the capacity pool * * @summary List all volumes within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_List.json */ async function volumesList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesPoolChangeSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPoolChangeSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesPoolChangeSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesPoolChangeSample.js index bf1ceb81466a..3de6653754d0 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesPoolChangeSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPoolChangeSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Moves volume to another pool * * @summary Moves volume to another pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PoolChange.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PoolChange.json */ async function volumesAuthorizeReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesPopulateAvailabilityZoneSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPopulateAvailabilityZoneSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesPopulateAvailabilityZoneSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesPopulateAvailabilityZoneSample.js index fa7b0a268c67..4e703835d807 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesPopulateAvailabilityZoneSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesPopulateAvailabilityZoneSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to This operation will populate availability zone information for a volume * * @summary This operation will populate availability zone information for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PopulateAvailabilityZones.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PopulateAvailabilityZones.json */ async function volumesPopulateAvailabilityZones() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReInitializeReplicationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReInitializeReplicationSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReInitializeReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesReInitializeReplicationSample.js index 3026960b5a22..8306dd7dd2fc 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReInitializeReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReInitializeReplicationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Re-Initializes the replication connection on the destination volume * * @summary Re-Initializes the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReInitializeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReInitializeReplication.json */ async function volumesReInitializeReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReestablishReplicationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReestablishReplicationSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReestablishReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesReestablishReplicationSample.js index 1488e02af480..0599fa16285f 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReestablishReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReestablishReplicationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots * * @summary Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReestablishReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReestablishReplication.json */ async function volumesReestablishReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRelocateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRelocateSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRelocateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesRelocateSample.js index 35c274ea533a..57cc4cee6507 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRelocateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRelocateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Relocates volume to a new stamp * * @summary Relocates volume to a new stamp - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Relocate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Relocate.json */ async function volumesRelocate() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReplicationStatusSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReplicationStatusSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReplicationStatusSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesReplicationStatusSample.js index 85e6eb16167e..a8c4696ca2a6 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesReplicationStatusSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesReplicationStatusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the status of the replication * * @summary Get the status of the replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReplicationStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReplicationStatus.json */ async function volumesReplicationStatus() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesResetCifsPasswordSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResetCifsPasswordSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesResetCifsPasswordSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesResetCifsPasswordSample.js index 4930682fc65a..c06aa55070b5 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesResetCifsPasswordSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResetCifsPasswordSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Reset cifs password from volume * * @summary Reset cifs password from volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResetCifsPassword.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResetCifsPassword.json */ async function volumesResetCifsPassword() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesResyncReplicationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResyncReplicationSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesResyncReplicationSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesResyncReplicationSample.js index 882f186a3062..49ae5f35a38c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesResyncReplicationSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesResyncReplicationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. * * @summary Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResyncReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResyncReplication.json */ async function volumesResyncReplication() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRevertRelocationSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertRelocationSample.js similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRevertRelocationSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertRelocationSample.js index 59122df7035c..568add203759 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRevertRelocationSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertRelocationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @summary Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RevertRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RevertRelocation.json */ async function volumesRevertRelocation() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRevertSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertSample.js similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRevertSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertSample.js index 0f1191416833..d09afe402a22 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesRevertSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesRevertSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Revert a volume to the snapshot specified in the body * * @summary Revert a volume to the snapshot specified in the body - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Revert.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Revert.json */ async function volumesRevert() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesUpdateSample.js b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesUpdateSample.js similarity index 76% rename from sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesUpdateSample.js rename to sdk/netapp/arm-netapp/samples/v20/javascript/volumesUpdateSample.js index 03af3792446a..ff1b6792e390 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/javascript/volumesUpdateSample.js +++ b/sdk/netapp/arm-netapp/samples/v20/javascript/volumesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Patch the specified volume * * @summary Patch the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Update.json */ async function volumesUpdate() { const subscriptionId = @@ -25,17 +25,7 @@ async function volumesUpdate() { const accountName = "account1"; const poolName = "pool1"; const volumeName = "volume1"; - const body = { - dataProtection: { - backup: { - backupEnabled: true, - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRP/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1", - policyEnforced: false, - }, - }, - location: "eastus", - }; + const body = {}; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.volumes.beginUpdateAndWait( diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/README.md b/sdk/netapp/arm-netapp/samples/v20/typescript/README.md similarity index 53% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/README.md rename to sdk/netapp/arm-netapp/samples/v20/typescript/README.md index 1cb7aed3c8dc..1af20193e61c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/README.md +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/README.md @@ -1,106 +1,85 @@ -# client library samples for TypeScript (Beta) +# client library samples for TypeScript These sample programs show how to use the TypeScript client libraries for in some common scenarios. -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [accountBackupsDeleteSample.ts][accountbackupsdeletesample] | Delete the specified Backup for a Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Delete.json | -| [accountBackupsGetSample.ts][accountbackupsgetsample] | Gets the specified backup for a Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_Get.json | -| [accountBackupsListByNetAppAccountSample.ts][accountbackupslistbynetappaccountsample] | List all Backups for a Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Backups_Account_List.json | -| [accountsCreateOrUpdateSample.ts][accountscreateorupdatesample] | Create or update the specified NetApp account within the resource group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdate.json | -| [accountsDeleteSample.ts][accountsdeletesample] | Delete the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Delete.json | -| [accountsGetSample.ts][accountsgetsample] | Get the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Get.json | -| [accountsListBySubscriptionSample.ts][accountslistbysubscriptionsample] | List and describe all NetApp accounts in the subscription. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json | -| [accountsListSample.ts][accountslistsample] | List and describe all NetApp accounts in the resource group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json | -| [accountsMigrateEncryptionKeySample.ts][accountsmigrateencryptionkeysample] | Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from another account. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_MigrateEncryptionKey.json | -| [accountsRenewCredentialsSample.ts][accountsrenewcredentialssample] | Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_RenewCredentials.json | -| [accountsUpdateSample.ts][accountsupdatesample] | Patch the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Update.json | -| [backupPoliciesCreateSample.ts][backuppoliciescreatesample] | Create a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Create.json | -| [backupPoliciesDeleteSample.ts][backuppoliciesdeletesample] | Delete backup policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Delete.json | -| [backupPoliciesGetSample.ts][backuppoliciesgetsample] | Get a particular backup Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Get.json | -| [backupPoliciesListSample.ts][backuppolicieslistsample] | List backup policies for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_List.json | -| [backupPoliciesUpdateSample.ts][backuppoliciesupdatesample] | Patch a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Update.json | -| [backupVaultsCreateOrUpdateSample.ts][backupvaultscreateorupdatesample] | Create or update the specified Backup Vault in the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Create.json | -| [backupVaultsDeleteSample.ts][backupvaultsdeletesample] | Delete the specified Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Delete.json | -| [backupVaultsGetSample.ts][backupvaultsgetsample] | Get the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Get.json | -| [backupVaultsListByNetAppAccountSample.ts][backupvaultslistbynetappaccountsample] | List and describe all Backup Vaults in the NetApp account. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_List.json | -| [backupVaultsUpdateSample.ts][backupvaultsupdatesample] | Patch the specified NetApp Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupVaults_Update.json | -| [backupsCreateSample.ts][backupscreatesample] | Create a backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Create.json | -| [backupsDeleteSample.ts][backupsdeletesample] | Delete a Backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Delete.json | -| [backupsGetLatestStatusSample.ts][backupsgetlateststatussample] | Get the latest status of the backup for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_LatestBackupStatus.json | -| [backupsGetSample.ts][backupsgetsample] | Get the specified Backup under Backup Vault. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Get.json | -| [backupsGetVolumeRestoreStatusSample.ts][backupsgetvolumerestorestatussample] | Get the status of the restore for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RestoreStatus.json | -| [backupsListByVaultSample.ts][backupslistbyvaultsample] | List all backups Under a Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_List.json | -| [backupsUnderAccountMigrateBackupsSample.ts][backupsunderaccountmigratebackupssample] | Migrate the backups under a NetApp account to backup vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderAccount_Migrate.json | -| [backupsUnderBackupVaultRestoreFilesSample.ts][backupsunderbackupvaultrestorefilessample] | Restore the specified files from the specified backup to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_SingleFileRestore.json | -| [backupsUnderVolumeMigrateBackupsSample.ts][backupsundervolumemigratebackupssample] | Migrate the backups under volume to backup vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderVolume_Migrate.json | -| [backupsUpdateSample.ts][backupsupdatesample] | Patch a Backup under the Backup Vault x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupsUnderBackupVault_Update.json | -| [netAppResourceCheckFilePathAvailabilitySample.ts][netappresourcecheckfilepathavailabilitysample] | Check if a file path is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckFilePathAvailability.json | -| [netAppResourceCheckNameAvailabilitySample.ts][netappresourcechecknameavailabilitysample] | Check if a resource name is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckNameAvailability.json | -| [netAppResourceCheckQuotaAvailabilitySample.ts][netappresourcecheckquotaavailabilitysample] | Check if a quota is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckQuotaAvailability.json | -| [netAppResourceQueryNetworkSiblingSetSample.ts][netappresourcequerynetworksiblingsetsample] | Get details of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Query.json | -| [netAppResourceQueryRegionInfoSample.ts][netappresourcequeryregioninfosample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfo.json | -| [netAppResourceQuotaLimitsGetSample.ts][netappresourcequotalimitsgetsample] | Get the default and current subscription quota limit x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_Get.json | -| [netAppResourceQuotaLimitsListSample.ts][netappresourcequotalimitslistsample] | Get the default and current limits for quotas x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_List.json | -| [netAppResourceRegionInfosGetSample.ts][netappresourceregioninfosgetsample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_Get.json | -| [netAppResourceRegionInfosListSample.ts][netappresourceregioninfoslistsample] | Provides region specific information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfos_List.json | -| [netAppResourceUpdateNetworkSiblingSetSample.ts][netappresourceupdatenetworksiblingsetsample] | Update the network features of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Update.json | -| [operationsListSample.ts][operationslistsample] | Lists all of the available Microsoft.NetApp Rest API operations x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/OperationList.json | -| [poolsCreateOrUpdateSample.ts][poolscreateorupdatesample] | Create or Update a capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_CreateOrUpdate.json | -| [poolsDeleteSample.ts][poolsdeletesample] | Delete the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Delete.json | -| [poolsGetSample.ts][poolsgetsample] | Get details of the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Get.json | -| [poolsListSample.ts][poolslistsample] | List all capacity pools in the NetApp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_List.json | -| [poolsUpdateSample.ts][poolsupdatesample] | Patch the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Update.json | -| [snapshotPoliciesCreateSample.ts][snapshotpoliciescreatesample] | Create a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Create.json | -| [snapshotPoliciesDeleteSample.ts][snapshotpoliciesdeletesample] | Delete snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Delete.json | -| [snapshotPoliciesGetSample.ts][snapshotpoliciesgetsample] | Get a snapshot Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Get.json | -| [snapshotPoliciesListSample.ts][snapshotpolicieslistsample] | List snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_List.json | -| [snapshotPoliciesListVolumesSample.ts][snapshotpolicieslistvolumessample] | Get volumes associated with snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_ListVolumes.json | -| [snapshotPoliciesUpdateSample.ts][snapshotpoliciesupdatesample] | Patch a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Update.json | -| [snapshotsCreateSample.ts][snapshotscreatesample] | Create the specified snapshot within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Create.json | -| [snapshotsDeleteSample.ts][snapshotsdeletesample] | Delete snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Delete.json | -| [snapshotsGetSample.ts][snapshotsgetsample] | Get details of the specified snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Get.json | -| [snapshotsListSample.ts][snapshotslistsample] | List all snapshots associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_List.json | -| [snapshotsRestoreFilesSample.ts][snapshotsrestorefilessample] | Restore the specified files from the specified snapshot to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_SingleFileRestore.json | -| [snapshotsUpdateSample.ts][snapshotsupdatesample] | Patch a snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Update.json | -| [subvolumesCreateSample.ts][subvolumescreatesample] | Creates a subvolume in the path or clones the subvolume mentioned in the parentPath x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Create.json | -| [subvolumesDeleteSample.ts][subvolumesdeletesample] | Delete subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Delete.json | -| [subvolumesGetMetadataSample.ts][subvolumesgetmetadatasample] | Get details of the specified subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Metadata.json | -| [subvolumesGetSample.ts][subvolumesgetsample] | Returns the path associated with the subvolumeName provided x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Get.json | -| [subvolumesListByVolumeSample.ts][subvolumeslistbyvolumesample] | Returns a list of the subvolumes in the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_List.json | -| [subvolumesUpdateSample.ts][subvolumesupdatesample] | Patch a subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Update.json | -| [volumeGroupsCreateSample.ts][volumegroupscreatesample] | Create a volume group along with specified volumes x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_Oracle.json | -| [volumeGroupsDeleteSample.ts][volumegroupsdeletesample] | Delete the specified volume group only if there are no volumes under volume group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Delete.json | -| [volumeGroupsGetSample.ts][volumegroupsgetsample] | Get details of the specified volume group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_Oracle.json | -| [volumeGroupsListByNetAppAccountSample.ts][volumegroupslistbynetappaccountsample] | List all volume groups for given account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_Oracle.json | -| [volumeQuotaRulesCreateSample.ts][volumequotarulescreatesample] | Create the specified quota rule within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Create.json | -| [volumeQuotaRulesDeleteSample.ts][volumequotarulesdeletesample] | Delete quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Delete.json | -| [volumeQuotaRulesGetSample.ts][volumequotarulesgetsample] | Get details of the specified quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Get.json | -| [volumeQuotaRulesListByVolumeSample.ts][volumequotaruleslistbyvolumesample] | List all quota rules associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_List.json | -| [volumeQuotaRulesUpdateSample.ts][volumequotarulesupdatesample] | Patch a quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Update.json | -| [volumesAuthorizeReplicationSample.ts][volumesauthorizereplicationsample] | Authorize the replication connection on the source volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_AuthorizeReplication.json | -| [volumesBreakFileLocksSample.ts][volumesbreakfilelockssample] | Break all the file locks on a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakFileLocks.json | -| [volumesBreakReplicationSample.ts][volumesbreakreplicationsample] | Break the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakReplication.json | -| [volumesCreateOrUpdateSample.ts][volumescreateorupdatesample] | Create or update the specified volume within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_CreateOrUpdate.json | -| [volumesDeleteReplicationSample.ts][volumesdeletereplicationsample] | Delete the replication connection on the destination volume, and send release to the source replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_DeleteReplication.json | -| [volumesDeleteSample.ts][volumesdeletesample] | Delete the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Delete.json | -| [volumesFinalizeRelocationSample.ts][volumesfinalizerelocationsample] | Finalizes the relocation of the volume and cleans up the old volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_FinalizeRelocation.json | -| [volumesGetSample.ts][volumesgetsample] | Get the details of the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Get.json | -| [volumesListGetGroupIdListForLdapUserSample.ts][volumeslistgetgroupidlistforldapusersample] | Returns the list of group Ids for a specific LDAP User x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/GroupIdListForLDAPUser.json | -| [volumesListReplicationsSample.ts][volumeslistreplicationssample] | List all replications for a specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ListReplications.json | -| [volumesListSample.ts][volumeslistsample] | List all volumes within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_List.json | -| [volumesPoolChangeSample.ts][volumespoolchangesample] | Moves volume to another pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PoolChange.json | -| [volumesPopulateAvailabilityZoneSample.ts][volumespopulateavailabilityzonesample] | This operation will populate availability zone information for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PopulateAvailabilityZones.json | -| [volumesReInitializeReplicationSample.ts][volumesreinitializereplicationsample] | Re-Initializes the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReInitializeReplication.json | -| [volumesReestablishReplicationSample.ts][volumesreestablishreplicationsample] | Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReestablishReplication.json | -| [volumesRelocateSample.ts][volumesrelocatesample] | Relocates volume to a new stamp x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Relocate.json | -| [volumesReplicationStatusSample.ts][volumesreplicationstatussample] | Get the status of the replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReplicationStatus.json | -| [volumesResetCifsPasswordSample.ts][volumesresetcifspasswordsample] | Reset cifs password from volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResetCifsPassword.json | -| [volumesResyncReplicationSample.ts][volumesresyncreplicationsample] | Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResyncReplication.json | -| [volumesRevertRelocationSample.ts][volumesrevertrelocationsample] | Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RevertRelocation.json | -| [volumesRevertSample.ts][volumesrevertsample] | Revert a volume to the snapshot specified in the body x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Revert.json | -| [volumesSplitCloneFromParentSample.ts][volumessplitclonefromparentsample] | Split operation to convert clone volume to an independent volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_SplitClone.json | -| [volumesUpdateSample.ts][volumesupdatesample] | Patch the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Update.json | +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| [accountsCreateOrUpdateSample.ts][accountscreateorupdatesample] | Create or update the specified NetApp account within the resource group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdate.json | +| [accountsDeleteSample.ts][accountsdeletesample] | Delete the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Delete.json | +| [accountsGetSample.ts][accountsgetsample] | Get the NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Get.json | +| [accountsListBySubscriptionSample.ts][accountslistbysubscriptionsample] | List and describe all NetApp accounts in the subscription. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json | +| [accountsListSample.ts][accountslistsample] | List and describe all NetApp accounts in the resource group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json | +| [accountsRenewCredentialsSample.ts][accountsrenewcredentialssample] | Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_RenewCredentials.json | +| [accountsUpdateSample.ts][accountsupdatesample] | Patch the specified NetApp account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Update.json | +| [backupPoliciesCreateSample.ts][backuppoliciescreatesample] | Create a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Create.json | +| [backupPoliciesDeleteSample.ts][backuppoliciesdeletesample] | Delete backup policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Delete.json | +| [backupPoliciesGetSample.ts][backuppoliciesgetsample] | Get a particular backup Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Get.json | +| [backupPoliciesListSample.ts][backuppolicieslistsample] | List backup policies for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_List.json | +| [backupPoliciesUpdateSample.ts][backuppoliciesupdatesample] | Patch a backup policy for Netapp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Update.json | +| [backupsGetVolumeRestoreStatusSample.ts][backupsgetvolumerestorestatussample] | Get the status of the restore for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RestoreStatus.json | +| [netAppResourceCheckFilePathAvailabilitySample.ts][netappresourcecheckfilepathavailabilitysample] | Check if a file path is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckFilePathAvailability.json | +| [netAppResourceCheckNameAvailabilitySample.ts][netappresourcechecknameavailabilitysample] | Check if a resource name is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckNameAvailability.json | +| [netAppResourceCheckQuotaAvailabilitySample.ts][netappresourcecheckquotaavailabilitysample] | Check if a quota is available. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckQuotaAvailability.json | +| [netAppResourceQueryNetworkSiblingSetSample.ts][netappresourcequerynetworksiblingsetsample] | Get details of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Query.json | +| [netAppResourceQueryRegionInfoSample.ts][netappresourcequeryregioninfosample] | Provides storage to network proximity and logical zone mapping information. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json | +| [netAppResourceQuotaLimitsGetSample.ts][netappresourcequotalimitsgetsample] | Get the default and current subscription quota limit x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_Get.json | +| [netAppResourceQuotaLimitsListSample.ts][netappresourcequotalimitslistsample] | Get the default and current limits for quotas x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_List.json | +| [netAppResourceUpdateNetworkSiblingSetSample.ts][netappresourceupdatenetworksiblingsetsample] | Update the network features of the specified network sibling set. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Update.json | +| [operationsListSample.ts][operationslistsample] | Lists all of the available Microsoft.NetApp Rest API operations x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/OperationList.json | +| [poolsCreateOrUpdateSample.ts][poolscreateorupdatesample] | Create or Update a capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_CreateOrUpdate.json | +| [poolsDeleteSample.ts][poolsdeletesample] | Delete the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Delete.json | +| [poolsGetSample.ts][poolsgetsample] | Get details of the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Get.json | +| [poolsListSample.ts][poolslistsample] | List all capacity pools in the NetApp Account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_List.json | +| [poolsUpdateSample.ts][poolsupdatesample] | Patch the specified capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Update.json | +| [snapshotPoliciesCreateSample.ts][snapshotpoliciescreatesample] | Create a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Create.json | +| [snapshotPoliciesDeleteSample.ts][snapshotpoliciesdeletesample] | Delete snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Delete.json | +| [snapshotPoliciesGetSample.ts][snapshotpoliciesgetsample] | Get a snapshot Policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Get.json | +| [snapshotPoliciesListSample.ts][snapshotpolicieslistsample] | List snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_List.json | +| [snapshotPoliciesListVolumesSample.ts][snapshotpolicieslistvolumessample] | Get volumes associated with snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_ListVolumes.json | +| [snapshotPoliciesUpdateSample.ts][snapshotpoliciesupdatesample] | Patch a snapshot policy x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Update.json | +| [snapshotsCreateSample.ts][snapshotscreatesample] | Create the specified snapshot within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Create.json | +| [snapshotsDeleteSample.ts][snapshotsdeletesample] | Delete snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Delete.json | +| [snapshotsGetSample.ts][snapshotsgetsample] | Get details of the specified snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Get.json | +| [snapshotsListSample.ts][snapshotslistsample] | List all snapshots associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_List.json | +| [snapshotsRestoreFilesSample.ts][snapshotsrestorefilessample] | Restore the specified files from the specified snapshot to the active filesystem x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_SingleFileRestore.json | +| [snapshotsUpdateSample.ts][snapshotsupdatesample] | Patch a snapshot x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Update.json | +| [subvolumesCreateSample.ts][subvolumescreatesample] | Creates a subvolume in the path or clones the subvolume mentioned in the parentPath x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Create.json | +| [subvolumesDeleteSample.ts][subvolumesdeletesample] | Delete subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Delete.json | +| [subvolumesGetMetadataSample.ts][subvolumesgetmetadatasample] | Get details of the specified subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Metadata.json | +| [subvolumesGetSample.ts][subvolumesgetsample] | Returns the path associated with the subvolumeName provided x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Get.json | +| [subvolumesListByVolumeSample.ts][subvolumeslistbyvolumesample] | Returns a list of the subvolumes in the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_List.json | +| [subvolumesUpdateSample.ts][subvolumesupdatesample] | Patch a subvolume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Update.json | +| [volumeGroupsCreateSample.ts][volumegroupscreatesample] | Create a volume group along with specified volumes x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_Oracle.json | +| [volumeGroupsDeleteSample.ts][volumegroupsdeletesample] | Delete the specified volume group only if there are no volumes under volume group. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Delete.json | +| [volumeGroupsGetSample.ts][volumegroupsgetsample] | Get details of the specified volume group x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_Oracle.json | +| [volumeGroupsListByNetAppAccountSample.ts][volumegroupslistbynetappaccountsample] | List all volume groups for given account x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_Oracle.json | +| [volumeQuotaRulesCreateSample.ts][volumequotarulescreatesample] | Create the specified quota rule within the given volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Create.json | +| [volumeQuotaRulesDeleteSample.ts][volumequotarulesdeletesample] | Delete quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Delete.json | +| [volumeQuotaRulesGetSample.ts][volumequotarulesgetsample] | Get details of the specified quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Get.json | +| [volumeQuotaRulesListByVolumeSample.ts][volumequotaruleslistbyvolumesample] | List all quota rules associated with the volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_List.json | +| [volumeQuotaRulesUpdateSample.ts][volumequotarulesupdatesample] | Patch a quota rule x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Update.json | +| [volumesAuthorizeReplicationSample.ts][volumesauthorizereplicationsample] | Authorize the replication connection on the source volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_AuthorizeReplication.json | +| [volumesBreakFileLocksSample.ts][volumesbreakfilelockssample] | Break all the file locks on a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakFileLocks.json | +| [volumesBreakReplicationSample.ts][volumesbreakreplicationsample] | Break the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakReplication.json | +| [volumesCreateOrUpdateSample.ts][volumescreateorupdatesample] | Create or update the specified volume within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_CreateOrUpdate.json | +| [volumesDeleteReplicationSample.ts][volumesdeletereplicationsample] | Delete the replication connection on the destination volume, and send release to the source replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_DeleteReplication.json | +| [volumesDeleteSample.ts][volumesdeletesample] | Delete the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Delete.json | +| [volumesFinalizeRelocationSample.ts][volumesfinalizerelocationsample] | Finalizes the relocation of the volume and cleans up the old volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_FinalizeRelocation.json | +| [volumesGetSample.ts][volumesgetsample] | Get the details of the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Get.json | +| [volumesListGetGroupIdListForLdapUserSample.ts][volumeslistgetgroupidlistforldapusersample] | Returns the list of group Ids for a specific LDAP User x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/GroupIdListForLDAPUser.json | +| [volumesListReplicationsSample.ts][volumeslistreplicationssample] | List all replications for a specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ListReplications.json | +| [volumesListSample.ts][volumeslistsample] | List all volumes within the capacity pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_List.json | +| [volumesPoolChangeSample.ts][volumespoolchangesample] | Moves volume to another pool x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PoolChange.json | +| [volumesPopulateAvailabilityZoneSample.ts][volumespopulateavailabilityzonesample] | This operation will populate availability zone information for a volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PopulateAvailabilityZones.json | +| [volumesReInitializeReplicationSample.ts][volumesreinitializereplicationsample] | Re-Initializes the replication connection on the destination volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReInitializeReplication.json | +| [volumesReestablishReplicationSample.ts][volumesreestablishreplicationsample] | Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReestablishReplication.json | +| [volumesRelocateSample.ts][volumesrelocatesample] | Relocates volume to a new stamp x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Relocate.json | +| [volumesReplicationStatusSample.ts][volumesreplicationstatussample] | Get the status of the replication x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReplicationStatus.json | +| [volumesResetCifsPasswordSample.ts][volumesresetcifspasswordsample] | Reset cifs password from volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResetCifsPassword.json | +| [volumesResyncReplicationSample.ts][volumesresyncreplicationsample] | Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResyncReplication.json | +| [volumesRevertRelocationSample.ts][volumesrevertrelocationsample] | Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RevertRelocation.json | +| [volumesRevertSample.ts][volumesrevertsample] | Revert a volume to the snapshot specified in the body x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Revert.json | +| [volumesUpdateSample.ts][volumesupdatesample] | Patch the specified volume x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Update.json | ## Prerequisites @@ -139,116 +118,95 @@ npm run build 4. Run whichever samples you like (note that some samples may require additional setup, see the table above): ```bash -node dist/accountBackupsDeleteSample.js +node dist/accountsCreateOrUpdateSample.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 NETAPP_SUBSCRIPTION_ID="" NETAPP_RESOURCE_GROUP="" node dist/accountBackupsDeleteSample.js +npx cross-env NETAPP_SUBSCRIPTION_ID="" NETAPP_RESOURCE_GROUP="" node dist/accountsCreateOrUpdateSample.js ``` ## Next Steps Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. -[accountbackupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsDeleteSample.ts -[accountbackupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsGetSample.ts -[accountbackupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountBackupsListByNetAppAccountSample.ts -[accountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsCreateOrUpdateSample.ts -[accountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsDeleteSample.ts -[accountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsGetSample.ts -[accountslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsListBySubscriptionSample.ts -[accountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsListSample.ts -[accountsmigrateencryptionkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsMigrateEncryptionKeySample.ts -[accountsrenewcredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsRenewCredentialsSample.ts -[accountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsUpdateSample.ts -[backuppoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesCreateSample.ts -[backuppoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesDeleteSample.ts -[backuppoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesGetSample.ts -[backuppolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesListSample.ts -[backuppoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesUpdateSample.ts -[backupvaultscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsCreateOrUpdateSample.ts -[backupvaultsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsDeleteSample.ts -[backupvaultsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsGetSample.ts -[backupvaultslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsListByNetAppAccountSample.ts -[backupvaultsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupVaultsUpdateSample.ts -[backupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsCreateSample.ts -[backupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsDeleteSample.ts -[backupsgetlateststatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetLatestStatusSample.ts -[backupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetSample.ts -[backupsgetvolumerestorestatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetVolumeRestoreStatusSample.ts -[backupslistbyvaultsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsListByVaultSample.ts -[backupsunderaccountmigratebackupssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderAccountMigrateBackupsSample.ts -[backupsunderbackupvaultrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderBackupVaultRestoreFilesSample.ts -[backupsundervolumemigratebackupssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUnderVolumeMigrateBackupsSample.ts -[backupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsUpdateSample.ts -[netappresourcecheckfilepathavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts -[netappresourcechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckNameAvailabilitySample.ts -[netappresourcecheckquotaavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts -[netappresourcequerynetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts -[netappresourcequeryregioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQueryRegionInfoSample.ts -[netappresourcequotalimitsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQuotaLimitsGetSample.ts -[netappresourcequotalimitslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQuotaLimitsListSample.ts -[netappresourceregioninfosgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosGetSample.ts -[netappresourceregioninfoslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceRegionInfosListSample.ts -[netappresourceupdatenetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/operationsListSample.ts -[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsCreateOrUpdateSample.ts -[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsDeleteSample.ts -[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsGetSample.ts -[poolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsListSample.ts -[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsUpdateSample.ts -[snapshotpoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesCreateSample.ts -[snapshotpoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesDeleteSample.ts -[snapshotpoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesGetSample.ts -[snapshotpolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesListSample.ts -[snapshotpolicieslistvolumessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesListVolumesSample.ts -[snapshotpoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesUpdateSample.ts -[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsCreateSample.ts -[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsDeleteSample.ts -[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsGetSample.ts -[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsListSample.ts -[snapshotsrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsRestoreFilesSample.ts -[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsUpdateSample.ts -[subvolumescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesCreateSample.ts -[subvolumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesDeleteSample.ts -[subvolumesgetmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesGetMetadataSample.ts -[subvolumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesGetSample.ts -[subvolumeslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesListByVolumeSample.ts -[subvolumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesUpdateSample.ts -[volumegroupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsCreateSample.ts -[volumegroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsDeleteSample.ts -[volumegroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsGetSample.ts -[volumegroupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsListByNetAppAccountSample.ts -[volumequotarulescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesCreateSample.ts -[volumequotarulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesDeleteSample.ts -[volumequotarulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesGetSample.ts -[volumequotaruleslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesListByVolumeSample.ts -[volumequotarulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesUpdateSample.ts -[volumesauthorizereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesAuthorizeReplicationSample.ts -[volumesbreakfilelockssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesBreakFileLocksSample.ts -[volumesbreakreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesBreakReplicationSample.ts -[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesCreateOrUpdateSample.ts -[volumesdeletereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesDeleteReplicationSample.ts -[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesDeleteSample.ts -[volumesfinalizerelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesFinalizeRelocationSample.ts -[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesGetSample.ts -[volumeslistgetgroupidlistforldapusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts -[volumeslistreplicationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListReplicationsSample.ts -[volumeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListSample.ts -[volumespoolchangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesPoolChangeSample.ts -[volumespopulateavailabilityzonesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesPopulateAvailabilityZoneSample.ts -[volumesreinitializereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReInitializeReplicationSample.ts -[volumesreestablishreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReestablishReplicationSample.ts -[volumesrelocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRelocateSample.ts -[volumesreplicationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReplicationStatusSample.ts -[volumesresetcifspasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesResetCifsPasswordSample.ts -[volumesresyncreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesResyncReplicationSample.ts -[volumesrevertrelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRevertRelocationSample.ts -[volumesrevertsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRevertSample.ts -[volumessplitclonefromparentsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesSplitCloneFromParentSample.ts -[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesUpdateSample.ts +[accountscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsCreateOrUpdateSample.ts +[accountsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsDeleteSample.ts +[accountsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsGetSample.ts +[accountslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListBySubscriptionSample.ts +[accountslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListSample.ts +[accountsrenewcredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsRenewCredentialsSample.ts +[accountsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsUpdateSample.ts +[backuppoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesCreateSample.ts +[backuppoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesDeleteSample.ts +[backuppoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesGetSample.ts +[backuppolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesListSample.ts +[backuppoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesUpdateSample.ts +[backupsgetvolumerestorestatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupsGetVolumeRestoreStatusSample.ts +[netappresourcecheckfilepathavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts +[netappresourcechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckNameAvailabilitySample.ts +[netappresourcecheckquotaavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts +[netappresourcequerynetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts +[netappresourcequeryregioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryRegionInfoSample.ts +[netappresourcequotalimitsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsGetSample.ts +[netappresourcequotalimitslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsListSample.ts +[netappresourceupdatenetworksiblingsetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/operationsListSample.ts +[poolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsCreateOrUpdateSample.ts +[poolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsDeleteSample.ts +[poolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsGetSample.ts +[poolslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsListSample.ts +[poolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsUpdateSample.ts +[snapshotpoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesCreateSample.ts +[snapshotpoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesDeleteSample.ts +[snapshotpoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesGetSample.ts +[snapshotpolicieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListSample.ts +[snapshotpolicieslistvolumessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListVolumesSample.ts +[snapshotpoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesUpdateSample.ts +[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsCreateSample.ts +[snapshotsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsDeleteSample.ts +[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsGetSample.ts +[snapshotslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsListSample.ts +[snapshotsrestorefilessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsRestoreFilesSample.ts +[snapshotsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsUpdateSample.ts +[subvolumescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesCreateSample.ts +[subvolumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesDeleteSample.ts +[subvolumesgetmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetMetadataSample.ts +[subvolumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetSample.ts +[subvolumeslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesListByVolumeSample.ts +[subvolumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesUpdateSample.ts +[volumegroupscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsCreateSample.ts +[volumegroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsDeleteSample.ts +[volumegroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsGetSample.ts +[volumegroupslistbynetappaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsListByNetAppAccountSample.ts +[volumequotarulescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesCreateSample.ts +[volumequotarulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesDeleteSample.ts +[volumequotarulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesGetSample.ts +[volumequotaruleslistbyvolumesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesListByVolumeSample.ts +[volumequotarulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesUpdateSample.ts +[volumesauthorizereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesAuthorizeReplicationSample.ts +[volumesbreakfilelockssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakFileLocksSample.ts +[volumesbreakreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakReplicationSample.ts +[volumescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesCreateOrUpdateSample.ts +[volumesdeletereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteReplicationSample.ts +[volumesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteSample.ts +[volumesfinalizerelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesFinalizeRelocationSample.ts +[volumesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesGetSample.ts +[volumeslistgetgroupidlistforldapusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts +[volumeslistreplicationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListReplicationsSample.ts +[volumeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListSample.ts +[volumespoolchangesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPoolChangeSample.ts +[volumespopulateavailabilityzonesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPopulateAvailabilityZoneSample.ts +[volumesreinitializereplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReInitializeReplicationSample.ts +[volumesreestablishreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReestablishReplicationSample.ts +[volumesrelocatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRelocateSample.ts +[volumesreplicationstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReplicationStatusSample.ts +[volumesresetcifspasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResetCifsPasswordSample.ts +[volumesresyncreplicationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResyncReplicationSample.ts +[volumesrevertrelocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertRelocationSample.ts +[volumesrevertsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertSample.ts +[volumesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesUpdateSample.ts [apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-netapp?view=azure-node-preview [freesub]: https://azure.microsoft.com/free/ [package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp/README.md diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/package.json b/sdk/netapp/arm-netapp/samples/v20/typescript/package.json similarity index 84% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/package.json rename to sdk/netapp/arm-netapp/samples/v20/typescript/package.json index 85f5a8dbacc0..c0d75ac196f5 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/package.json +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/package.json @@ -1,8 +1,8 @@ { - "name": "@azure-samples/arm-netapp-ts-beta", + "name": "@azure-samples/arm-netapp-ts", "private": true, "version": "1.0.0", - "description": " client library samples for TypeScript (Beta)", + "description": " client library samples for TypeScript", "engines": { "node": ">=18.0.0" }, @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp", "dependencies": { - "@azure/arm-netapp": "next", + "@azure/arm-netapp": "latest", "dotenv": "latest", "@azure/identity": "^4.0.1" }, diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/sample.env b/sdk/netapp/arm-netapp/samples/v20/typescript/sample.env similarity index 100% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/sample.env rename to sdk/netapp/arm-netapp/samples/v20/typescript/sample.env diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsCreateOrUpdateSample.ts similarity index 91% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsCreateOrUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsCreateOrUpdateSample.ts index e53609546155..85c10bc1b59d 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update the specified NetApp account within the resource group * * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdate.json */ async function accountsCreateOrUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function accountsCreateOrUpdate() { const result = await client.accounts.beginCreateOrUpdateAndWait( resourceGroupName, accountName, - body + body, ); console.log(result); } @@ -41,7 +41,7 @@ async function accountsCreateOrUpdate() { * This sample demonstrates how to Create or update the specified NetApp account within the resource group * * @summary Create or update the specified NetApp account within the resource group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_CreateOrUpdateAD.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_CreateOrUpdateAD.json */ async function accountsCreateOrUpdateWithActiveDirectory() { const subscriptionId = @@ -61,17 +61,17 @@ async function accountsCreateOrUpdateWithActiveDirectory() { password: "ad_password", site: "SiteName", smbServerName: "SMBServer", - username: "ad_user_name" - } + username: "ad_user_name", + }, ], - location: "eastus" + location: "eastus", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.accounts.beginCreateOrUpdateAndWait( resourceGroupName, accountName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsDeleteSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsDeleteSample.ts index e520aff851ff..0308e9ad499a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified NetApp account * * @summary Delete the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Delete.json */ async function accountsDelete() { const subscriptionId = @@ -30,7 +30,7 @@ async function accountsDelete() { const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.accounts.beginDeleteAndWait( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsGetSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsGetSample.ts index 22a8a1ab0873..38bb8c6756c1 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the NetApp account * * @summary Get the NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Get.json */ async function accountsGet() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsListBySubscriptionSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListBySubscriptionSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsListBySubscriptionSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListBySubscriptionSample.ts index 1f292e0303b9..05a45b7d8c31 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsListBySubscriptionSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List and describe all NetApp accounts in the subscription. * * @summary List and describe all NetApp accounts in the subscription. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json */ async function accountsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsListSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListSample.ts index fc0b884f17c3..852a3d845dd8 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List and describe all NetApp accounts in the resource group. * * @summary List and describe all NetApp accounts in the resource group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_List.json */ async function accountsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsRenewCredentialsSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsRenewCredentialsSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsRenewCredentialsSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsRenewCredentialsSample.ts index 4d0b3ca77014..3280153c50ce 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsRenewCredentialsSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsRenewCredentialsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. * * @summary Renew identity credentials that are used to authenticate to key vault, for customer-managed key encryption. If encryption.identity.principalId does not match identity.principalId, running this operation will fix it. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_RenewCredentials.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_RenewCredentials.json */ async function accountsRenewCredentials() { const subscriptionId = @@ -30,7 +30,7 @@ async function accountsRenewCredentials() { const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.accounts.beginRenewCredentialsAndWait( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsUpdateSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsUpdateSample.ts index f70d57a33678..6ad6f365b75d 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/accountsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/accountsUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch the specified NetApp account * * @summary Patch the specified NetApp account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Accounts_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Accounts_Update.json */ async function accountsUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function accountsUpdate() { const result = await client.accounts.beginUpdateAndWait( resourceGroupName, accountName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesCreateSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesCreateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesCreateSample.ts index 6b2316ba4533..5349b14f7720 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a backup policy for Netapp Account * * @summary Create a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Create.json */ async function backupPoliciesCreate() { const subscriptionId = @@ -32,7 +32,7 @@ async function backupPoliciesCreate() { enabled: true, location: "westus", monthlyBackupsToKeep: 10, - weeklyBackupsToKeep: 10 + weeklyBackupsToKeep: 10, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -40,7 +40,7 @@ async function backupPoliciesCreate() { resourceGroupName, accountName, backupPolicyName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesDeleteSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesDeleteSample.ts index ab6bae9205cc..b08e68c37a1f 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete backup policy * * @summary Delete backup policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Delete.json */ async function backupsDelete() { const subscriptionId = @@ -33,7 +33,7 @@ async function backupsDelete() { const result = await client.backupPolicies.beginDeleteAndWait( resourceGroupName, accountName, - backupPolicyName + backupPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesGetSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesGetSample.ts index 53cc2fc4840c..8f692b9901bd 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a particular backup Policy * * @summary Get a particular backup Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Get.json */ async function backupsGet() { const subscriptionId = @@ -32,7 +32,7 @@ async function backupsGet() { const result = await client.backupPolicies.get( resourceGroupName, accountName, - backupPolicyName + backupPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesListSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesListSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesListSample.ts index 6c99bb47ce8e..0fe398c65443 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List backup policies for Netapp Account * * @summary List backup policies for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_List.json */ async function backupsList() { const subscriptionId = @@ -31,7 +31,7 @@ async function backupsList() { const resArray = new Array(); for await (let item of client.backupPolicies.list( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesUpdateSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesUpdateSample.ts index 7b8288681132..ebce8bb82494 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupPoliciesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupPoliciesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch a backup policy for Netapp Account * * @summary Patch a backup policy for Netapp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/BackupPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/BackupPolicies_Update.json */ async function backupPoliciesUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function backupPoliciesUpdate() { enabled: false, location: "westus", monthlyBackupsToKeep: 10, - weeklyBackupsToKeep: 10 + weeklyBackupsToKeep: 10, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -40,7 +40,7 @@ async function backupPoliciesUpdate() { resourceGroupName, accountName, backupPolicyName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetVolumeRestoreStatusSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupsGetVolumeRestoreStatusSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetVolumeRestoreStatusSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/backupsGetVolumeRestoreStatusSample.ts index 6d6ca819cdc8..b65cb60d137c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/backupsGetVolumeRestoreStatusSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/backupsGetVolumeRestoreStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the status of the restore for a volume * * @summary Get the status of the restore for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RestoreStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RestoreStatus.json */ async function volumesRestoreStatus() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesRestoreStatus() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts index 63a0ea2906e4..05b7dc514c9f 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckFilePathAvailabilitySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Check if a file path is available. * * @summary Check if a file path is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckFilePathAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckFilePathAvailability.json */ async function checkFilePathAvailability() { const subscriptionId = @@ -33,7 +33,7 @@ async function checkFilePathAvailability() { const result = await client.netAppResource.checkFilePathAvailability( location, name, - subnetId + subnetId, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckNameAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckNameAvailabilitySample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckNameAvailabilitySample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckNameAvailabilitySample.ts index 3cc975b1d3f9..820942bee7b4 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckNameAvailabilitySample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckNameAvailabilitySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Check if a resource name is available. * * @summary Check if a resource name is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckNameAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckNameAvailability.json */ async function checkNameAvailability() { const subscriptionId = @@ -34,7 +34,7 @@ async function checkNameAvailability() { location, name, typeParam, - resourceGroup + resourceGroup, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts index 3378adbd26b4..2a1f7e3c50c1 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceCheckQuotaAvailabilitySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Check if a quota is available. * * @summary Check if a quota is available. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/CheckQuotaAvailability.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/CheckQuotaAvailability.json */ async function checkQuotaAvailability() { const subscriptionId = @@ -34,7 +34,7 @@ async function checkQuotaAvailability() { location, name, typeParam, - resourceGroup + resourceGroup, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts index bb58c0a33128..a936ed78bbc9 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryNetworkSiblingSetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified network sibling set. * * @summary Get details of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Query.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Query.json */ async function networkSiblingSetQuery() { const subscriptionId = @@ -33,7 +33,7 @@ async function networkSiblingSetQuery() { const result = await client.netAppResource.queryNetworkSiblingSet( location, networkSiblingSetId, - subnetId + subnetId, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQueryRegionInfoSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryRegionInfoSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQueryRegionInfoSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryRegionInfoSample.ts index 7c3cd7080e7d..1d9c5323cee2 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQueryRegionInfoSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQueryRegionInfoSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Provides storage to network proximity and logical zone mapping information. * * @summary Provides storage to network proximity and logical zone mapping information. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/RegionInfo.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json */ async function regionInfoQuery() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQuotaLimitsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsGetSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQuotaLimitsGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsGetSample.ts index 8f0f34b8878d..3078387d6b35 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQuotaLimitsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the default and current subscription quota limit * * @summary Get the default and current subscription quota limit - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_Get.json */ async function quotaLimits() { const subscriptionId = @@ -30,7 +30,7 @@ async function quotaLimits() { const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.netAppResourceQuotaLimits.get( location, - quotaLimitName + quotaLimitName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQuotaLimitsListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsListSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQuotaLimitsListSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsListSample.ts index 4a2b587d265e..2d0326e06565 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceQuotaLimitsListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceQuotaLimitsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the default and current limits for quotas * * @summary Get the default and current limits for quotas - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/QuotaLimits_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/QuotaLimits_List.json */ async function quotaLimits() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts similarity index 84% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts index 993cb310901c..d813bd8ef06a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/netAppResourceUpdateNetworkSiblingSetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Update the network features of the specified network sibling set. * * @summary Update the network features of the specified network sibling set. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/NetworkSiblingSet_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/NetworkSiblingSet_Update.json */ async function networkFeaturesUpdate() { const subscriptionId = @@ -32,13 +32,14 @@ async function networkFeaturesUpdate() { const networkFeatures = "Standard"; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); - const result = await client.netAppResource.beginUpdateNetworkSiblingSetAndWait( - location, - networkSiblingSetId, - subnetId, - networkSiblingSetStateId, - networkFeatures - ); + const result = + await client.netAppResource.beginUpdateNetworkSiblingSetAndWait( + location, + networkSiblingSetId, + subnetId, + networkSiblingSetStateId, + networkFeatures, + ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/operationsListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/operationsListSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/operationsListSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/operationsListSample.ts index b6889338df8c..1d41bd056620 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/operationsListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the available Microsoft.NetApp Rest API operations * * @summary Lists all of the available Microsoft.NetApp Rest API operations - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/OperationList.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/OperationList.json */ async function operationList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsCreateOrUpdateSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsCreateOrUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsCreateOrUpdateSample.ts index 5e35e7140231..2959e4972a83 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or Update a capacity pool * * @summary Create or Update a capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_CreateOrUpdate.json */ async function poolsCreateOrUpdate() { const subscriptionId = @@ -31,7 +31,7 @@ async function poolsCreateOrUpdate() { location: "eastus", qosType: "Auto", serviceLevel: "Premium", - size: 4398046511104 + size: 4398046511104, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function poolsCreateOrUpdate() { resourceGroupName, accountName, poolName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsDeleteSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsDeleteSample.ts index 601a7a09b375..3f3b5543f973 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified capacity pool * * @summary Delete the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Delete.json */ async function poolsDelete() { const subscriptionId = @@ -32,7 +32,7 @@ async function poolsDelete() { const result = await client.pools.beginDeleteAndWait( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsGetSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsGetSample.ts index 1d9e9e863d38..ec8b1e723890 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified capacity pool * * @summary Get details of the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Get.json */ async function poolsGet() { const subscriptionId = @@ -32,7 +32,7 @@ async function poolsGet() { const result = await client.pools.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsListSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsListSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsListSample.ts index cc274cf7c4c8..732e49f0d81f 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all capacity pools in the NetApp Account * * @summary List all capacity pools in the NetApp Account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_List.json */ async function poolsList() { const subscriptionId = diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsUpdateSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsUpdateSample.ts index d8b99b70b4cb..fad1ab8f816a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/poolsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/poolsUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch the specified capacity pool * * @summary Patch the specified capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Pools_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Pools_Update.json */ async function poolsUpdate() { const subscriptionId = @@ -34,7 +34,7 @@ async function poolsUpdate() { resourceGroupName, accountName, poolName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesCreateSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesCreateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesCreateSample.ts index c3bb40d7d4fd..5c03a27f4400 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a snapshot policy * * @summary Create a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Create.json */ async function snapshotPoliciesCreate() { const subscriptionId = @@ -36,14 +36,14 @@ async function snapshotPoliciesCreate() { daysOfMonth: "10,11,12", hour: 14, minute: 15, - snapshotsToKeep: 5 + snapshotsToKeep: 5, }, weeklySchedule: { day: "Wednesday", hour: 14, minute: 45, - snapshotsToKeep: 3 - } + snapshotsToKeep: 3, + }, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -51,7 +51,7 @@ async function snapshotPoliciesCreate() { resourceGroupName, accountName, snapshotPolicyName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesDeleteSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesDeleteSample.ts index b070d8be07bf..54342c7e4429 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete snapshot policy * * @summary Delete snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Delete.json */ async function snapshotPoliciesDelete() { const subscriptionId = @@ -33,7 +33,7 @@ async function snapshotPoliciesDelete() { const result = await client.snapshotPolicies.beginDeleteAndWait( resourceGroupName, accountName, - snapshotPolicyName + snapshotPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesGetSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesGetSample.ts index e04c17f19010..22cee775c848 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a snapshot Policy * * @summary Get a snapshot Policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Get.json */ async function snapshotPoliciesGet() { const subscriptionId = @@ -32,7 +32,7 @@ async function snapshotPoliciesGet() { const result = await client.snapshotPolicies.get( resourceGroupName, accountName, - snapshotPolicyName + snapshotPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesListSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListSample.ts index 0fcd799a519d..c5979f7e1943 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List snapshot policy * * @summary List snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_List.json */ async function snapshotPoliciesList() { const subscriptionId = @@ -31,7 +31,7 @@ async function snapshotPoliciesList() { const resArray = new Array(); for await (let item of client.snapshotPolicies.list( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesListVolumesSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListVolumesSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesListVolumesSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListVolumesSample.ts index fef7aef70825..9b9cba0c5ca5 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesListVolumesSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesListVolumesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get volumes associated with snapshot policy * * @summary Get volumes associated with snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_ListVolumes.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_ListVolumes.json */ async function snapshotPoliciesListVolumes() { const subscriptionId = @@ -32,7 +32,7 @@ async function snapshotPoliciesListVolumes() { const result = await client.snapshotPolicies.listVolumes( resourceGroupName, accountName, - snapshotPolicyName + snapshotPolicyName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesUpdateSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesUpdateSample.ts index 149027a25a16..13bbe1990711 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotPoliciesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotPoliciesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch a snapshot policy * * @summary Patch a snapshot policy - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/SnapshotPolicies_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/SnapshotPolicies_Update.json */ async function snapshotPoliciesUpdate() { const subscriptionId = @@ -36,14 +36,14 @@ async function snapshotPoliciesUpdate() { daysOfMonth: "10,11,12", hour: 14, minute: 15, - snapshotsToKeep: 5 + snapshotsToKeep: 5, }, weeklySchedule: { day: "Wednesday", hour: 14, minute: 45, - snapshotsToKeep: 3 - } + snapshotsToKeep: 3, + }, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -51,7 +51,7 @@ async function snapshotPoliciesUpdate() { resourceGroupName, accountName, snapshotPolicyName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsCreateSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsCreateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsCreateSample.ts index a5ce922be485..a31ec846a3f1 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create the specified snapshot within the given volume * * @summary Create the specified snapshot within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Create.json */ async function snapshotsCreate() { const subscriptionId = @@ -38,7 +38,7 @@ async function snapshotsCreate() { poolName, volumeName, snapshotName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsDeleteSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsDeleteSample.ts index e5fcdca7bfbb..6b948039b70e 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete snapshot * * @summary Delete snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Delete.json */ async function snapshotsDelete() { const subscriptionId = @@ -36,7 +36,7 @@ async function snapshotsDelete() { accountName, poolName, volumeName, - snapshotName + snapshotName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsGetSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsGetSample.ts index d022a1c4641e..a9ccd7cce449 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified snapshot * * @summary Get details of the specified snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Get.json */ async function snapshotsGet() { const subscriptionId = @@ -36,7 +36,7 @@ async function snapshotsGet() { accountName, poolName, volumeName, - snapshotName + snapshotName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsListSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsListSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsListSample.ts index 3e6b274df61f..523f96cd67fa 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all snapshots associated with the volume * * @summary List all snapshots associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_List.json */ async function snapshotsList() { const subscriptionId = @@ -35,7 +35,7 @@ async function snapshotsList() { resourceGroupName, accountName, poolName, - volumeName + volumeName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsRestoreFilesSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsRestoreFilesSample.ts similarity index 89% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsRestoreFilesSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsRestoreFilesSample.ts index cf8c6d188b99..fb03516b70a3 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsRestoreFilesSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsRestoreFilesSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { SnapshotRestoreFiles, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Restore the specified files from the specified snapshot to the active filesystem * * @summary Restore the specified files from the specified snapshot to the active filesystem - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_SingleFileRestore.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_SingleFileRestore.json */ async function snapshotsSingleFileRestore() { const subscriptionId = @@ -33,7 +33,7 @@ async function snapshotsSingleFileRestore() { const volumeName = "volume1"; const snapshotName = "snapshot1"; const body: SnapshotRestoreFiles = { - filePaths: ["/dir1/customer1.db", "/dir1/customer2.db"] + filePaths: ["/dir1/customer1.db", "/dir1/customer2.db"], }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function snapshotsSingleFileRestore() { poolName, volumeName, snapshotName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsUpdateSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsUpdateSample.ts index 413c1e71fdf8..cda8036eac64 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/snapshotsUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/snapshotsUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch a snapshot * * @summary Patch a snapshot - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Snapshots_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Snapshots_Update.json */ async function snapshotsUpdate() { const subscriptionId = @@ -38,7 +38,7 @@ async function snapshotsUpdate() { poolName, volumeName, snapshotName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesCreateSample.ts similarity index 95% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesCreateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesCreateSample.ts index bf067d8f406f..38e28ef35576 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates a subvolume in the path or clones the subvolume mentioned in the parentPath * * @summary Creates a subvolume in the path or clones the subvolume mentioned in the parentPath - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Create.json */ async function subvolumesCreate() { const subscriptionId = @@ -38,7 +38,7 @@ async function subvolumesCreate() { poolName, volumeName, subvolumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesDeleteSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesDeleteSample.ts index 7dd5570262e8..b05b7aad7892 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete subvolume * * @summary Delete subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Delete.json */ async function subvolumesDelete() { const subscriptionId = @@ -36,7 +36,7 @@ async function subvolumesDelete() { accountName, poolName, volumeName, - subvolumeName + subvolumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesGetMetadataSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetMetadataSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesGetMetadataSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetMetadataSample.ts index abadb46aa9c0..ea888f2ca111 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesGetMetadataSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetMetadataSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified subvolume * * @summary Get details of the specified subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Metadata.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Metadata.json */ async function subvolumesMetadata() { const subscriptionId = @@ -36,7 +36,7 @@ async function subvolumesMetadata() { accountName, poolName, volumeName, - subvolumeName + subvolumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetSample.ts index a1c2a6cd64d5..5c524fb51a04 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns the path associated with the subvolumeName provided * * @summary Returns the path associated with the subvolumeName provided - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Get.json */ async function subvolumesGet() { const subscriptionId = @@ -36,7 +36,7 @@ async function subvolumesGet() { accountName, poolName, volumeName, - subvolumeName + subvolumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesListByVolumeSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesListByVolumeSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesListByVolumeSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesListByVolumeSample.ts index bac5cfd473dd..bd5d44c32e37 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesListByVolumeSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesListByVolumeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns a list of the subvolumes in the volume * * @summary Returns a list of the subvolumes in the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_List.json */ async function subvolumesList() { const subscriptionId = @@ -35,7 +35,7 @@ async function subvolumesList() { resourceGroupName, accountName, poolName, - volumeName + volumeName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesUpdateSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesUpdateSample.ts index b1ffe151c805..9d2bcb771801 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/subvolumesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/subvolumesUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { SubvolumePatchRequest, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Patch a subvolume * * @summary Patch a subvolume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Subvolumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Subvolumes_Update.json */ async function subvolumesUpdate() { const subscriptionId = @@ -41,7 +41,7 @@ async function subvolumesUpdate() { poolName, volumeName, subvolumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsCreateSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsCreateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsCreateSample.ts index 0f13621808dc..418ad5aa3844 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create a volume group along with specified volumes * * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_Oracle.json */ async function volumeGroupsCreateOracle() { const subscriptionId = @@ -31,7 +31,7 @@ async function volumeGroupsCreateOracle() { groupMetaData: { applicationIdentifier: "OR2", applicationType: "ORACLE", - groupDescription: "Volume group" + groupDescription: "Volume group", }, location: "westus", volumes: [ @@ -56,9 +56,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -67,7 +67,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data1", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data2", @@ -90,9 +90,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -101,7 +101,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data2", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data3", @@ -124,9 +124,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -135,7 +135,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data3", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data4", @@ -158,9 +158,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -169,7 +169,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data4", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data5", @@ -192,9 +192,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -203,7 +203,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data5", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data6", @@ -226,9 +226,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -237,7 +237,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data6", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data7", @@ -260,9 +260,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -271,7 +271,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data7", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-data8", @@ -294,9 +294,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -305,7 +305,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-data8", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-log", @@ -328,9 +328,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -339,7 +339,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-log", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-log-mirror", @@ -362,9 +362,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -373,7 +373,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-log-mirror", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-binary", @@ -396,9 +396,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -407,7 +407,7 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-binary", - zones: ["1"] + zones: ["1"], }, { name: "test-ora-backup", @@ -430,9 +430,9 @@ async function volumeGroupsCreateOracle() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], serviceLevel: "Premium", @@ -441,9 +441,9 @@ async function volumeGroupsCreateOracle() { throughputMibps: 10, usageThreshold: 107374182400, volumeSpecName: "ora-backup", - zones: ["1"] - } - ] + zones: ["1"], + }, + ], }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -451,7 +451,7 @@ async function volumeGroupsCreateOracle() { resourceGroupName, accountName, volumeGroupName, - body + body, ); console.log(result); } @@ -460,7 +460,7 @@ async function volumeGroupsCreateOracle() { * This sample demonstrates how to Create a volume group along with specified volumes * * @summary Create a volume group along with specified volumes - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Create_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Create_SapHana.json */ async function volumeGroupsCreateSapHana() { const subscriptionId = @@ -473,7 +473,7 @@ async function volumeGroupsCreateSapHana() { groupMetaData: { applicationIdentifier: "SH9", applicationType: "SAP-HANA", - groupDescription: "Volume group" + groupDescription: "Volume group", }, location: "westus", volumes: [ @@ -498,9 +498,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -510,7 +510,7 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "data" + volumeSpecName: "data", }, { name: "test-log-mnt00001", @@ -533,9 +533,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -545,7 +545,7 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "log" + volumeSpecName: "log", }, { name: "test-shared", @@ -568,9 +568,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -580,7 +580,7 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "shared" + volumeSpecName: "shared", }, { name: "test-data-backup", @@ -603,9 +603,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -615,7 +615,7 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "data-backup" + volumeSpecName: "data-backup", }, { name: "test-log-backup", @@ -638,9 +638,9 @@ async function volumeGroupsCreateSapHana() { nfsv41: true, ruleIndex: 1, unixReadOnly: true, - unixReadWrite: true - } - ] + unixReadWrite: true, + }, + ], }, protocolTypes: ["NFSv4.1"], proximityPlacementGroup: @@ -650,9 +650,9 @@ async function volumeGroupsCreateSapHana() { "/subscriptions/d633cc2e-722b-4ae1-b636-bbd9e4c60ed9/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", throughputMibps: 10, usageThreshold: 107374182400, - volumeSpecName: "log-backup" - } - ] + volumeSpecName: "log-backup", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -660,7 +660,7 @@ async function volumeGroupsCreateSapHana() { resourceGroupName, accountName, volumeGroupName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsDeleteSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsDeleteSample.ts index e01302d73dcd..bfd01348e971 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified volume group only if there are no volumes under volume group. * * @summary Delete the specified volume group only if there are no volumes under volume group. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Delete.json */ async function volumeGroupsDelete() { const subscriptionId = @@ -32,7 +32,7 @@ async function volumeGroupsDelete() { const result = await client.volumeGroups.beginDeleteAndWait( resourceGroupName, accountName, - volumeGroupName + volumeGroupName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsGetSample.ts similarity index 91% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsGetSample.ts index dc28f5ca1baf..54fc72bd6985 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified volume group * * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_Oracle.json */ async function volumeGroupsGetOracle() { const subscriptionId = @@ -32,7 +32,7 @@ async function volumeGroupsGetOracle() { const result = await client.volumeGroups.get( resourceGroupName, accountName, - volumeGroupName + volumeGroupName, ); console.log(result); } @@ -41,7 +41,7 @@ async function volumeGroupsGetOracle() { * This sample demonstrates how to Get details of the specified volume group * * @summary Get details of the specified volume group - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_Get_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_Get_SapHana.json */ async function volumeGroupsGetSapHana() { const subscriptionId = @@ -55,7 +55,7 @@ async function volumeGroupsGetSapHana() { const result = await client.volumeGroups.get( resourceGroupName, accountName, - volumeGroupName + volumeGroupName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsListByNetAppAccountSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsListByNetAppAccountSample.ts similarity index 91% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsListByNetAppAccountSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsListByNetAppAccountSample.ts index c95287efcf06..ae79592660c1 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeGroupsListByNetAppAccountSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeGroupsListByNetAppAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all volume groups for given account * * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_Oracle.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_Oracle.json */ async function volumeGroupsListOracle() { const subscriptionId = @@ -31,7 +31,7 @@ async function volumeGroupsListOracle() { const resArray = new Array(); for await (let item of client.volumeGroups.listByNetAppAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } @@ -42,7 +42,7 @@ async function volumeGroupsListOracle() { * This sample demonstrates how to List all volume groups for given account * * @summary List all volume groups for given account - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeGroups_List_SapHana.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeGroups_List_SapHana.json */ async function volumeGroupsListSapHana() { const subscriptionId = @@ -55,7 +55,7 @@ async function volumeGroupsListSapHana() { const resArray = new Array(); for await (let item of client.volumeGroups.listByNetAppAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesCreateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesCreateSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesCreateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesCreateSample.ts index 2635560f8c1f..ebf4971bd014 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesCreateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create the specified quota rule within the given volume * * @summary Create the specified quota rule within the given volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Create.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Create.json */ async function volumeQuotaRulesCreate() { const subscriptionId = @@ -33,7 +33,7 @@ async function volumeQuotaRulesCreate() { location: "westus", quotaSizeInKiBs: 100005, quotaTarget: "1821", - quotaType: "IndividualUserQuota" + quotaType: "IndividualUserQuota", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function volumeQuotaRulesCreate() { poolName, volumeName, volumeQuotaRuleName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesDeleteSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesDeleteSample.ts index 3bd1d48a0aba..8df9f5b6705a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete quota rule * * @summary Delete quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Delete.json */ async function volumeQuotaRulesDelete() { const subscriptionId = @@ -36,7 +36,7 @@ async function volumeQuotaRulesDelete() { accountName, poolName, volumeName, - volumeQuotaRuleName + volumeQuotaRuleName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesGetSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesGetSample.ts index ae6fa041a5d7..d51f2cbe651d 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get details of the specified quota rule * * @summary Get details of the specified quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Get.json */ async function volumeQuotaRulesGet() { const subscriptionId = @@ -36,7 +36,7 @@ async function volumeQuotaRulesGet() { accountName, poolName, volumeName, - volumeQuotaRuleName + volumeQuotaRuleName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesListByVolumeSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesListByVolumeSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesListByVolumeSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesListByVolumeSample.ts index 633491b0db13..3c0e2c1a473b 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesListByVolumeSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesListByVolumeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all quota rules associated with the volume * * @summary List all quota rules associated with the volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_List.json */ async function volumeQuotaRulesList() { const subscriptionId = @@ -35,7 +35,7 @@ async function volumeQuotaRulesList() { resourceGroupName, accountName, poolName, - volumeName + volumeName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesUpdateSample.ts similarity index 92% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesUpdateSample.ts index d73d0af1c03b..556ec699bf30 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumeQuotaRulesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumeQuotaRulesUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VolumeQuotaRulePatch, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Patch a quota rule * * @summary Patch a quota rule - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/VolumeQuotaRules_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/VolumeQuotaRules_Update.json */ async function volumeQuotaRulesUpdate() { const subscriptionId = @@ -41,7 +41,7 @@ async function volumeQuotaRulesUpdate() { poolName, volumeName, volumeQuotaRuleName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesAuthorizeReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesAuthorizeReplicationSample.ts similarity index 91% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesAuthorizeReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesAuthorizeReplicationSample.ts index 34f5e7d6773b..6278a643d49e 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesAuthorizeReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesAuthorizeReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Authorize the replication connection on the source volume * * @summary Authorize the replication connection on the source volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_AuthorizeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_AuthorizeReplication.json */ async function volumesAuthorizeReplication() { const subscriptionId = @@ -30,7 +30,7 @@ async function volumesAuthorizeReplication() { const volumeName = "volume1"; const body: AuthorizeRequest = { remoteVolumeResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1" + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRemoteRG/providers/Microsoft.NetApp/netAppAccounts/remoteAccount1/capacityPools/remotePool1/volumes/remoteVolume1", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function volumesAuthorizeReplication() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesBreakFileLocksSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakFileLocksSample.ts similarity index 90% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesBreakFileLocksSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakFileLocksSample.ts index 4968b24e20c5..a0caa568c761 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesBreakFileLocksSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakFileLocksSample.ts @@ -11,7 +11,7 @@ import { BreakFileLocksRequest, VolumesBreakFileLocksOptionalParams, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Break all the file locks on a volume * * @summary Break all the file locks on a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakFileLocks.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakFileLocks.json */ async function volumesBreakFileLocks() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesBreakFileLocks() { const volumeName = "volume1"; const body: BreakFileLocksRequest = { clientIp: "101.102.103.104", - confirmRunningDisruptiveOperation: true + confirmRunningDisruptiveOperation: true, }; const options: VolumesBreakFileLocksOptionalParams = { body }; const credential = new DefaultAzureCredential(); @@ -44,7 +44,7 @@ async function volumesBreakFileLocks() { accountName, poolName, volumeName, - options + options, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesBreakReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakReplicationSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesBreakReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakReplicationSample.ts index 8e71b4fb4187..64c5fdbfcebf 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesBreakReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesBreakReplicationSample.ts @@ -11,7 +11,7 @@ import { BreakReplicationRequest, VolumesBreakReplicationOptionalParams, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Break the replication connection on the destination volume * * @summary Break the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_BreakReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_BreakReplication.json */ async function volumesBreakReplication() { const subscriptionId = @@ -41,7 +41,7 @@ async function volumesBreakReplication() { accountName, poolName, volumeName, - options + options, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesCreateOrUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesCreateOrUpdateSample.ts similarity index 89% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesCreateOrUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesCreateOrUpdateSample.ts index b3eb6943dbbf..a9a34de126df 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesCreateOrUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update the specified volume within the capacity pool * * @summary Create or update the specified volume within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_CreateOrUpdate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_CreateOrUpdate.json */ async function volumesCreateOrUpdate() { const subscriptionId = @@ -30,13 +30,11 @@ async function volumesCreateOrUpdate() { const volumeName = "volume1"; const body: Volume = { creationToken: "my-unique-file-path", - encryptionKeySource: "Microsoft.KeyVault", location: "eastus", serviceLevel: "Premium", subnetId: "/subscriptions/9760acf5-4638-11e7-9bdb-020073ca7778/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3", - throughputMibps: 128, - usageThreshold: 107374182400 + usageThreshold: 107374182400, }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -45,7 +43,7 @@ async function volumesCreateOrUpdate() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesDeleteReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteReplicationSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesDeleteReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteReplicationSample.ts index 96063c59f5fd..a4d66f403658 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesDeleteReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the replication connection on the destination volume, and send release to the source replication * * @summary Delete the replication connection on the destination volume, and send release to the source replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_DeleteReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_DeleteReplication.json */ async function volumesDeleteReplication() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesDeleteReplication() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesDeleteSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesDeleteSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteSample.ts index 75a4bce9ad86..f66ad69f0fc2 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesDeleteSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete the specified volume * * @summary Delete the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Delete.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Delete.json */ async function volumesDelete() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesDelete() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesFinalizeRelocationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesFinalizeRelocationSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesFinalizeRelocationSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesFinalizeRelocationSample.ts index 084aad858a59..f5a6a2a32128 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesFinalizeRelocationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesFinalizeRelocationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Finalizes the relocation of the volume and cleans up the old volume. * * @summary Finalizes the relocation of the volume and cleans up the old volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_FinalizeRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_FinalizeRelocation.json */ async function volumesFinalizeRelocation() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesFinalizeRelocation() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesGetSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesGetSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesGetSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesGetSample.ts index 9cd849ab90d0..148073a4ea21 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesGetSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the details of the specified volume * * @summary Get the details of the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Get.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Get.json */ async function volumesGet() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesGet() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts index 5bc7dd0c12f5..2c3af3ef5a2a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListGetGroupIdListForLdapUserSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GetGroupIdListForLdapUserRequest, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Returns the list of group Ids for a specific LDAP User * * @summary Returns the list of group Ids for a specific LDAP User - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/GroupIdListForLDAPUser.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/GroupIdListForLDAPUser.json */ async function getGroupIdListForUser() { const subscriptionId = @@ -39,7 +39,7 @@ async function getGroupIdListForUser() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListReplicationsSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListReplicationsSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListReplicationsSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListReplicationsSample.ts index 25b4ea9e10d7..8d4ffdb22d84 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListReplicationsSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListReplicationsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all replications for a specified volume * * @summary List all replications for a specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ListReplications.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ListReplications.json */ async function volumesListReplications() { const subscriptionId = @@ -35,7 +35,7 @@ async function volumesListReplications() { resourceGroupName, accountName, poolName, - volumeName + volumeName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListSample.ts index 1e6320a9ad05..1897922b20bd 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesListSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all volumes within the capacity pool * * @summary List all volumes within the capacity pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_List.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_List.json */ async function volumesList() { const subscriptionId = @@ -33,7 +33,7 @@ async function volumesList() { for await (let item of client.volumes.list( resourceGroupName, accountName, - poolName + poolName, )) { resArray.push(item); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesPoolChangeSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPoolChangeSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesPoolChangeSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPoolChangeSample.ts index e9bcd70a6317..27f44c2d5091 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesPoolChangeSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPoolChangeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Moves volume to another pool * * @summary Moves volume to another pool - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PoolChange.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PoolChange.json */ async function volumesAuthorizeReplication() { const subscriptionId = @@ -30,7 +30,7 @@ async function volumesAuthorizeReplication() { const volumeName = "volume1"; const body: PoolChangeRequest = { newPoolResourceId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1" + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function volumesAuthorizeReplication() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesPopulateAvailabilityZoneSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPopulateAvailabilityZoneSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesPopulateAvailabilityZoneSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPopulateAvailabilityZoneSample.ts index c363a99c4af3..693dd0710a7d 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesPopulateAvailabilityZoneSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesPopulateAvailabilityZoneSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to This operation will populate availability zone information for a volume * * @summary This operation will populate availability zone information for a volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_PopulateAvailabilityZones.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_PopulateAvailabilityZones.json */ async function volumesPopulateAvailabilityZones() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesPopulateAvailabilityZones() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReInitializeReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReInitializeReplicationSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReInitializeReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReInitializeReplicationSample.ts index 2b8e869cc66a..212d4a1b7728 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReInitializeReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReInitializeReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Re-Initializes the replication connection on the destination volume * * @summary Re-Initializes the replication connection on the destination volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReInitializeReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReInitializeReplication.json */ async function volumesReInitializeReplication() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesReInitializeReplication() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReestablishReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReestablishReplicationSample.ts similarity index 90% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReestablishReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReestablishReplicationSample.ts index 74f3243493aa..afdd687cbe2c 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReestablishReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReestablishReplicationSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ReestablishReplicationRequest, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots * * @summary Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or policy-based snapshots - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReestablishReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReestablishReplication.json */ async function volumesReestablishReplication() { const subscriptionId = @@ -33,7 +33,7 @@ async function volumesReestablishReplication() { const volumeName = "volume1"; const body: ReestablishReplicationRequest = { sourceVolumeId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1" + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/mySourceRG/providers/Microsoft.NetApp/netAppAccounts/sourceAccount1/capacityPools/sourcePool1/volumes/sourceVolume1", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -42,7 +42,7 @@ async function volumesReestablishReplication() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRelocateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRelocateSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRelocateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRelocateSample.ts index 3c278a1211af..8ee2bb638298 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRelocateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRelocateSample.ts @@ -11,7 +11,7 @@ import { RelocateVolumeRequest, VolumesRelocateOptionalParams, - NetAppManagementClient + NetAppManagementClient, } from "@azure/arm-netapp"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Relocates volume to a new stamp * * @summary Relocates volume to a new stamp - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Relocate.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Relocate.json */ async function volumesRelocate() { const subscriptionId = @@ -41,7 +41,7 @@ async function volumesRelocate() { accountName, poolName, volumeName, - options + options, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReplicationStatusSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReplicationStatusSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReplicationStatusSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReplicationStatusSample.ts index 703a80c6a2cc..841b6e9cb282 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesReplicationStatusSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesReplicationStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the status of the replication * * @summary Get the status of the replication - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ReplicationStatus.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ReplicationStatus.json */ async function volumesReplicationStatus() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesReplicationStatus() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesResetCifsPasswordSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResetCifsPasswordSample.ts similarity index 93% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesResetCifsPasswordSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResetCifsPasswordSample.ts index bfdd4ad6ab8a..12a35039d3f2 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesResetCifsPasswordSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResetCifsPasswordSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Reset cifs password from volume * * @summary Reset cifs password from volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResetCifsPassword.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResetCifsPassword.json */ async function volumesResetCifsPassword() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesResetCifsPassword() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesResyncReplicationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResyncReplicationSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesResyncReplicationSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResyncReplicationSample.ts index 819e72b259cc..bbefe158f37e 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesResyncReplicationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesResyncReplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. * * @summary Resync the connection on the destination volume. If the operation is ran on the source volume it will reverse-resync the connection and sync from destination to source. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_ResyncReplication.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_ResyncReplication.json */ async function volumesResyncReplication() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesResyncReplication() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRevertRelocationSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertRelocationSample.ts similarity index 94% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRevertRelocationSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertRelocationSample.ts index 971c433827cb..b88b8b4b77ba 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRevertRelocationSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertRelocationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. * * @summary Reverts the volume relocation process, cleans up the new volume and starts using the former-existing volume. - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_RevertRelocation.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_RevertRelocation.json */ async function volumesRevertRelocation() { const subscriptionId = @@ -34,7 +34,7 @@ async function volumesRevertRelocation() { resourceGroupName, accountName, poolName, - volumeName + volumeName, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRevertSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertSample.ts similarity index 91% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRevertSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertSample.ts index be658f3923d5..bf4f444ee1fa 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesRevertSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesRevertSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Revert a volume to the snapshot specified in the body * * @summary Revert a volume to the snapshot specified in the body - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Revert.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Revert.json */ async function volumesRevert() { const subscriptionId = @@ -30,7 +30,7 @@ async function volumesRevert() { const volumeName = "volume1"; const body: VolumeRevert = { snapshotId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1" + "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1", }; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function volumesRevert() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesUpdateSample.ts b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesUpdateSample.ts similarity index 75% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesUpdateSample.ts rename to sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesUpdateSample.ts index 1b1facca9524..9f6d327bb77a 100644 --- a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/src/volumesUpdateSample.ts +++ b/sdk/netapp/arm-netapp/samples/v20/typescript/src/volumesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Patch the specified volume * * @summary Patch the specified volume - * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2023-05-01-preview/examples/Volumes_Update.json + * x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/Volumes_Update.json */ async function volumesUpdate() { const subscriptionId = @@ -28,17 +28,7 @@ async function volumesUpdate() { const accountName = "account1"; const poolName = "pool1"; const volumeName = "volume1"; - const body: VolumePatch = { - dataProtection: { - backup: { - backupEnabled: true, - backupVaultId: - "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRP/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1", - policyEnforced: false - } - }, - location: "eastus" - }; + const body: VolumePatch = {}; const credential = new DefaultAzureCredential(); const client = new NetAppManagementClient(credential, subscriptionId); const result = await client.volumes.beginUpdateAndWait( @@ -46,7 +36,7 @@ async function volumesUpdate() { accountName, poolName, volumeName, - body + body, ); console.log(result); } diff --git a/sdk/netapp/arm-netapp/samples/v20-beta/typescript/tsconfig.json b/sdk/netapp/arm-netapp/samples/v20/typescript/tsconfig.json similarity index 100% rename from sdk/netapp/arm-netapp/samples/v20-beta/typescript/tsconfig.json rename to sdk/netapp/arm-netapp/samples/v20/typescript/tsconfig.json diff --git a/sdk/netapp/arm-netapp/src/lroImpl.ts b/sdk/netapp/arm-netapp/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/netapp/arm-netapp/src/lroImpl.ts +++ b/sdk/netapp/arm-netapp/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/netapp/arm-netapp/src/models/index.ts b/sdk/netapp/arm-netapp/src/models/index.ts index a4e5526d38de..24d5010dd415 100644 --- a/sdk/netapp/arm-netapp/src/models/index.ts +++ b/sdk/netapp/arm-netapp/src/models/index.ts @@ -98,6 +98,55 @@ export interface LogSpecification { displayName?: string; } +/** 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; +} + /** Resource name availability request content. */ export interface ResourceNameAvailabilityRequest { /** Resource name to verify. */ @@ -182,14 +231,6 @@ export interface SystemData { lastModifiedAt?: Date; } -/** List of regionInfo resources */ -export interface RegionInfosList { - /** A list of regionInfo resources */ - value?: RegionInfoResource[]; - /** URL to get the next set of results. */ - nextLink?: string; -} - /** Provides region specific information. */ export interface RegionInfo { /** Provides storage to network proximity information in the region. */ @@ -205,55 +246,6 @@ export interface RegionInfoAvailabilityZoneMappingsItem { isAvailable?: boolean; } -/** 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; -} - /** Network sibling set query. */ export interface QueryNetworkSiblingSetRequest { /** Network Sibling Set ID for a group of volumes sharing networking resources in a subnet. */ @@ -300,7 +292,7 @@ export interface UpdateNetworkSiblingSetRequest { subnetId: string; /** Network sibling set state Id identifying the current state of the sibling set. */ networkSiblingSetStateId: string; - /** Network features available to the volume */ + /** Network features available to the volume, some such */ networkFeatures: NetworkFeatures; } @@ -490,35 +482,6 @@ export interface NetAppAccountPatch { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly disableShowmount?: boolean; - /** Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes. */ - nfsV4IDDomain?: string; - /** - * This will have true value only if account is Multiple AD enabled. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isMultiAdEnabled?: boolean; -} - -/** An error response from the service. */ -export interface CloudError { - /** Cloud error body. */ - error?: CloudErrorBody; -} - -/** An error response from the service. */ -export interface CloudErrorBody { - /** An identifier for the error. Codes are invariant and are intended to be consumed programmatically. */ - code?: string; - /** A message describing the error, intended to be suitable for display in a user interface. */ - message?: string; -} - -/** Encryption migration request */ -export interface EncryptionMigrationRequest { - /** Identifier for the virtual network */ - virtualNetworkId: string; - /** Identifier of the private endpoint to reach the Azure Key Vault */ - privateEndpointId: string; } /** List of capacity pool resources */ @@ -626,8 +589,6 @@ export interface MountTargetProperties { /** DataProtection type volumes include an object containing details of the replication */ export interface VolumePropertiesDataProtection { - /** Backup Properties */ - backup?: VolumeBackupProperties; /** Replication properties */ replication?: ReplicationObject; /** Snapshot properties. */ @@ -636,18 +597,6 @@ export interface VolumePropertiesDataProtection { volumeRelocation?: VolumeRelocationProperties; } -/** Volume Backup Properties */ -export interface VolumeBackupProperties { - /** Backup Policy Resource ID */ - backupPolicyId?: string; - /** Policy Enforced */ - policyEnforced?: boolean; - /** Backup Enabled */ - backupEnabled?: boolean; - /** Backup Vault Resource ID */ - backupVaultId?: string; -} - /** Replication properties */ export interface ReplicationObject { /** @@ -659,24 +608,12 @@ export interface ReplicationObject { endpointType?: EndpointType; /** Schedule */ replicationSchedule?: ReplicationSchedule; - /** The resource ID of the remote volume. Required for cross region and cross zone replication */ + /** The resource ID of the remote volume. */ remoteVolumeResourceId: string; - /** The full path to a volume that is to be migrated into ANF. Required for Migration volumes */ - remotePath?: RemotePath; /** The remote region for the other end of the Volume Replication. */ remoteVolumeRegion?: string; } -/** The full path to a volume that is to be migrated into ANF. Required for Migration volumes */ -export interface RemotePath { - /** The Path to a Ontap Host */ - externalHostName: string; - /** The name of a server on the Ontap Host */ - serverName: string; - /** The name of a volume on the server */ - volumeName: string; -} - /** Volume Snapshot Properties */ export interface VolumeSnapshotProperties { /** Snapshot Policy ResourceId */ @@ -768,8 +705,6 @@ export interface VolumePatchPropertiesExportPolicy { /** DataProtection type volumes include an object containing details of the replication */ export interface VolumePatchPropertiesDataProtection { - /** Backup Properties */ - backup?: VolumeBackupProperties; /** Snapshot properties. */ snapshot?: VolumeSnapshotProperties; } @@ -976,55 +911,6 @@ export interface SnapshotPolicyVolumeList { value?: Volume[]; } -/** Backup status */ -export interface BackupStatus { - /** - * Backup health status - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly healthy?: boolean; - /** - * Status of the backup mirror relationship - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly relationshipStatus?: RelationshipStatus; - /** - * The status of the backup - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly mirrorState?: MirrorState; - /** - * Reason for the unhealthy backup relationship - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly unhealthyReason?: string; - /** - * Displays error message if the backup is in an error state - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorMessage?: string; - /** - * Displays the last transfer size - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastTransferSize?: number; - /** - * Displays the last transfer type - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastTransferType?: string; - /** - * Displays the total bytes transferred - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly totalTransferBytes?: number; - /** - * Displays the total number of bytes transferred for the ongoing operation - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly transferProgressBytes?: number; -} - /** Restore status */ export interface RestoreStatus { /** @@ -1059,20 +945,6 @@ export interface RestoreStatus { readonly totalTransferBytes?: number; } -/** List of Backups */ -export interface BackupsList { - /** A list of Backups */ - value?: Backup[]; - /** URL to get the next set of results. */ - nextLink?: string; -} - -/** Backup patch */ -export interface BackupPatch { - /** Label for backup */ - label?: string; -} - /** List of Backup Policies */ export interface BackupPoliciesList { /** A list of backup policies */ @@ -1312,7 +1184,7 @@ export interface VolumeGroupVolumeProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly mountTargets?: MountTargetProperties[]; - /** What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. For creating clone volume, set type to ShortTermClone */ + /** What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection */ volumeType?: string; /** DataProtection type volumes include an object containing details of the replication */ dataProtection?: VolumePropertiesDataProtection; @@ -1423,11 +1295,6 @@ export interface VolumeGroupVolumeProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly originatingResourceId?: string; - /** - * Space shared by short term clone volume with parent volume in bytes. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly inheritedSizeInBytes?: number; } /** List of Subvolumes */ @@ -1485,36 +1352,6 @@ export interface SubvolumeModel { provisioningState?: string; } -/** List of Backup Vaults */ -export interface BackupVaultsList { - /** A list of Backup Vaults */ - value?: BackupVault[]; - /** URL to get the next set of results. */ - nextLink?: string; -} - -/** Backup Vault information */ -export interface BackupVaultPatch { - /** Resource tags */ - tags?: { [propertyName: string]: string }; -} - -/** Restore payload for Single File Backup Restore */ -export interface BackupRestoreFiles { - /** List of files to be restored */ - fileList: string[]; - /** Destination folder where the files will be restored. The path name should start with a forward slash. If it is omitted from request then restore is done at the root folder of the destination volume by default */ - restoreFilePath?: string; - /** Resource Id of the destination volume on which the files need to be restored */ - destinationVolumeId: string; -} - -/** Migrate Backups Request */ -export interface BackupsMigrationRequest { - /** The ResourceId of the Backup Vault */ - backupVaultId: string; -} - /** Identity for the resource. */ export interface ResourceIdentity { /** @@ -1606,6 +1443,20 @@ export interface SnapshotPolicyDetails { readonly provisioningState?: string; } +/** An error response from the service. */ +export interface CloudError { + /** Cloud error body. */ + error?: CloudErrorBody; +} + +/** An error response from the service. */ +export interface CloudErrorBody { + /** An identifier for the error. Codes are invariant and are intended to be consumed programmatically. */ + code?: string; + /** A message describing the error, intended to be suitable for display in a user interface. */ + message?: string; +} + /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ export interface ProxyResource extends Resource {} @@ -1631,14 +1482,6 @@ export interface SubscriptionQuotaItem extends ProxyResource { readonly default?: number; } -/** Information regarding regionInfo Item. */ -export interface RegionInfoResource extends ProxyResource { - /** Provides storage to network proximity information in the region. */ - storageToNetworkProximity?: RegionStorageToNetworkProximity; - /** Provides logical availability zone mappings for the subscription for a region. */ - availabilityZoneMappings?: RegionInfoAvailabilityZoneMappingsItem[]; -} - /** Snapshot of a Volume */ export interface Snapshot extends ProxyResource { /** Resource location */ @@ -1660,53 +1503,6 @@ export interface Snapshot extends ProxyResource { readonly provisioningState?: string; } -/** Backup under a Backup Vault */ -export interface Backup extends ProxyResource { - /** - * UUID v4 used to identify the Backup - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly backupId?: string; - /** - * The creation date of the backup - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly creationDate?: Date; - /** - * Azure lifecycle management - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** - * Size of backup in bytes - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly size?: number; - /** Label for backup */ - label?: string; - /** - * Type of backup Manual or Scheduled - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly backupType?: BackupType; - /** - * Failure reason - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly failureReason?: string; - /** ResourceId used to identify the Volume */ - volumeResourceId: string; - /** Manual backup an already existing snapshot. This will always be false for scheduled backups and true/false for manual backups */ - useExistingSnapshot?: boolean; - /** The name of the snapshot */ - snapshotName?: string; - /** - * ResourceId used to identify the backup policy - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly backupPolicyResourceId?: string; -} - /** Subvolume Information properties */ export interface SubvolumeInfo extends ProxyResource { /** Path to the subvolume */ @@ -1745,13 +1541,6 @@ export interface NetAppAccount extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly disableShowmount?: boolean; - /** Domain for NFSv4 user ID mapping. This property will be set for all NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes. */ - nfsV4IDDomain?: string; - /** - * This will have true value only if account is Multiple AD enabled. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isMultiAdEnabled?: boolean; } /** Capacity pool resource */ @@ -1852,7 +1641,7 @@ export interface Volume extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly mountTargets?: MountTargetProperties[]; - /** What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection. For creating clone volume, set type to ShortTermClone */ + /** What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection */ volumeType?: string; /** DataProtection type volumes include an object containing details of the replication */ dataProtection?: VolumePropertiesDataProtection; @@ -1963,11 +1752,6 @@ export interface Volume extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly originatingResourceId?: string; - /** - * Space shared by short term clone volume with parent volume in bytes. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly inheritedSizeInBytes?: number; } /** Snapshot policy information */ @@ -2046,25 +1830,11 @@ export interface VolumeQuotaRule extends TrackedResource { quotaTarget?: string; } -/** Backup Vault information */ -export interface BackupVault extends TrackedResource { - /** - * Azure lifecycle management - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; -} - /** Defines headers for NetAppResource_updateNetworkSiblingSet operation. */ export interface NetAppResourceUpdateNetworkSiblingSetHeaders { location?: string; } -/** Defines headers for Accounts_migrateEncryptionKey operation. */ -export interface AccountsMigrateEncryptionKeyHeaders { - location?: string; -} - /** Defines headers for Volumes_populateAvailabilityZone operation. */ export interface VolumesPopulateAvailabilityZoneHeaders { location?: string; @@ -2075,11 +1845,6 @@ export interface VolumesResetCifsPasswordHeaders { location?: string; } -/** Defines headers for Volumes_splitCloneFromParent operation. */ -export interface VolumesSplitCloneFromParentHeaders { - location?: string; -} - /** Defines headers for Volumes_breakFileLocks operation. */ export interface VolumesBreakFileLocksHeaders { location?: string; @@ -2090,50 +1855,10 @@ export interface VolumesListGetGroupIdListForLdapUserHeaders { location?: string; } -/** Defines headers for Backups_update operation. */ -export interface BackupsUpdateHeaders { - location?: string; -} - -/** Defines headers for Backups_delete operation. */ -export interface BackupsDeleteHeaders { - location?: string; -} - -/** Defines headers for AccountBackups_delete operation. */ -export interface AccountBackupsDeleteHeaders { - location?: string; -} - -/** Defines headers for BackupVaults_update operation. */ -export interface BackupVaultsUpdateHeaders { - location?: string; -} - -/** Defines headers for BackupVaults_delete operation. */ -export interface BackupVaultsDeleteHeaders { - location?: string; -} - -/** Defines headers for BackupsUnderBackupVault_restoreFiles operation. */ -export interface BackupsUnderBackupVaultRestoreFilesHeaders { - location?: string; -} - -/** Defines headers for BackupsUnderVolume_migrateBackups operation. */ -export interface BackupsUnderVolumeMigrateBackupsHeaders { - location?: string; -} - -/** Defines headers for BackupsUnderAccount_migrateBackups operation. */ -export interface BackupsUnderAccountMigrateBackupsHeaders { - location?: string; -} - /** Known values of {@link MetricAggregationType} that the service accepts. */ export enum KnownMetricAggregationType { /** Average */ - Average = "Average" + Average = "Average", } /** @@ -2154,7 +1879,7 @@ export enum KnownCheckNameResourceTypes { /** MicrosoftNetAppNetAppAccountsCapacityPoolsVolumes */ MicrosoftNetAppNetAppAccountsCapacityPoolsVolumes = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes", /** MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots */ - MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots" + MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots", } /** @@ -2174,7 +1899,7 @@ export enum KnownInAvailabilityReasonType { /** Invalid */ Invalid = "Invalid", /** AlreadyExists */ - AlreadyExists = "AlreadyExists" + AlreadyExists = "AlreadyExists", } /** @@ -2196,7 +1921,7 @@ export enum KnownCheckQuotaNameResourceTypes { /** MicrosoftNetAppNetAppAccountsCapacityPoolsVolumes */ MicrosoftNetAppNetAppAccountsCapacityPoolsVolumes = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes", /** MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots */ - MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots" + MicrosoftNetAppNetAppAccountsCapacityPoolsVolumesSnapshots = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots", } /** @@ -2220,7 +1945,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -2252,7 +1977,7 @@ export enum KnownRegionStorageToNetworkProximity { /** Standard T2 and AcrossT2 network connectivity. */ T2AndAcrossT2 = "T2AndAcrossT2", /** Standard T1, T2 and AcrossT2 network connectivity. */ - T1AndT2AndAcrossT2 = "T1AndT2AndAcrossT2" + T1AndT2AndAcrossT2 = "T1AndT2AndAcrossT2", } /** @@ -2280,7 +2005,7 @@ export enum KnownNetworkFeatures { /** Updating from Basic to Standard network features. */ BasicStandard = "Basic_Standard", /** Updating from Standard to Basic network features. */ - StandardBasic = "Standard_Basic" + StandardBasic = "Standard_Basic", } /** @@ -2304,7 +2029,7 @@ export enum KnownNetworkSiblingSetProvisioningState { /** Canceled */ Canceled = "Canceled", /** Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -2330,7 +2055,7 @@ export enum KnownActiveDirectoryStatus { /** Error with the Active Directory */ Error = "Error", /** Active Directory Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -2351,7 +2076,7 @@ export enum KnownKeySource { /** Microsoft-managed key encryption */ MicrosoftNetApp = "Microsoft.NetApp", /** Customer-managed key encryption */ - MicrosoftKeyVault = "Microsoft.KeyVault" + MicrosoftKeyVault = "Microsoft.KeyVault", } /** @@ -2375,7 +2100,7 @@ export enum KnownKeyVaultStatus { /** Error with the KeyVault connection */ Error = "Error", /** KeyVault connection Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -2400,7 +2125,7 @@ export enum KnownManagedServiceIdentityType { /** UserAssigned */ UserAssigned = "UserAssigned", /** SystemAssignedUserAssigned */ - SystemAssignedUserAssigned = "SystemAssigned,UserAssigned" + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", } /** @@ -2424,7 +2149,7 @@ export enum KnownServiceLevel { /** Ultra service level */ Ultra = "Ultra", /** Zone redundant storage service level */ - StandardZRS = "StandardZRS" + StandardZRS = "StandardZRS", } /** @@ -2444,7 +2169,7 @@ export enum KnownQosType { /** qos type Auto */ Auto = "Auto", /** qos type Manual */ - Manual = "Manual" + Manual = "Manual", } /** @@ -2462,7 +2187,7 @@ export enum KnownEncryptionType { /** EncryptionType Single, volumes will use single encryption at rest */ Single = "Single", /** EncryptionType Double, volumes will use double encryption at rest */ - Double = "Double" + Double = "Double", } /** @@ -2480,7 +2205,7 @@ export enum KnownChownMode { /** Restricted */ Restricted = "Restricted", /** Unrestricted */ - Unrestricted = "Unrestricted" + Unrestricted = "Unrestricted", } /** @@ -2502,7 +2227,7 @@ export enum KnownVolumeStorageToNetworkProximity { /** Standard T2 storage to network connectivity. */ T2 = "T2", /** Standard AcrossT2 storage to network connectivity. */ - AcrossT2 = "AcrossT2" + AcrossT2 = "AcrossT2", } /** @@ -2522,7 +2247,7 @@ export enum KnownEndpointType { /** Src */ Src = "src", /** Dst */ - Dst = "dst" + Dst = "dst", } /** @@ -2542,7 +2267,7 @@ export enum KnownReplicationSchedule { /** Hourly */ Hourly = "hourly", /** Daily */ - Daily = "daily" + Daily = "daily", } /** @@ -2561,7 +2286,7 @@ export enum KnownSecurityStyle { /** Ntfs */ Ntfs = "ntfs", /** Unix */ - Unix = "unix" + Unix = "unix", } /** @@ -2579,7 +2304,7 @@ export enum KnownSmbAccessBasedEnumeration { /** smbAccessBasedEnumeration share setting is disabled */ Disabled = "Disabled", /** smbAccessBasedEnumeration share setting is enabled */ - Enabled = "Enabled" + Enabled = "Enabled", } /** @@ -2597,7 +2322,7 @@ export enum KnownSmbNonBrowsable { /** smbNonBrowsable share setting is disabled */ Disabled = "Disabled", /** smbNonBrowsable share setting is enabled */ - Enabled = "Enabled" + Enabled = "Enabled", } /** @@ -2615,7 +2340,7 @@ export enum KnownEncryptionKeySource { /** Microsoft-managed key encryption */ MicrosoftNetApp = "Microsoft.NetApp", /** Customer-managed key encryption */ - MicrosoftKeyVault = "Microsoft.KeyVault" + MicrosoftKeyVault = "Microsoft.KeyVault", } /** @@ -2635,7 +2360,7 @@ export enum KnownCoolAccessRetrievalPolicy { /** OnRead */ OnRead = "OnRead", /** Never */ - Never = "Never" + Never = "Never", } /** @@ -2654,7 +2379,7 @@ export enum KnownFileAccessLogs { /** fileAccessLogs are enabled */ Enabled = "Enabled", /** fileAccessLogs are not enabled */ - Disabled = "Disabled" + Disabled = "Disabled", } /** @@ -2672,7 +2397,7 @@ export enum KnownAvsDataStore { /** avsDataStore is enabled */ Enabled = "Enabled", /** avsDataStore is disabled */ - Disabled = "Disabled" + Disabled = "Disabled", } /** @@ -2690,7 +2415,7 @@ export enum KnownEnableSubvolumes { /** subvolumes are enabled */ Enabled = "Enabled", /** subvolumes are not enabled */ - Disabled = "Disabled" + Disabled = "Disabled", } /** @@ -2708,7 +2433,11 @@ export enum KnownRelationshipStatus { /** Idle */ Idle = "Idle", /** Transferring */ - Transferring = "Transferring" + Transferring = "Transferring", + /** Failed */ + Failed = "Failed", + /** Unknown */ + Unknown = "Unknown", } /** @@ -2717,7 +2446,9 @@ export enum KnownRelationshipStatus { * this enum contains the known values that the service supports. * ### Known values supported by the service * **Idle** \ - * **Transferring** + * **Transferring** \ + * **Failed** \ + * **Unknown** */ export type RelationshipStatus = string; @@ -2728,7 +2459,7 @@ export enum KnownMirrorState { /** Mirrored */ Mirrored = "Mirrored", /** Broken */ - Broken = "Broken" + Broken = "Broken", } /** @@ -2742,24 +2473,6 @@ export enum KnownMirrorState { */ export type MirrorState = string; -/** Known values of {@link BackupType} that the service accepts. */ -export enum KnownBackupType { - /** Manual backup */ - Manual = "Manual", - /** Scheduled backup */ - Scheduled = "Scheduled" -} - -/** - * Defines values for BackupType. \ - * {@link KnownBackupType} can be used interchangeably with BackupType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Manual**: Manual backup \ - * **Scheduled**: Scheduled backup - */ -export type BackupType = string; - /** Known values of {@link Type} that the service accepts. */ export enum KnownType { /** Default user quota */ @@ -2769,7 +2482,7 @@ export enum KnownType { /** Individual user quota */ IndividualUserQuota = "IndividualUserQuota", /** Individual group quota */ - IndividualGroupQuota = "IndividualGroupQuota" + IndividualGroupQuota = "IndividualGroupQuota", } /** @@ -2789,7 +2502,7 @@ export enum KnownApplicationType { /** SAPHana */ SAPHana = "SAP-HANA", /** Oracle */ - Oracle = "ORACLE" + Oracle = "ORACLE", } /** @@ -2823,21 +2536,24 @@ export interface NetAppResourceCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the checkNameAvailability operation. */ -export type NetAppResourceCheckNameAvailabilityResponse = CheckAvailabilityResponse; +export type NetAppResourceCheckNameAvailabilityResponse = + CheckAvailabilityResponse; /** Optional parameters. */ export interface NetAppResourceCheckFilePathAvailabilityOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the checkFilePathAvailability operation. */ -export type NetAppResourceCheckFilePathAvailabilityResponse = CheckAvailabilityResponse; +export type NetAppResourceCheckFilePathAvailabilityResponse = + CheckAvailabilityResponse; /** Optional parameters. */ export interface NetAppResourceCheckQuotaAvailabilityOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the checkQuotaAvailability operation. */ -export type NetAppResourceCheckQuotaAvailabilityResponse = CheckAvailabilityResponse; +export type NetAppResourceCheckQuotaAvailabilityResponse = + CheckAvailabilityResponse; /** Optional parameters. */ export interface NetAppResourceQueryRegionInfoOptionalParams @@ -2879,27 +2595,6 @@ export interface NetAppResourceQuotaLimitsGetOptionalParams /** Contains response data for the get operation. */ export type NetAppResourceQuotaLimitsGetResponse = SubscriptionQuotaItem; -/** Optional parameters. */ -export interface NetAppResourceRegionInfosListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type NetAppResourceRegionInfosListResponse = RegionInfosList; - -/** Optional parameters. */ -export interface NetAppResourceRegionInfosGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type NetAppResourceRegionInfosGetResponse = RegionInfoResource; - -/** Optional parameters. */ -export interface NetAppResourceRegionInfosListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type NetAppResourceRegionInfosListNextResponse = RegionInfosList; - /** Optional parameters. */ export interface AccountsListBySubscriptionOptionalParams extends coreClient.OperationOptions {} @@ -2963,20 +2658,6 @@ export interface AccountsRenewCredentialsOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface AccountsMigrateEncryptionKeyOptionalParams - extends coreClient.OperationOptions { - /** The required parameters to perform encryption migration. */ - body?: EncryptionMigrationRequest; - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the migrateEncryptionKey operation. */ -export type AccountsMigrateEncryptionKeyResponse = AccountsMigrateEncryptionKeyHeaders; - /** Optional parameters. */ export interface AccountsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} @@ -3122,18 +2803,6 @@ export interface VolumesResetCifsPasswordOptionalParams /** Contains response data for the resetCifsPassword operation. */ export type VolumesResetCifsPasswordResponse = VolumesResetCifsPasswordHeaders; -/** Optional parameters. */ -export interface VolumesSplitCloneFromParentOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the splitCloneFromParent operation. */ -export type VolumesSplitCloneFromParentResponse = VolumesSplitCloneFromParentHeaders; - /** Optional parameters. */ export interface VolumesBreakFileLocksOptionalParams extends coreClient.OperationOptions { @@ -3155,7 +2824,8 @@ export interface VolumesListGetGroupIdListForLdapUserOptionalParams } /** Contains response data for the listGetGroupIdListForLdapUser operation. */ -export type VolumesListGetGroupIdListForLdapUserResponse = GetGroupIdListForLdapUserResponse; +export type VolumesListGetGroupIdListForLdapUserResponse = + GetGroupIdListForLdapUserResponse; /** Optional parameters. */ export interface VolumesBreakReplicationOptionalParams @@ -3377,13 +3047,6 @@ export interface SnapshotPoliciesListVolumesOptionalParams /** Contains response data for the listVolumes operation. */ export type SnapshotPoliciesListVolumesResponse = SnapshotPolicyVolumeList; -/** Optional parameters. */ -export interface BackupsGetLatestStatusOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getLatestStatus operation. */ -export type BackupsGetLatestStatusResponse = BackupStatus; - /** Optional parameters. */ export interface BackupsGetVolumeRestoreStatusOptionalParams extends coreClient.OperationOptions {} @@ -3391,96 +3054,6 @@ export interface BackupsGetVolumeRestoreStatusOptionalParams /** Contains response data for the getVolumeRestoreStatus operation. */ export type BackupsGetVolumeRestoreStatusResponse = RestoreStatus; -/** Optional parameters. */ -export interface BackupsListByVaultOptionalParams - extends coreClient.OperationOptions { - /** An option to specify the VolumeResourceId. If present, then only returns the backups under the specified volume */ - filter?: string; -} - -/** Contains response data for the listByVault operation. */ -export type BackupsListByVaultResponse = BackupsList; - -/** Optional parameters. */ -export interface BackupsGetOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type BackupsGetResponse = Backup; - -/** Optional parameters. */ -export interface BackupsCreateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the create operation. */ -export type BackupsCreateResponse = Backup; - -/** Optional parameters. */ -export interface BackupsUpdateOptionalParams - extends coreClient.OperationOptions { - /** Backup object supplied in the body of the operation. */ - body?: BackupPatch; - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type BackupsUpdateResponse = Backup; - -/** Optional parameters. */ -export interface BackupsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the delete operation. */ -export type BackupsDeleteResponse = BackupsDeleteHeaders; - -/** Optional parameters. */ -export interface BackupsListByVaultNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByVaultNext operation. */ -export type BackupsListByVaultNextResponse = BackupsList; - -/** Optional parameters. */ -export interface AccountBackupsListByNetAppAccountOptionalParams - extends coreClient.OperationOptions { - /** An option to specify whether to return backups only from deleted volumes */ - includeOnlyBackupsFromDeletedVolumes?: string; -} - -/** Contains response data for the listByNetAppAccount operation. */ -export type AccountBackupsListByNetAppAccountResponse = BackupsList; - -/** Optional parameters. */ -export interface AccountBackupsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type AccountBackupsGetResponse = Backup; - -/** Optional parameters. */ -export interface AccountBackupsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the delete operation. */ -export type AccountBackupsDeleteResponse = AccountBackupsDeleteHeaders; - /** Optional parameters. */ export interface BackupPoliciesListOptionalParams extends coreClient.OperationOptions {} @@ -3676,99 +3249,6 @@ export interface SubvolumesListByVolumeNextOptionalParams /** Contains response data for the listByVolumeNext operation. */ export type SubvolumesListByVolumeNextResponse = SubvolumesList; -/** Optional parameters. */ -export interface BackupVaultsListByNetAppAccountOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByNetAppAccount operation. */ -export type BackupVaultsListByNetAppAccountResponse = BackupVaultsList; - -/** Optional parameters. */ -export interface BackupVaultsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type BackupVaultsGetResponse = BackupVault; - -/** Optional parameters. */ -export interface BackupVaultsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type BackupVaultsCreateOrUpdateResponse = BackupVault; - -/** Optional parameters. */ -export interface BackupVaultsUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type BackupVaultsUpdateResponse = BackupVault; - -/** Optional parameters. */ -export interface BackupVaultsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the delete operation. */ -export type BackupVaultsDeleteResponse = BackupVaultsDeleteHeaders; - -/** Optional parameters. */ -export interface BackupVaultsListByNetAppAccountNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByNetAppAccountNext operation. */ -export type BackupVaultsListByNetAppAccountNextResponse = BackupVaultsList; - -/** Optional parameters. */ -export interface BackupsUnderBackupVaultRestoreFilesOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the restoreFiles operation. */ -export type BackupsUnderBackupVaultRestoreFilesResponse = BackupsUnderBackupVaultRestoreFilesHeaders; - -/** Optional parameters. */ -export interface BackupsUnderVolumeMigrateBackupsOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the migrateBackups operation. */ -export type BackupsUnderVolumeMigrateBackupsResponse = BackupsUnderVolumeMigrateBackupsHeaders; - -/** Optional parameters. */ -export interface BackupsUnderAccountMigrateBackupsOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the migrateBackups operation. */ -export type BackupsUnderAccountMigrateBackupsResponse = BackupsUnderAccountMigrateBackupsHeaders; - /** Optional parameters. */ export interface NetAppManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/netapp/arm-netapp/src/models/mappers.ts b/sdk/netapp/arm-netapp/src/models/mappers.ts index ae8cee007552..791e8a28db5b 100644 --- a/sdk/netapp/arm-netapp/src/models/mappers.ts +++ b/sdk/netapp/arm-netapp/src/models/mappers.ts @@ -20,13 +20,13 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } - } - } - } + className: "Operation", + }, + }, + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -37,31 +37,31 @@ export const Operation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } + className: "OperationDisplay", + }, }, origin: { serializedName: "origin", type: { - name: "String" - } + name: "String", + }, }, serviceSpecification: { serializedName: "properties.serviceSpecification", type: { name: "Composite", - className: "ServiceSpecification" - } - } - } - } + className: "ServiceSpecification", + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -72,29 +72,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 ServiceSpecification: coreClient.CompositeMapper = { @@ -109,10 +109,10 @@ export const ServiceSpecification: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MetricSpecification" - } - } - } + className: "MetricSpecification", + }, + }, + }, }, logSpecifications: { serializedName: "logSpecifications", @@ -121,13 +121,13 @@ export const ServiceSpecification: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LogSpecification" - } - } - } - } - } - } + className: "LogSpecification", + }, + }, + }, + }, + }, + }, }; export const MetricSpecification: coreClient.CompositeMapper = { @@ -138,26 +138,26 @@ export const MetricSpecification: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, displayDescription: { serializedName: "displayDescription", type: { - name: "String" - } + name: "String", + }, }, unit: { serializedName: "unit", type: { - name: "String" - } + name: "String", + }, }, supportedAggregationTypes: { serializedName: "supportedAggregationTypes", @@ -165,10 +165,10 @@ export const MetricSpecification: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, supportedTimeGrainTypes: { serializedName: "supportedTimeGrainTypes", @@ -176,34 +176,34 @@ export const MetricSpecification: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, internalMetricName: { serializedName: "internalMetricName", type: { - name: "String" - } + name: "String", + }, }, enableRegionalMdmAccount: { serializedName: "enableRegionalMdmAccount", type: { - name: "Boolean" - } + name: "Boolean", + }, }, sourceMdmAccount: { serializedName: "sourceMdmAccount", type: { - name: "String" - } + name: "String", + }, }, sourceMdmNamespace: { serializedName: "sourceMdmNamespace", type: { - name: "String" - } + name: "String", + }, }, dimensions: { serializedName: "dimensions", @@ -212,43 +212,43 @@ export const MetricSpecification: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Dimension" - } - } - } + className: "Dimension", + }, + }, + }, }, aggregationType: { serializedName: "aggregationType", type: { - name: "String" - } + name: "String", + }, }, fillGapWithZero: { serializedName: "fillGapWithZero", type: { - name: "Boolean" - } + name: "Boolean", + }, }, category: { serializedName: "category", type: { - name: "String" - } + name: "String", + }, }, resourceIdDimensionNameOverride: { serializedName: "resourceIdDimensionNameOverride", type: { - name: "String" - } + name: "String", + }, }, isInternal: { serializedName: "isInternal", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const Dimension: coreClient.CompositeMapper = { @@ -259,17 +259,17 @@ export const Dimension: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LogSpecification: coreClient.CompositeMapper = { @@ -280,17 +280,113 @@ export const LogSpecification: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const ErrorResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + 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", + }, + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String", + }, + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String", + }, + }, + details: { + serializedName: "details", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + 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 ResourceNameAvailabilityRequest: coreClient.CompositeMapper = { @@ -302,25 +398,25 @@ export const ResourceNameAvailabilityRequest: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, typeParam: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, resourceGroup: { serializedName: "resourceGroup", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CheckAvailabilityResponse: coreClient.CompositeMapper = { @@ -331,23 +427,23 @@ export const CheckAvailabilityResponse: coreClient.CompositeMapper = { isAvailable: { serializedName: "isAvailable", type: { - name: "Boolean" - } + name: "Boolean", + }, }, reason: { serializedName: "reason", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const FilePathAvailabilityRequest: coreClient.CompositeMapper = { @@ -359,18 +455,18 @@ export const FilePathAvailabilityRequest: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, subnetId: { serializedName: "subnetId", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const QuotaAvailabilityRequest: coreClient.CompositeMapper = { @@ -382,25 +478,25 @@ export const QuotaAvailabilityRequest: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, typeParam: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, resourceGroup: { serializedName: "resourceGroup", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SubscriptionQuotaItemList: coreClient.CompositeMapper = { @@ -415,13 +511,13 @@ export const SubscriptionQuotaItemList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubscriptionQuotaItem" - } - } - } - } - } - } + className: "SubscriptionQuotaItem", + }, + }, + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -433,32 +529,32 @@ 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", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -469,68 +565,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 RegionInfosList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RegionInfosList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RegionInfoResource" - } - } - } + name: "DateTime", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } + }, + }, }; export const RegionInfo: coreClient.CompositeMapper = { @@ -541,8 +610,8 @@ export const RegionInfo: coreClient.CompositeMapper = { storageToNetworkProximity: { serializedName: "storageToNetworkProximity", type: { - name: "String" - } + name: "String", + }, }, availabilityZoneMappings: { serializedName: "availabilityZoneMappings", @@ -551,131 +620,36 @@ export const RegionInfo: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RegionInfoAvailabilityZoneMappingsItem" - } - } - } - } - } - } -}; - -export const RegionInfoAvailabilityZoneMappingsItem: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RegionInfoAvailabilityZoneMappingsItem", - modelProperties: { - availabilityZone: { - serializedName: "availabilityZone", - type: { - name: "String" - } - }, - isAvailable: { - serializedName: "isAvailable", - type: { - name: "Boolean" - } - } - } - } -}; - -export const ErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - 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" - } - }, - message: { - serializedName: "message", - readOnly: true, - type: { - name: "String" - } - }, - target: { - serializedName: "target", - readOnly: true, - type: { - name: "String" - } - }, - details: { - serializedName: "details", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorDetail" - } - } - } + className: "RegionInfoAvailabilityZoneMappingsItem", + }, + }, + }, }, - 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" - } +export const RegionInfoAvailabilityZoneMappingsItem: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RegionInfoAvailabilityZoneMappingsItem", + modelProperties: { + availabilityZone: { + serializedName: "availabilityZone", + type: { + name: "String", + }, + }, + isAvailable: { + serializedName: "isAvailable", + type: { + name: "Boolean", + }, + }, }, - info: { - serializedName: "info", - readOnly: true, - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } -}; + }, + }; export const QueryNetworkSiblingSetRequest: coreClient.CompositeMapper = { type: { @@ -685,26 +659,26 @@ export const QueryNetworkSiblingSetRequest: coreClient.CompositeMapper = { networkSiblingSetId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "networkSiblingSetId", required: true, type: { - name: "String" - } + name: "String", + }, }, subnetId: { serializedName: "subnetId", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NetworkSiblingSet: coreClient.CompositeMapper = { @@ -715,41 +689,41 @@ export const NetworkSiblingSet: coreClient.CompositeMapper = { networkSiblingSetId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "networkSiblingSetId", type: { - name: "String" - } + name: "String", + }, }, subnetId: { serializedName: "subnetId", type: { - name: "String" - } + name: "String", + }, }, networkSiblingSetStateId: { serializedName: "networkSiblingSetStateId", type: { - name: "String" - } + name: "String", + }, }, networkFeatures: { defaultValue: "Basic", serializedName: "networkFeatures", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, nicInfoList: { serializedName: "nicInfoList", @@ -758,13 +732,13 @@ export const NetworkSiblingSet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NicInfo" - } - } - } - } - } - } + className: "NicInfo", + }, + }, + }, + }, + }, + }, }; export const NicInfo: coreClient.CompositeMapper = { @@ -776,8 +750,8 @@ export const NicInfo: coreClient.CompositeMapper = { serializedName: "ipAddress", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, volumeResourceIds: { serializedName: "volumeResourceIds", @@ -785,13 +759,13 @@ export const NicInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const UpdateNetworkSiblingSetRequest: coreClient.CompositeMapper = { @@ -802,41 +776,41 @@ export const UpdateNetworkSiblingSetRequest: coreClient.CompositeMapper = { networkSiblingSetId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "networkSiblingSetId", required: true, type: { - name: "String" - } + name: "String", + }, }, subnetId: { serializedName: "subnetId", required: true, type: { - name: "String" - } + name: "String", + }, }, networkSiblingSetStateId: { serializedName: "networkSiblingSetStateId", required: true, type: { - name: "String" - } + name: "String", + }, }, networkFeatures: { defaultValue: "Basic", serializedName: "networkFeatures", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NetAppAccountList: coreClient.CompositeMapper = { @@ -851,19 +825,19 @@ export const NetAppAccountList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NetAppAccount" - } - } - } + className: "NetAppAccount", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ActiveDirectory: coreClient.CompositeMapper = { @@ -875,73 +849,73 @@ export const ActiveDirectory: coreClient.CompositeMapper = { serializedName: "activeDirectoryId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, username: { serializedName: "username", type: { - name: "String" - } + name: "String", + }, }, password: { constraints: { - MaxLength: 64 + MaxLength: 64, }, serializedName: "password", type: { - name: "String" - } + name: "String", + }, }, domain: { serializedName: "domain", type: { - name: "String" - } + name: "String", + }, }, dns: { constraints: { Pattern: new RegExp( - "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$" - ) + "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$", + ), }, serializedName: "dns", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, statusDetails: { serializedName: "statusDetails", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, smbServerName: { serializedName: "smbServerName", type: { - name: "String" - } + name: "String", + }, }, organizationalUnit: { defaultValue: "CN=Computers", serializedName: "organizationalUnit", type: { - name: "String" - } + name: "String", + }, }, site: { serializedName: "site", type: { - name: "String" - } + name: "String", + }, }, backupOperators: { serializedName: "backupOperators", @@ -950,13 +924,13 @@ export const ActiveDirectory: coreClient.CompositeMapper = { element: { constraints: { MaxLength: 255, - MinLength: 1 + MinLength: 1, }, type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, administrators: { serializedName: "administrators", @@ -965,56 +939,56 @@ export const ActiveDirectory: coreClient.CompositeMapper = { element: { constraints: { MaxLength: 255, - MinLength: 1 + MinLength: 1, }, type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, kdcIP: { constraints: { Pattern: new RegExp( - "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$" - ) + "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$", + ), }, serializedName: "kdcIP", type: { - name: "String" - } + name: "String", + }, }, adName: { constraints: { MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "adName", type: { - name: "String" - } + name: "String", + }, }, serverRootCACertificate: { constraints: { MaxLength: 10240, - MinLength: 1 + MinLength: 1, }, serializedName: "serverRootCACertificate", type: { - name: "String" - } + name: "String", + }, }, aesEncryption: { serializedName: "aesEncryption", type: { - name: "Boolean" - } + name: "Boolean", + }, }, ldapSigning: { serializedName: "ldapSigning", type: { - name: "Boolean" - } + name: "Boolean", + }, }, securityOperators: { serializedName: "securityOperators", @@ -1023,53 +997,53 @@ export const ActiveDirectory: coreClient.CompositeMapper = { element: { constraints: { MaxLength: 255, - MinLength: 1 + MinLength: 1, }, type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, ldapOverTLS: { serializedName: "ldapOverTLS", type: { - name: "Boolean" - } + name: "Boolean", + }, }, allowLocalNfsUsersWithLdap: { serializedName: "allowLocalNfsUsersWithLdap", type: { - name: "Boolean" - } + name: "Boolean", + }, }, encryptDCConnections: { serializedName: "encryptDCConnections", type: { - name: "Boolean" - } + name: "Boolean", + }, }, ldapSearchScope: { serializedName: "ldapSearchScope", type: { name: "Composite", - className: "LdapSearchScopeOpt" - } + className: "LdapSearchScopeOpt", + }, }, preferredServersForLdapClient: { constraints: { Pattern: new RegExp( - "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))?)?$" + "^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))?)?$", ), - MaxLength: 32 + MaxLength: 32, }, serializedName: "preferredServersForLdapClient", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LdapSearchScopeOpt: coreClient.CompositeMapper = { @@ -1079,33 +1053,33 @@ export const LdapSearchScopeOpt: coreClient.CompositeMapper = { modelProperties: { userDN: { constraints: { - MaxLength: 255 + MaxLength: 255, }, serializedName: "userDN", type: { - name: "String" - } + name: "String", + }, }, groupDN: { constraints: { - MaxLength: 255 + MaxLength: 255, }, serializedName: "groupDN", type: { - name: "String" - } + name: "String", + }, }, groupMembershipFilter: { constraints: { - MaxLength: 255 + MaxLength: 255, }, serializedName: "groupMembershipFilter", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AccountEncryption: coreClient.CompositeMapper = { @@ -1117,25 +1091,25 @@ export const AccountEncryption: coreClient.CompositeMapper = { defaultValue: "Microsoft.NetApp", serializedName: "keySource", type: { - name: "String" - } + name: "String", + }, }, keyVaultProperties: { serializedName: "keyVaultProperties", type: { name: "Composite", - className: "KeyVaultProperties" - } + className: "KeyVaultProperties", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "EncryptionIdentity" - } - } - } - } + className: "EncryptionIdentity", + }, + }, + }, + }, }; export const KeyVaultProperties: coreClient.CompositeMapper = { @@ -1146,47 +1120,47 @@ export const KeyVaultProperties: coreClient.CompositeMapper = { keyVaultId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "keyVaultId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, keyVaultUri: { serializedName: "keyVaultUri", required: true, type: { - name: "String" - } + name: "String", + }, }, keyName: { serializedName: "keyName", required: true, type: { - name: "String" - } + name: "String", + }, }, keyVaultResourceId: { serializedName: "keyVaultResourceId", required: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EncryptionIdentity: coreClient.CompositeMapper = { @@ -1198,17 +1172,17 @@ export const EncryptionIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, userAssignedIdentity: { serializedName: "userAssignedIdentity", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedServiceIdentity: coreClient.CompositeMapper = { @@ -1220,34 +1194,34 @@ export const ManagedServiceIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "Uuid" - } + name: "Uuid", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "Uuid" - } + name: "Uuid", + }, }, type: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", type: { name: "Dictionary", value: { - type: { name: "Composite", className: "UserAssignedIdentity" } - } - } - } - } - } + type: { name: "Composite", className: "UserAssignedIdentity" }, + }, + }, + }, + }, + }, }; export const UserAssignedIdentity: coreClient.CompositeMapper = { @@ -1259,18 +1233,18 @@ export const UserAssignedIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "Uuid" - } + name: "Uuid", + }, }, clientId: { serializedName: "clientId", readOnly: true, type: { - name: "Uuid" - } - } - } - } + name: "Uuid", + }, + }, + }, + }, }; export const NetAppAccountPatch: coreClient.CompositeMapper = { @@ -1281,50 +1255,50 @@ export const NetAppAccountPatch: 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" } }, + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "ManagedServiceIdentity" - } + className: "ManagedServiceIdentity", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, activeDirectories: { serializedName: "properties.activeDirectories", @@ -1333,107 +1307,28 @@ export const NetAppAccountPatch: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ActiveDirectory" - } - } - } + className: "ActiveDirectory", + }, + }, + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "AccountEncryption" - } + className: "AccountEncryption", + }, }, disableShowmount: { serializedName: "properties.disableShowmount", readOnly: true, nullable: true, type: { - name: "Boolean" - } - }, - nfsV4IDDomain: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9.-]{0,253}[a-zA-Z0-9]$"), - MaxLength: 255 + name: "Boolean", }, - serializedName: "properties.nfsV4IDDomain", - nullable: true, - type: { - name: "String" - } - }, - isMultiAdEnabled: { - serializedName: "properties.isMultiAdEnabled", - readOnly: true, - nullable: true, - type: { - name: "Boolean" - } - } - } - } -}; - -export const CloudError: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudError", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "CloudErrorBody" - } - } - } - } -}; - -export const CloudErrorBody: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudErrorBody", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - } - } - } -}; - -export const EncryptionMigrationRequest: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EncryptionMigrationRequest", - modelProperties: { - virtualNetworkId: { - serializedName: "virtualNetworkId", - required: true, - type: { - name: "String" - } }, - privateEndpointId: { - serializedName: "privateEndpointId", - required: true, - type: { - name: "String" - } - } - } - } + }, + }, }; export const CapacityPoolList: coreClient.CompositeMapper = { @@ -1448,19 +1343,19 @@ export const CapacityPoolList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CapacityPool" - } - } - } + className: "CapacityPool", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CapacityPoolPatch: coreClient.CompositeMapper = { @@ -1471,58 +1366,58 @@ export const CapacityPoolPatch: 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" } }, + }, }, size: { defaultValue: 4398046511104, serializedName: "properties.size", type: { - name: "Number" - } + name: "Number", + }, }, qosType: { serializedName: "properties.qosType", type: { - name: "String" - } + name: "String", + }, }, coolAccess: { serializedName: "properties.coolAccess", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const VolumeList: coreClient.CompositeMapper = { @@ -1537,19 +1432,19 @@ export const VolumeList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Volume" - } - } - } + className: "Volume", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumePropertiesExportPolicy: coreClient.CompositeMapper = { @@ -1564,13 +1459,13 @@ export const VolumePropertiesExportPolicy: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ExportPolicyRule" - } - } - } - } - } - } + className: "ExportPolicyRule", + }, + }, + }, + }, + }, + }, }; export const ExportPolicyRule: coreClient.CompositeMapper = { @@ -1581,103 +1476,103 @@ export const ExportPolicyRule: coreClient.CompositeMapper = { ruleIndex: { serializedName: "ruleIndex", type: { - name: "Number" - } + name: "Number", + }, }, unixReadOnly: { serializedName: "unixReadOnly", type: { - name: "Boolean" - } + name: "Boolean", + }, }, unixReadWrite: { serializedName: "unixReadWrite", type: { - name: "Boolean" - } + name: "Boolean", + }, }, kerberos5ReadOnly: { defaultValue: false, serializedName: "kerberos5ReadOnly", type: { - name: "Boolean" - } + name: "Boolean", + }, }, kerberos5ReadWrite: { defaultValue: false, serializedName: "kerberos5ReadWrite", type: { - name: "Boolean" - } + name: "Boolean", + }, }, kerberos5IReadOnly: { defaultValue: false, serializedName: "kerberos5iReadOnly", type: { - name: "Boolean" - } + name: "Boolean", + }, }, kerberos5IReadWrite: { defaultValue: false, serializedName: "kerberos5iReadWrite", type: { - name: "Boolean" - } + name: "Boolean", + }, }, kerberos5PReadOnly: { defaultValue: false, serializedName: "kerberos5pReadOnly", type: { - name: "Boolean" - } + name: "Boolean", + }, }, kerberos5PReadWrite: { defaultValue: false, serializedName: "kerberos5pReadWrite", type: { - name: "Boolean" - } + name: "Boolean", + }, }, cifs: { serializedName: "cifs", type: { - name: "Boolean" - } + name: "Boolean", + }, }, nfsv3: { serializedName: "nfsv3", type: { - name: "Boolean" - } + name: "Boolean", + }, }, nfsv41: { serializedName: "nfsv41", type: { - name: "Boolean" - } + name: "Boolean", + }, }, allowedClients: { serializedName: "allowedClients", type: { - name: "String" - } + name: "String", + }, }, hasRootAccess: { defaultValue: true, serializedName: "hasRootAccess", type: { - name: "Boolean" - } + name: "Boolean", + }, }, chownMode: { defaultValue: "Restricted", serializedName: "chownMode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MountTargetProperties: coreClient.CompositeMapper = { @@ -1688,46 +1583,46 @@ export const MountTargetProperties: coreClient.CompositeMapper = { mountTargetId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "mountTargetId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, fileSystemId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "fileSystemId", required: true, type: { - name: "String" - } + name: "String", + }, }, ipAddress: { serializedName: "ipAddress", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, smbServerFqdn: { serializedName: "smbServerFqdn", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumePropertiesDataProtection: coreClient.CompositeMapper = { @@ -1735,69 +1630,29 @@ export const VolumePropertiesDataProtection: coreClient.CompositeMapper = { name: "Composite", className: "VolumePropertiesDataProtection", modelProperties: { - backup: { - serializedName: "backup", - type: { - name: "Composite", - className: "VolumeBackupProperties" - } - }, replication: { serializedName: "replication", type: { name: "Composite", - className: "ReplicationObject" - } + className: "ReplicationObject", + }, }, snapshot: { serializedName: "snapshot", type: { name: "Composite", - className: "VolumeSnapshotProperties" - } + className: "VolumeSnapshotProperties", + }, }, volumeRelocation: { serializedName: "volumeRelocation", type: { name: "Composite", - className: "VolumeRelocationProperties" - } - } - } - } -}; - -export const VolumeBackupProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VolumeBackupProperties", - modelProperties: { - backupPolicyId: { - serializedName: "backupPolicyId", - type: { - name: "String" - } - }, - policyEnforced: { - serializedName: "policyEnforced", - type: { - name: "Boolean" - } - }, - backupEnabled: { - serializedName: "backupEnabled", - type: { - name: "Boolean" - } + className: "VolumeRelocationProperties", + }, }, - backupVaultId: { - serializedName: "backupVaultId", - type: { - name: "String" - } - } - } - } + }, + }, }; export const ReplicationObject: coreClient.CompositeMapper = { @@ -1809,73 +1664,36 @@ export const ReplicationObject: coreClient.CompositeMapper = { serializedName: "replicationId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, endpointType: { serializedName: "endpointType", type: { - name: "String" - } + name: "String", + }, }, replicationSchedule: { serializedName: "replicationSchedule", type: { - name: "String" - } + name: "String", + }, }, remoteVolumeResourceId: { serializedName: "remoteVolumeResourceId", required: true, type: { - name: "String" - } - }, - remotePath: { - serializedName: "remotePath", - type: { - name: "Composite", - className: "RemotePath" - } - }, - remoteVolumeRegion: { - serializedName: "remoteVolumeRegion", - type: { - name: "String" - } - } - } - } -}; - -export const RemotePath: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RemotePath", - modelProperties: { - externalHostName: { - serializedName: "externalHostName", - required: true, - type: { - name: "String" - } - }, - serverName: { - serializedName: "serverName", - required: true, - type: { - name: "String" - } + name: "String", + }, }, - volumeName: { - serializedName: "volumeName", - required: true, + remoteVolumeRegion: { + serializedName: "remoteVolumeRegion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumeSnapshotProperties: coreClient.CompositeMapper = { @@ -1886,11 +1704,11 @@ export const VolumeSnapshotProperties: coreClient.CompositeMapper = { snapshotPolicyId: { serializedName: "snapshotPolicyId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumeRelocationProperties: coreClient.CompositeMapper = { @@ -1901,18 +1719,18 @@ export const VolumeRelocationProperties: coreClient.CompositeMapper = { relocationRequested: { serializedName: "relocationRequested", type: { - name: "Boolean" - } + name: "Boolean", + }, }, readyToBeFinalized: { serializedName: "readyToBeFinalized", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const PlacementKeyValuePairs: coreClient.CompositeMapper = { @@ -1924,18 +1742,18 @@ export const PlacementKeyValuePairs: coreClient.CompositeMapper = { serializedName: "key", required: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumePatch: coreClient.CompositeMapper = { @@ -1946,150 +1764,150 @@ export const VolumePatch: 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" } }, + }, }, serviceLevel: { defaultValue: "Premium", serializedName: "properties.serviceLevel", type: { - name: "String" - } + name: "String", + }, }, usageThreshold: { defaultValue: 107374182400, constraints: { InclusiveMaximum: 2638827906662400, - InclusiveMinimum: 107374182400 + InclusiveMinimum: 107374182400, }, serializedName: "properties.usageThreshold", type: { - name: "Number" - } + name: "Number", + }, }, exportPolicy: { serializedName: "properties.exportPolicy", type: { name: "Composite", - className: "VolumePatchPropertiesExportPolicy" - } + className: "VolumePatchPropertiesExportPolicy", + }, }, throughputMibps: { serializedName: "properties.throughputMibps", type: { - name: "Number" - } + name: "Number", + }, }, dataProtection: { serializedName: "properties.dataProtection", type: { name: "Composite", - className: "VolumePatchPropertiesDataProtection" - } + className: "VolumePatchPropertiesDataProtection", + }, }, isDefaultQuotaEnabled: { defaultValue: false, serializedName: "properties.isDefaultQuotaEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, defaultUserQuotaInKiBs: { defaultValue: 0, serializedName: "properties.defaultUserQuotaInKiBs", type: { - name: "Number" - } + name: "Number", + }, }, defaultGroupQuotaInKiBs: { defaultValue: 0, serializedName: "properties.defaultGroupQuotaInKiBs", type: { - name: "Number" - } + name: "Number", + }, }, unixPermissions: { constraints: { MaxLength: 4, - MinLength: 4 + MinLength: 4, }, serializedName: "properties.unixPermissions", nullable: true, type: { - name: "String" - } + name: "String", + }, }, coolAccess: { serializedName: "properties.coolAccess", type: { - name: "Boolean" - } + name: "Boolean", + }, }, coolnessPeriod: { constraints: { - InclusiveMaximum: 63, - InclusiveMinimum: 7 + InclusiveMaximum: 183, + InclusiveMinimum: 7, }, serializedName: "properties.coolnessPeriod", type: { - name: "Number" - } + name: "Number", + }, }, coolAccessRetrievalPolicy: { serializedName: "properties.coolAccessRetrievalPolicy", type: { - name: "String" - } + name: "String", + }, }, snapshotDirectoryVisible: { serializedName: "properties.snapshotDirectoryVisible", type: { - name: "Boolean" - } + name: "Boolean", + }, }, smbAccessBasedEnumeration: { serializedName: "properties.smbAccessBasedEnumeration", nullable: true, type: { - name: "String" - } + name: "String", + }, }, smbNonBrowsable: { serializedName: "properties.smbNonBrowsable", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumePatchPropertiesExportPolicy: coreClient.CompositeMapper = { @@ -2104,13 +1922,13 @@ export const VolumePatchPropertiesExportPolicy: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ExportPolicyRule" - } - } - } - } - } - } + className: "ExportPolicyRule", + }, + }, + }, + }, + }, + }, }; export const VolumePatchPropertiesDataProtection: coreClient.CompositeMapper = { @@ -2118,22 +1936,15 @@ export const VolumePatchPropertiesDataProtection: coreClient.CompositeMapper = { name: "Composite", className: "VolumePatchPropertiesDataProtection", modelProperties: { - backup: { - serializedName: "backup", - type: { - name: "Composite", - className: "VolumeBackupProperties" - } - }, snapshot: { serializedName: "snapshot", type: { name: "Composite", - className: "VolumeSnapshotProperties" - } - } - } - } + className: "VolumeSnapshotProperties", + }, + }, + }, + }, }; export const VolumeRevert: coreClient.CompositeMapper = { @@ -2144,11 +1955,11 @@ export const VolumeRevert: coreClient.CompositeMapper = { snapshotId: { serializedName: "snapshotId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BreakFileLocksRequest: coreClient.CompositeMapper = { @@ -2159,23 +1970,23 @@ export const BreakFileLocksRequest: coreClient.CompositeMapper = { clientIp: { constraints: { Pattern: new RegExp( - "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$" - ) + "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$", + ), }, serializedName: "clientIp", type: { - name: "String" - } + name: "String", + }, }, confirmRunningDisruptiveOperation: { defaultValue: false, serializedName: "confirmRunningDisruptiveOperation", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const GetGroupIdListForLdapUserRequest: coreClient.CompositeMapper = { @@ -2186,16 +1997,16 @@ export const GetGroupIdListForLdapUserRequest: coreClient.CompositeMapper = { username: { constraints: { MaxLength: 255, - MinLength: 1 + MinLength: 1, }, serializedName: "username", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GetGroupIdListForLdapUserResponse: coreClient.CompositeMapper = { @@ -2209,13 +2020,13 @@ export const GetGroupIdListForLdapUserResponse: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const BreakReplicationRequest: coreClient.CompositeMapper = { @@ -2226,11 +2037,11 @@ export const BreakReplicationRequest: coreClient.CompositeMapper = { forceBreakReplication: { serializedName: "forceBreakReplication", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ReestablishReplicationRequest: coreClient.CompositeMapper = { @@ -2241,11 +2052,11 @@ export const ReestablishReplicationRequest: coreClient.CompositeMapper = { sourceVolumeId: { serializedName: "sourceVolumeId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ReplicationStatus: coreClient.CompositeMapper = { @@ -2256,35 +2067,35 @@ export const ReplicationStatus: coreClient.CompositeMapper = { healthy: { serializedName: "healthy", type: { - name: "Boolean" - } + name: "Boolean", + }, }, relationshipStatus: { serializedName: "relationshipStatus", type: { - name: "String" - } + name: "String", + }, }, mirrorState: { serializedName: "mirrorState", type: { - name: "String" - } + name: "String", + }, }, totalProgress: { serializedName: "totalProgress", type: { - name: "String" - } + name: "String", + }, }, errorMessage: { serializedName: "errorMessage", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ListReplications: coreClient.CompositeMapper = { @@ -2299,13 +2110,13 @@ export const ListReplications: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Replication" - } - } - } - } - } - } + className: "Replication", + }, + }, + }, + }, + }, + }, }; export const Replication: coreClient.CompositeMapper = { @@ -2316,30 +2127,30 @@ export const Replication: coreClient.CompositeMapper = { endpointType: { serializedName: "endpointType", type: { - name: "String" - } + name: "String", + }, }, replicationSchedule: { serializedName: "replicationSchedule", type: { - name: "String" - } + name: "String", + }, }, remoteVolumeResourceId: { serializedName: "remoteVolumeResourceId", required: true, type: { - name: "String" - } + name: "String", + }, }, remoteVolumeRegion: { serializedName: "remoteVolumeRegion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AuthorizeRequest: coreClient.CompositeMapper = { @@ -2350,11 +2161,11 @@ export const AuthorizeRequest: coreClient.CompositeMapper = { remoteVolumeResourceId: { serializedName: "remoteVolumeResourceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PoolChangeRequest: coreClient.CompositeMapper = { @@ -2366,11 +2177,11 @@ export const PoolChangeRequest: coreClient.CompositeMapper = { serializedName: "newPoolResourceId", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RelocateVolumeRequest: coreClient.CompositeMapper = { @@ -2381,11 +2192,11 @@ export const RelocateVolumeRequest: coreClient.CompositeMapper = { creationToken: { serializedName: "creationToken", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SnapshotsList: coreClient.CompositeMapper = { @@ -2400,13 +2211,13 @@ export const SnapshotsList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Snapshot" - } - } - } - } - } - } + className: "Snapshot", + }, + }, + }, + }, + }, + }, }; export const SnapshotRestoreFiles: coreClient.CompositeMapper = { @@ -2417,7 +2228,7 @@ export const SnapshotRestoreFiles: coreClient.CompositeMapper = { filePaths: { constraints: { MinItems: 1, - MaxItems: 10 + MaxItems: 10, }, serializedName: "filePaths", required: true, @@ -2426,22 +2237,22 @@ export const SnapshotRestoreFiles: coreClient.CompositeMapper = { element: { constraints: { MaxLength: 1024, - MinLength: 1 + MinLength: 1, }, type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, destinationPath: { serializedName: "destinationPath", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SnapshotPoliciesList: coreClient.CompositeMapper = { @@ -2456,13 +2267,13 @@ export const SnapshotPoliciesList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SnapshotPolicy" - } - } - } - } - } - } + className: "SnapshotPolicy", + }, + }, + }, + }, + }, + }, }; export const HourlySchedule: coreClient.CompositeMapper = { @@ -2473,23 +2284,23 @@ export const HourlySchedule: coreClient.CompositeMapper = { snapshotsToKeep: { serializedName: "snapshotsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, minute: { serializedName: "minute", type: { - name: "Number" - } + name: "Number", + }, }, usedBytes: { serializedName: "usedBytes", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const DailySchedule: coreClient.CompositeMapper = { @@ -2500,29 +2311,29 @@ export const DailySchedule: coreClient.CompositeMapper = { snapshotsToKeep: { serializedName: "snapshotsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, hour: { serializedName: "hour", type: { - name: "Number" - } + name: "Number", + }, }, minute: { serializedName: "minute", type: { - name: "Number" - } + name: "Number", + }, }, usedBytes: { serializedName: "usedBytes", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const WeeklySchedule: coreClient.CompositeMapper = { @@ -2533,35 +2344,35 @@ export const WeeklySchedule: coreClient.CompositeMapper = { snapshotsToKeep: { serializedName: "snapshotsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, day: { serializedName: "day", type: { - name: "String" - } + name: "String", + }, }, hour: { serializedName: "hour", type: { - name: "Number" - } + name: "Number", + }, }, minute: { serializedName: "minute", type: { - name: "Number" - } + name: "Number", + }, }, usedBytes: { serializedName: "usedBytes", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const MonthlySchedule: coreClient.CompositeMapper = { @@ -2572,35 +2383,35 @@ export const MonthlySchedule: coreClient.CompositeMapper = { snapshotsToKeep: { serializedName: "snapshotsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, daysOfMonth: { serializedName: "daysOfMonth", type: { - name: "String" - } + name: "String", + }, }, hour: { serializedName: "hour", type: { - name: "Number" - } + name: "Number", + }, }, minute: { serializedName: "minute", type: { - name: "Number" - } + name: "Number", + }, }, usedBytes: { serializedName: "usedBytes", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const SnapshotPolicyPatch: coreClient.CompositeMapper = { @@ -2611,80 +2422,80 @@ export const SnapshotPolicyPatch: 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" } }, + }, }, hourlySchedule: { serializedName: "properties.hourlySchedule", type: { name: "Composite", - className: "HourlySchedule" - } + className: "HourlySchedule", + }, }, dailySchedule: { serializedName: "properties.dailySchedule", type: { name: "Composite", - className: "DailySchedule" - } + className: "DailySchedule", + }, }, weeklySchedule: { serializedName: "properties.weeklySchedule", type: { name: "Composite", - className: "WeeklySchedule" - } + className: "WeeklySchedule", + }, }, monthlySchedule: { serializedName: "properties.monthlySchedule", type: { name: "Composite", - className: "MonthlySchedule" - } + className: "MonthlySchedule", + }, }, enabled: { serializedName: "properties.enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SnapshotPolicyVolumeList: coreClient.CompositeMapper = { @@ -2699,85 +2510,13 @@ export const SnapshotPolicyVolumeList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Volume" - } - } - } - } - } - } -}; - -export const BackupStatus: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupStatus", - modelProperties: { - healthy: { - serializedName: "healthy", - readOnly: true, - type: { - name: "Boolean" - } - }, - relationshipStatus: { - serializedName: "relationshipStatus", - readOnly: true, - type: { - name: "String" - } - }, - mirrorState: { - serializedName: "mirrorState", - readOnly: true, - type: { - name: "String" - } - }, - unhealthyReason: { - serializedName: "unhealthyReason", - readOnly: true, - type: { - name: "String" - } - }, - errorMessage: { - serializedName: "errorMessage", - readOnly: true, - type: { - name: "String" - } - }, - lastTransferSize: { - serializedName: "lastTransferSize", - readOnly: true, - type: { - name: "Number" - } - }, - lastTransferType: { - serializedName: "lastTransferType", - readOnly: true, - type: { - name: "String" - } - }, - totalTransferBytes: { - serializedName: "totalTransferBytes", - readOnly: true, - type: { - name: "Number" - } + className: "Volume", + }, + }, + }, }, - transferProgressBytes: { - serializedName: "transferProgressBytes", - readOnly: true, - type: { - name: "Number" - } - } - } - } + }, + }, }; export const RestoreStatus: coreClient.CompositeMapper = { @@ -2789,88 +2528,46 @@ export const RestoreStatus: coreClient.CompositeMapper = { serializedName: "healthy", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, relationshipStatus: { serializedName: "relationshipStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, mirrorState: { serializedName: "mirrorState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, unhealthyReason: { serializedName: "unhealthyReason", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, errorMessage: { serializedName: "errorMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, totalTransferBytes: { serializedName: "totalTransferBytes", readOnly: true, type: { - name: "Number" - } - } - } - } -}; - -export const BackupsList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupsList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Backup" - } - } - } + name: "Number", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const BackupPatch: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupPatch", - modelProperties: { - label: { - serializedName: "properties.label", - type: { - name: "String" - } - } - } - } + }, + }, }; export const BackupPoliciesList: coreClient.CompositeMapper = { @@ -2885,13 +2582,13 @@ export const BackupPoliciesList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BackupPolicy" - } - } - } - } - } - } + className: "BackupPolicy", + }, + }, + }, + }, + }, + }, }; export const VolumeBackups: coreClient.CompositeMapper = { @@ -2902,23 +2599,23 @@ export const VolumeBackups: coreClient.CompositeMapper = { volumeName: { serializedName: "volumeName", type: { - name: "String" - } + name: "String", + }, }, backupsCount: { serializedName: "backupsCount", type: { - name: "Number" - } + name: "Number", + }, }, policyEnabled: { serializedName: "policyEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const BackupPolicyPatch: coreClient.CompositeMapper = { @@ -2929,81 +2626,81 @@ export const BackupPolicyPatch: 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" } }, + }, }, backupPolicyId: { serializedName: "properties.backupPolicyId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, dailyBackupsToKeep: { serializedName: "properties.dailyBackupsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, weeklyBackupsToKeep: { serializedName: "properties.weeklyBackupsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, monthlyBackupsToKeep: { serializedName: "properties.monthlyBackupsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, volumesAssigned: { serializedName: "properties.volumesAssigned", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, enabled: { serializedName: "properties.enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, volumeBackups: { serializedName: "properties.volumeBackups", @@ -3013,13 +2710,13 @@ export const BackupPolicyPatch: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VolumeBackups" - } - } - } - } - } - } + className: "VolumeBackups", + }, + }, + }, + }, + }, + }, }; export const VolumeQuotaRulesList: coreClient.CompositeMapper = { @@ -3034,13 +2731,13 @@ export const VolumeQuotaRulesList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VolumeQuotaRule" - } - } - } - } - } - } + className: "VolumeQuotaRule", + }, + }, + }, + }, + }, + }, }; export const VolumeQuotaRulePatch: coreClient.CompositeMapper = { @@ -3052,8 +2749,8 @@ export const VolumeQuotaRulePatch: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, provisioningState: { serializedName: "properties.provisioningState", @@ -3067,30 +2764,30 @@ export const VolumeQuotaRulePatch: coreClient.CompositeMapper = { "Deleting", "Moving", "Failed", - "Succeeded" - ] - } + "Succeeded", + ], + }, }, quotaSizeInKiBs: { serializedName: "properties.quotaSizeInKiBs", type: { - name: "Number" - } + name: "Number", + }, }, quotaType: { serializedName: "properties.quotaType", type: { - name: "String" - } + name: "String", + }, }, quotaTarget: { serializedName: "properties.quotaTarget", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumeGroupList: coreClient.CompositeMapper = { @@ -3105,13 +2802,13 @@ export const VolumeGroupList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VolumeGroup" - } - } - } - } - } - } + className: "VolumeGroup", + }, + }, + }, + }, + }, + }, }; export const VolumeGroup: coreClient.CompositeMapper = { @@ -3122,46 +2819,46 @@ export const VolumeGroup: 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", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, groupMetaData: { serializedName: "properties.groupMetaData", type: { name: "Composite", - className: "VolumeGroupMetaData" - } - } - } - } + className: "VolumeGroupMetaData", + }, + }, + }, + }, }; export const VolumeGroupMetaData: coreClient.CompositeMapper = { @@ -3172,20 +2869,20 @@ export const VolumeGroupMetaData: coreClient.CompositeMapper = { groupDescription: { serializedName: "groupDescription", type: { - name: "String" - } + name: "String", + }, }, applicationType: { serializedName: "applicationType", type: { - name: "String" - } + name: "String", + }, }, applicationIdentifier: { serializedName: "applicationIdentifier", type: { - name: "String" - } + name: "String", + }, }, globalPlacementRules: { serializedName: "globalPlacementRules", @@ -3194,20 +2891,20 @@ export const VolumeGroupMetaData: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PlacementKeyValuePairs" - } - } - } + className: "PlacementKeyValuePairs", + }, + }, + }, }, volumesCount: { serializedName: "volumesCount", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const VolumeGroupDetails: coreClient.CompositeMapper = { @@ -3218,43 +2915,43 @@ export const VolumeGroupDetails: 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", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, groupMetaData: { serializedName: "properties.groupMetaData", type: { name: "Composite", - className: "VolumeGroupMetaData" - } + className: "VolumeGroupMetaData", + }, }, volumes: { serializedName: "properties.volumes", @@ -3263,13 +2960,13 @@ export const VolumeGroupDetails: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VolumeGroupVolumeProperties" - } - } - } - } - } - } + className: "VolumeGroupVolumeProperties", + }, + }, + }, + }, + }, + }, }; export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { @@ -3281,28 +2978,28 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", 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" } }, + }, }, zones: { serializedName: "zones", @@ -3311,65 +3008,65 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { element: { constraints: { MaxLength: 255, - MinLength: 1 + MinLength: 1, }, type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, fileSystemId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "properties.fileSystemId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, creationToken: { constraints: { Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9\\-]{0,79}$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.creationToken", required: true, type: { - name: "String" - } + name: "String", + }, }, serviceLevel: { defaultValue: "Premium", serializedName: "properties.serviceLevel", type: { - name: "String" - } + name: "String", + }, }, usageThreshold: { defaultValue: 107374182400, constraints: { InclusiveMaximum: 2638827906662400, - InclusiveMinimum: 107374182400 + InclusiveMinimum: 107374182400, }, serializedName: "properties.usageThreshold", required: true, type: { - name: "Number" - } + name: "Number", + }, }, exportPolicy: { serializedName: "properties.exportPolicy", type: { name: "Composite", - className: "VolumePropertiesExportPolicy" - } + className: "VolumePropertiesExportPolicy", + }, }, protocolTypes: { serializedName: "properties.protocolTypes", @@ -3377,79 +3074,79 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, snapshotId: { serializedName: "properties.snapshotId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, deleteBaseSnapshot: { serializedName: "properties.deleteBaseSnapshot", type: { - name: "Boolean" - } + name: "Boolean", + }, }, backupId: { serializedName: "properties.backupId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, baremetalTenantId: { serializedName: "properties.baremetalTenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, subnetId: { serializedName: "properties.subnetId", required: true, type: { - name: "String" - } + name: "String", + }, }, networkFeatures: { defaultValue: "Basic", serializedName: "properties.networkFeatures", type: { - name: "String" - } + name: "String", + }, }, networkSiblingSetId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "properties.networkSiblingSetId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, storageToNetworkProximity: { serializedName: "properties.storageToNetworkProximity", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, mountTargets: { serializedName: "properties.mountTargets", @@ -3459,168 +3156,168 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MountTargetProperties" - } - } - } + className: "MountTargetProperties", + }, + }, + }, }, volumeType: { serializedName: "properties.volumeType", type: { - name: "String" - } + name: "String", + }, }, dataProtection: { serializedName: "properties.dataProtection", type: { name: "Composite", - className: "VolumePropertiesDataProtection" - } + className: "VolumePropertiesDataProtection", + }, }, isRestoring: { serializedName: "properties.isRestoring", type: { - name: "Boolean" - } + name: "Boolean", + }, }, snapshotDirectoryVisible: { defaultValue: true, serializedName: "properties.snapshotDirectoryVisible", type: { - name: "Boolean" - } + name: "Boolean", + }, }, kerberosEnabled: { defaultValue: false, serializedName: "properties.kerberosEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, securityStyle: { defaultValue: "unix", serializedName: "properties.securityStyle", type: { - name: "String" - } + name: "String", + }, }, smbEncryption: { defaultValue: false, serializedName: "properties.smbEncryption", type: { - name: "Boolean" - } + name: "Boolean", + }, }, smbAccessBasedEnumeration: { serializedName: "properties.smbAccessBasedEnumeration", nullable: true, type: { - name: "String" - } + name: "String", + }, }, smbNonBrowsable: { serializedName: "properties.smbNonBrowsable", type: { - name: "String" - } + name: "String", + }, }, smbContinuouslyAvailable: { defaultValue: false, serializedName: "properties.smbContinuouslyAvailable", type: { - name: "Boolean" - } + name: "Boolean", + }, }, throughputMibps: { serializedName: "properties.throughputMibps", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, actualThroughputMibps: { serializedName: "properties.actualThroughputMibps", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, encryptionKeySource: { defaultValue: "Microsoft.NetApp", serializedName: "properties.encryptionKeySource", type: { - name: "String" - } + name: "String", + }, }, keyVaultPrivateEndpointResourceId: { serializedName: "properties.keyVaultPrivateEndpointResourceId", type: { - name: "String" - } + name: "String", + }, }, ldapEnabled: { defaultValue: false, serializedName: "properties.ldapEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, coolAccess: { defaultValue: false, serializedName: "properties.coolAccess", type: { - name: "Boolean" - } + name: "Boolean", + }, }, coolnessPeriod: { constraints: { - InclusiveMaximum: 63, - InclusiveMinimum: 7 + InclusiveMaximum: 183, + InclusiveMinimum: 7, }, serializedName: "properties.coolnessPeriod", type: { - name: "Number" - } + name: "Number", + }, }, coolAccessRetrievalPolicy: { serializedName: "properties.coolAccessRetrievalPolicy", type: { - name: "String" - } + name: "String", + }, }, unixPermissions: { constraints: { MaxLength: 4, - MinLength: 4 + MinLength: 4, }, serializedName: "properties.unixPermissions", nullable: true, type: { - name: "String" - } + name: "String", + }, }, cloneProgress: { serializedName: "properties.cloneProgress", readOnly: true, nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, fileAccessLogs: { defaultValue: "Disabled", serializedName: "properties.fileAccessLogs", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, avsDataStore: { defaultValue: "Disabled", serializedName: "properties.avsDataStore", type: { - name: "String" - } + name: "String", + }, }, dataStoreResourceId: { serializedName: "properties.dataStoreResourceId", @@ -3629,77 +3326,77 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, isDefaultQuotaEnabled: { defaultValue: false, serializedName: "properties.isDefaultQuotaEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, defaultUserQuotaInKiBs: { defaultValue: 0, serializedName: "properties.defaultUserQuotaInKiBs", type: { - name: "Number" - } + name: "Number", + }, }, defaultGroupQuotaInKiBs: { defaultValue: 0, serializedName: "properties.defaultGroupQuotaInKiBs", type: { - name: "Number" - } + name: "Number", + }, }, maximumNumberOfFiles: { serializedName: "properties.maximumNumberOfFiles", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, volumeGroupName: { serializedName: "properties.volumeGroupName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, capacityPoolResourceId: { serializedName: "properties.capacityPoolResourceId", type: { - name: "String" - } + name: "String", + }, }, proximityPlacementGroup: { serializedName: "properties.proximityPlacementGroup", type: { - name: "String" - } + name: "String", + }, }, t2Network: { serializedName: "properties.t2Network", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, volumeSpecName: { serializedName: "properties.volumeSpecName", type: { - name: "String" - } + name: "String", + }, }, encrypted: { serializedName: "properties.encrypted", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, placementRules: { serializedName: "properties.placementRules", @@ -3708,51 +3405,43 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PlacementKeyValuePairs" - } - } - } + className: "PlacementKeyValuePairs", + }, + }, + }, }, enableSubvolumes: { defaultValue: "Disabled", serializedName: "properties.enableSubvolumes", type: { - name: "String" - } + name: "String", + }, }, provisionedAvailabilityZone: { serializedName: "properties.provisionedAvailabilityZone", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, isLargeVolume: { defaultValue: false, serializedName: "properties.isLargeVolume", type: { - name: "Boolean" - } + name: "Boolean", + }, }, originatingResourceId: { serializedName: "properties.originatingResourceId", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, - inheritedSizeInBytes: { - serializedName: "properties.inheritedSizeInBytes", - readOnly: true, - nullable: true, - type: { - name: "Number" - } - } - } - } + }, + }, }; export const SubvolumesList: coreClient.CompositeMapper = { @@ -3767,19 +3456,19 @@ export const SubvolumesList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubvolumeInfo" - } - } - } + className: "SubvolumeInfo", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SubvolumePatchRequest: coreClient.CompositeMapper = { @@ -3791,17 +3480,17 @@ export const SubvolumePatchRequest: coreClient.CompositeMapper = { serializedName: "properties.size", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, path: { serializedName: "properties.path", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SubvolumeModel: coreClient.CompositeMapper = { @@ -3813,189 +3502,85 @@ export const SubvolumeModel: 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", + }, }, path: { serializedName: "properties.path", type: { - name: "String" - } + name: "String", + }, }, parentPath: { serializedName: "properties.parentPath", type: { - name: "String" - } + name: "String", + }, }, size: { serializedName: "properties.size", type: { - name: "Number" - } + name: "Number", + }, }, bytesUsed: { serializedName: "properties.bytesUsed", type: { - name: "Number" - } + name: "Number", + }, }, permissions: { serializedName: "properties.permissions", type: { - name: "String" - } + name: "String", + }, }, creationTimeStamp: { serializedName: "properties.creationTimeStamp", type: { - name: "DateTime" - } + name: "DateTime", + }, }, accessedTimeStamp: { serializedName: "properties.accessedTimeStamp", type: { - name: "DateTime" - } + name: "DateTime", + }, }, modifiedTimeStamp: { serializedName: "properties.modifiedTimeStamp", type: { - name: "DateTime" - } + name: "DateTime", + }, }, changedTimeStamp: { serializedName: "properties.changedTimeStamp", type: { - name: "DateTime" - } + name: "DateTime", + }, }, provisioningState: { serializedName: "properties.provisioningState", type: { - name: "String" - } - } - } - } -}; - -export const BackupVaultsList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupVaultsList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BackupVault" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const BackupVaultPatch: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupVaultPatch", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const BackupRestoreFiles: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupRestoreFiles", - modelProperties: { - fileList: { - constraints: { - MinItems: 1, - MaxItems: 8 + name: "String", }, - serializedName: "fileList", - required: true, - type: { - name: "Sequence", - element: { - constraints: { - MaxLength: 1024, - MinLength: 1 - }, - type: { - name: "String" - } - } - } }, - restoreFilePath: { - constraints: { - Pattern: new RegExp("^\\/.*$") - }, - serializedName: "restoreFilePath", - type: { - name: "String" - } - }, - destinationVolumeId: { - serializedName: "destinationVolumeId", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const BackupsMigrationRequest: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupsMigrationRequest", - modelProperties: { - backupVaultId: { - serializedName: "backupVaultId", - required: true, - type: { - name: "String" - } - } - } - } + }, + }, }; export const ResourceIdentity: coreClient.CompositeMapper = { @@ -4007,24 +3592,24 @@ export const ResourceIdentity: 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 MountTarget: coreClient.CompositeMapper = { @@ -4036,80 +3621,80 @@ export const MountTarget: coreClient.CompositeMapper = { serializedName: "location", required: true, 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" } }, + }, }, mountTargetId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "properties.mountTargetId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, fileSystemId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "properties.fileSystemId", required: true, type: { - name: "String" - } + name: "String", + }, }, ipAddress: { serializedName: "properties.ipAddress", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, smbServerFqdn: { serializedName: "properties.smbServerFqdn", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SnapshotPolicyDetails: coreClient.CompositeMapper = { @@ -4120,80 +3705,117 @@ export const SnapshotPolicyDetails: 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" } }, + }, }, hourlySchedule: { serializedName: "properties.hourlySchedule", type: { name: "Composite", - className: "HourlySchedule" - } + className: "HourlySchedule", + }, }, dailySchedule: { serializedName: "properties.dailySchedule", type: { name: "Composite", - className: "DailySchedule" - } + className: "DailySchedule", + }, }, weeklySchedule: { serializedName: "properties.weeklySchedule", type: { name: "Composite", - className: "WeeklySchedule" - } + className: "WeeklySchedule", + }, }, monthlySchedule: { serializedName: "properties.monthlySchedule", type: { name: "Composite", - className: "MonthlySchedule" - } + className: "MonthlySchedule", + }, }, enabled: { serializedName: "properties.enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const CloudError: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudError", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "CloudErrorBody", + }, + }, + }, + }, +}; + +export const CloudErrorBody: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudErrorBody", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + type: { + name: "String", + }, + }, + }, + }, }; export const ProxyResource: coreClient.CompositeMapper = { @@ -4201,9 +3823,9 @@ export const ProxyResource: coreClient.CompositeMapper = { name: "Composite", className: "ProxyResource", modelProperties: { - ...Resource.type.modelProperties - } - } + ...Resource.type.modelProperties, + }, + }, }; export const TrackedResource: coreClient.CompositeMapper = { @@ -4216,18 +3838,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 SubscriptionQuotaItem: coreClient.CompositeMapper = { @@ -4240,46 +3862,18 @@ export const SubscriptionQuotaItem: coreClient.CompositeMapper = { serializedName: "properties.current", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, default: { serializedName: "properties.default", readOnly: true, type: { - name: "Number" - } - } - } - } -}; - -export const RegionInfoResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RegionInfoResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - storageToNetworkProximity: { - serializedName: "properties.storageToNetworkProximity", - type: { - name: "String" - } + name: "Number", + }, }, - availabilityZoneMappings: { - serializedName: "properties.availabilityZoneMappings", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RegionInfoAvailabilityZoneMappingsItem" - } - } - } - } - } - } + }, + }, }; export const Snapshot: coreClient.CompositeMapper = { @@ -4292,131 +3886,39 @@ export const Snapshot: coreClient.CompositeMapper = { serializedName: "location", required: true, type: { - name: "String" - } - }, - snapshotId: { - constraints: { - Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" - ), - MaxLength: 36, - MinLength: 36 + name: "String", }, - serializedName: "properties.snapshotId", - readOnly: true, - type: { - name: "String" - } - }, - created: { - serializedName: "properties.created", - readOnly: true, - type: { - name: "DateTime" - } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const Backup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Backup", - modelProperties: { - ...ProxyResource.type.modelProperties, - backupId: { + snapshotId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 - }, - serializedName: "properties.backupId", - readOnly: true, - type: { - name: "String" - } - }, - creationDate: { - serializedName: "properties.creationDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - size: { - serializedName: "properties.size", - readOnly: true, - type: { - name: "Number" - } - }, - label: { - serializedName: "properties.label", - type: { - name: "String" - } - }, - backupType: { - serializedName: "properties.backupType", + MinLength: 36, + }, + serializedName: "properties.snapshotId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - failureReason: { - serializedName: "properties.failureReason", + created: { + serializedName: "properties.created", readOnly: true, type: { - name: "String" - } - }, - volumeResourceId: { - serializedName: "properties.volumeResourceId", - required: true, - type: { - name: "String" - } - }, - useExistingSnapshot: { - defaultValue: false, - serializedName: "properties.useExistingSnapshot", - type: { - name: "Boolean" - } - }, - snapshotName: { - serializedName: "properties.snapshotName", - type: { - name: "String" - } + name: "DateTime", + }, }, - backupPolicyResourceId: { - serializedName: "properties.backupPolicyResourceId", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SubvolumeInfo: coreClient.CompositeMapper = { @@ -4428,32 +3930,32 @@ export const SubvolumeInfo: coreClient.CompositeMapper = { path: { serializedName: "properties.path", type: { - name: "String" - } + name: "String", + }, }, size: { serializedName: "properties.size", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, parentPath: { serializedName: "properties.parentPath", nullable: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NetAppAccount: coreClient.CompositeMapper = { @@ -4466,22 +3968,22 @@ export const NetAppAccount: coreClient.CompositeMapper = { serializedName: "etag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "ManagedServiceIdentity" - } + className: "ManagedServiceIdentity", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, activeDirectories: { serializedName: "properties.activeDirectories", @@ -4490,47 +3992,28 @@ export const NetAppAccount: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ActiveDirectory" - } - } - } + className: "ActiveDirectory", + }, + }, + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "AccountEncryption" - } + className: "AccountEncryption", + }, }, disableShowmount: { serializedName: "properties.disableShowmount", readOnly: true, nullable: true, type: { - name: "Boolean" - } - }, - nfsV4IDDomain: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9.-]{0,253}[a-zA-Z0-9]$"), - MaxLength: 255 + name: "Boolean", }, - serializedName: "properties.nfsV4IDDomain", - nullable: true, - type: { - name: "String" - } }, - isMultiAdEnabled: { - serializedName: "properties.isMultiAdEnabled", - readOnly: true, - nullable: true, - type: { - name: "Boolean" - } - } - } - } + }, + }, }; export const CapacityPool: coreClient.CompositeMapper = { @@ -4543,83 +4026,83 @@ export const CapacityPool: coreClient.CompositeMapper = { serializedName: "etag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, poolId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "properties.poolId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, size: { defaultValue: 4398046511104, serializedName: "properties.size", required: true, type: { - name: "Number" - } + name: "Number", + }, }, serviceLevel: { defaultValue: "Premium", serializedName: "properties.serviceLevel", required: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, totalThroughputMibps: { serializedName: "properties.totalThroughputMibps", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, utilizedThroughputMibps: { serializedName: "properties.utilizedThroughputMibps", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, qosType: { serializedName: "properties.qosType", type: { - name: "String" - } + name: "String", + }, }, coolAccess: { defaultValue: false, serializedName: "properties.coolAccess", type: { - name: "Boolean" - } + name: "Boolean", + }, }, encryptionType: { defaultValue: "Single", serializedName: "properties.encryptionType", nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Volume: coreClient.CompositeMapper = { @@ -4632,8 +4115,8 @@ export const Volume: coreClient.CompositeMapper = { serializedName: "etag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, zones: { serializedName: "zones", @@ -4642,65 +4125,65 @@ export const Volume: coreClient.CompositeMapper = { element: { constraints: { MaxLength: 255, - MinLength: 1 + MinLength: 1, }, type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, fileSystemId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "properties.fileSystemId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, creationToken: { constraints: { Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9\\-]{0,79}$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.creationToken", required: true, type: { - name: "String" - } + name: "String", + }, }, serviceLevel: { defaultValue: "Premium", serializedName: "properties.serviceLevel", type: { - name: "String" - } + name: "String", + }, }, usageThreshold: { defaultValue: 107374182400, constraints: { InclusiveMaximum: 2638827906662400, - InclusiveMinimum: 107374182400 + InclusiveMinimum: 107374182400, }, serializedName: "properties.usageThreshold", required: true, type: { - name: "Number" - } + name: "Number", + }, }, exportPolicy: { serializedName: "properties.exportPolicy", type: { name: "Composite", - className: "VolumePropertiesExportPolicy" - } + className: "VolumePropertiesExportPolicy", + }, }, protocolTypes: { serializedName: "properties.protocolTypes", @@ -4708,79 +4191,79 @@ export const Volume: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, snapshotId: { serializedName: "properties.snapshotId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, deleteBaseSnapshot: { serializedName: "properties.deleteBaseSnapshot", type: { - name: "Boolean" - } + name: "Boolean", + }, }, backupId: { serializedName: "properties.backupId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, baremetalTenantId: { serializedName: "properties.baremetalTenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, subnetId: { serializedName: "properties.subnetId", required: true, type: { - name: "String" - } + name: "String", + }, }, networkFeatures: { defaultValue: "Basic", serializedName: "properties.networkFeatures", type: { - name: "String" - } + name: "String", + }, }, networkSiblingSetId: { constraints: { Pattern: new RegExp( - "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", ), MaxLength: 36, - MinLength: 36 + MinLength: 36, }, serializedName: "properties.networkSiblingSetId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, storageToNetworkProximity: { serializedName: "properties.storageToNetworkProximity", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, mountTargets: { serializedName: "properties.mountTargets", @@ -4790,168 +4273,168 @@ export const Volume: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MountTargetProperties" - } - } - } + className: "MountTargetProperties", + }, + }, + }, }, volumeType: { serializedName: "properties.volumeType", type: { - name: "String" - } + name: "String", + }, }, dataProtection: { serializedName: "properties.dataProtection", type: { name: "Composite", - className: "VolumePropertiesDataProtection" - } + className: "VolumePropertiesDataProtection", + }, }, isRestoring: { serializedName: "properties.isRestoring", type: { - name: "Boolean" - } + name: "Boolean", + }, }, snapshotDirectoryVisible: { defaultValue: true, serializedName: "properties.snapshotDirectoryVisible", type: { - name: "Boolean" - } + name: "Boolean", + }, }, kerberosEnabled: { defaultValue: false, serializedName: "properties.kerberosEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, securityStyle: { defaultValue: "unix", serializedName: "properties.securityStyle", type: { - name: "String" - } + name: "String", + }, }, smbEncryption: { defaultValue: false, serializedName: "properties.smbEncryption", type: { - name: "Boolean" - } + name: "Boolean", + }, }, smbAccessBasedEnumeration: { serializedName: "properties.smbAccessBasedEnumeration", nullable: true, type: { - name: "String" - } + name: "String", + }, }, smbNonBrowsable: { serializedName: "properties.smbNonBrowsable", type: { - name: "String" - } + name: "String", + }, }, smbContinuouslyAvailable: { defaultValue: false, serializedName: "properties.smbContinuouslyAvailable", type: { - name: "Boolean" - } + name: "Boolean", + }, }, throughputMibps: { serializedName: "properties.throughputMibps", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, actualThroughputMibps: { serializedName: "properties.actualThroughputMibps", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, encryptionKeySource: { defaultValue: "Microsoft.NetApp", serializedName: "properties.encryptionKeySource", type: { - name: "String" - } + name: "String", + }, }, keyVaultPrivateEndpointResourceId: { serializedName: "properties.keyVaultPrivateEndpointResourceId", type: { - name: "String" - } + name: "String", + }, }, ldapEnabled: { defaultValue: false, serializedName: "properties.ldapEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, coolAccess: { defaultValue: false, serializedName: "properties.coolAccess", type: { - name: "Boolean" - } + name: "Boolean", + }, }, coolnessPeriod: { constraints: { - InclusiveMaximum: 63, - InclusiveMinimum: 7 + InclusiveMaximum: 183, + InclusiveMinimum: 7, }, serializedName: "properties.coolnessPeriod", type: { - name: "Number" - } + name: "Number", + }, }, coolAccessRetrievalPolicy: { serializedName: "properties.coolAccessRetrievalPolicy", type: { - name: "String" - } + name: "String", + }, }, unixPermissions: { constraints: { MaxLength: 4, - MinLength: 4 + MinLength: 4, }, serializedName: "properties.unixPermissions", nullable: true, type: { - name: "String" - } + name: "String", + }, }, cloneProgress: { serializedName: "properties.cloneProgress", readOnly: true, nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, fileAccessLogs: { defaultValue: "Disabled", serializedName: "properties.fileAccessLogs", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, avsDataStore: { defaultValue: "Disabled", serializedName: "properties.avsDataStore", type: { - name: "String" - } + name: "String", + }, }, dataStoreResourceId: { serializedName: "properties.dataStoreResourceId", @@ -4960,77 +4443,77 @@ export const Volume: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, isDefaultQuotaEnabled: { defaultValue: false, serializedName: "properties.isDefaultQuotaEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, defaultUserQuotaInKiBs: { defaultValue: 0, serializedName: "properties.defaultUserQuotaInKiBs", type: { - name: "Number" - } + name: "Number", + }, }, defaultGroupQuotaInKiBs: { defaultValue: 0, serializedName: "properties.defaultGroupQuotaInKiBs", type: { - name: "Number" - } + name: "Number", + }, }, maximumNumberOfFiles: { serializedName: "properties.maximumNumberOfFiles", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, volumeGroupName: { serializedName: "properties.volumeGroupName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, capacityPoolResourceId: { serializedName: "properties.capacityPoolResourceId", type: { - name: "String" - } + name: "String", + }, }, proximityPlacementGroup: { serializedName: "properties.proximityPlacementGroup", type: { - name: "String" - } + name: "String", + }, }, t2Network: { serializedName: "properties.t2Network", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, volumeSpecName: { serializedName: "properties.volumeSpecName", type: { - name: "String" - } + name: "String", + }, }, encrypted: { serializedName: "properties.encrypted", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, placementRules: { serializedName: "properties.placementRules", @@ -5039,51 +4522,43 @@ export const Volume: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PlacementKeyValuePairs" - } - } - } + className: "PlacementKeyValuePairs", + }, + }, + }, }, enableSubvolumes: { defaultValue: "Disabled", serializedName: "properties.enableSubvolumes", type: { - name: "String" - } + name: "String", + }, }, provisionedAvailabilityZone: { serializedName: "properties.provisionedAvailabilityZone", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, isLargeVolume: { defaultValue: false, serializedName: "properties.isLargeVolume", type: { - name: "Boolean" - } + name: "Boolean", + }, }, originatingResourceId: { serializedName: "properties.originatingResourceId", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, - inheritedSizeInBytes: { - serializedName: "properties.inheritedSizeInBytes", - readOnly: true, - nullable: true, - type: { - name: "Number" - } - } - } - } + }, + }, }; export const SnapshotPolicy: coreClient.CompositeMapper = { @@ -5096,52 +4571,52 @@ export const SnapshotPolicy: coreClient.CompositeMapper = { serializedName: "etag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hourlySchedule: { serializedName: "properties.hourlySchedule", type: { name: "Composite", - className: "HourlySchedule" - } + className: "HourlySchedule", + }, }, dailySchedule: { serializedName: "properties.dailySchedule", type: { name: "Composite", - className: "DailySchedule" - } + className: "DailySchedule", + }, }, weeklySchedule: { serializedName: "properties.weeklySchedule", type: { name: "Composite", - className: "WeeklySchedule" - } + className: "WeeklySchedule", + }, }, monthlySchedule: { serializedName: "properties.monthlySchedule", type: { name: "Composite", - className: "MonthlySchedule" - } + className: "MonthlySchedule", + }, }, enabled: { serializedName: "properties.enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BackupPolicy: coreClient.CompositeMapper = { @@ -5154,53 +4629,53 @@ export const BackupPolicy: coreClient.CompositeMapper = { serializedName: "etag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, backupPolicyId: { serializedName: "properties.backupPolicyId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, dailyBackupsToKeep: { serializedName: "properties.dailyBackupsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, weeklyBackupsToKeep: { serializedName: "properties.weeklyBackupsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, monthlyBackupsToKeep: { serializedName: "properties.monthlyBackupsToKeep", type: { - name: "Number" - } + name: "Number", + }, }, volumesAssigned: { serializedName: "properties.volumesAssigned", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, enabled: { serializedName: "properties.enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, volumeBackups: { serializedName: "properties.volumeBackups", @@ -5210,13 +4685,13 @@ export const BackupPolicy: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VolumeBackups" - } - } - } - } - } - } + className: "VolumeBackups", + }, + }, + }, + }, + }, + }, }; export const VolumeQuotaRule: coreClient.CompositeMapper = { @@ -5237,93 +4712,63 @@ export const VolumeQuotaRule: coreClient.CompositeMapper = { "Deleting", "Moving", "Failed", - "Succeeded" - ] - } + "Succeeded", + ], + }, }, quotaSizeInKiBs: { serializedName: "properties.quotaSizeInKiBs", type: { - name: "Number" - } + name: "Number", + }, }, quotaType: { serializedName: "properties.quotaType", type: { - name: "String" - } + name: "String", + }, }, quotaTarget: { serializedName: "properties.quotaTarget", type: { - name: "String" - } - } - } - } -}; - -export const BackupVault: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupVault", - modelProperties: { - ...TrackedResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const NetAppResourceUpdateNetworkSiblingSetHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetAppResourceUpdateNetworkSiblingSetHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AccountsMigrateEncryptionKeyHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccountsMigrateEncryptionKeyHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; +export const NetAppResourceUpdateNetworkSiblingSetHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NetAppResourceUpdateNetworkSiblingSetHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; -export const VolumesPopulateAvailabilityZoneHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VolumesPopulateAvailabilityZoneHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; +export const VolumesPopulateAvailabilityZoneHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VolumesPopulateAvailabilityZoneHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; export const VolumesResetCifsPasswordHeaders: coreClient.CompositeMapper = { type: { @@ -5333,26 +4778,11 @@ export const VolumesResetCifsPasswordHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; - -export const VolumesSplitCloneFromParentHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VolumesSplitCloneFromParentHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VolumesBreakFileLocksHeaders: coreClient.CompositeMapper = { @@ -5363,144 +4793,25 @@ export const VolumesBreakFileLocksHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; - -export const VolumesListGetGroupIdListForLdapUserHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VolumesListGetGroupIdListForLdapUserHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const BackupsUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupsUpdateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const BackupsDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupsDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const AccountBackupsDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccountBackupsDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const BackupVaultsUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupVaultsUpdateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const BackupVaultsDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupVaultsDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const BackupsUnderBackupVaultRestoreFilesHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupsUnderBackupVaultRestoreFilesHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const BackupsUnderVolumeMigrateBackupsHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupsUnderVolumeMigrateBackupsHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const BackupsUnderAccountMigrateBackupsHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupsUnderAccountMigrateBackupsHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; +export const VolumesListGetGroupIdListForLdapUserHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VolumesListGetGroupIdListForLdapUserHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; diff --git a/sdk/netapp/arm-netapp/src/models/parameters.ts b/sdk/netapp/arm-netapp/src/models/parameters.ts index a29ceee75306..a856f1e92a54 100644 --- a/sdk/netapp/arm-netapp/src/models/parameters.ts +++ b/sdk/netapp/arm-netapp/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { ResourceNameAvailabilityRequest as ResourceNameAvailabilityRequestMapper, @@ -19,7 +19,6 @@ import { UpdateNetworkSiblingSetRequest as UpdateNetworkSiblingSetRequestMapper, NetAppAccount as NetAppAccountMapper, NetAppAccountPatch as NetAppAccountPatchMapper, - EncryptionMigrationRequest as EncryptionMigrationRequestMapper, CapacityPool as CapacityPoolMapper, CapacityPoolPatch as CapacityPoolPatchMapper, Volume as VolumeMapper, @@ -36,8 +35,6 @@ import { SnapshotRestoreFiles as SnapshotRestoreFilesMapper, SnapshotPolicy as SnapshotPolicyMapper, SnapshotPolicyPatch as SnapshotPolicyPatchMapper, - Backup as BackupMapper, - BackupPatch as BackupPatchMapper, BackupPolicy as BackupPolicyMapper, BackupPolicyPatch as BackupPolicyPatchMapper, VolumeQuotaRule as VolumeQuotaRuleMapper, @@ -45,10 +42,6 @@ import { VolumeGroupDetails as VolumeGroupDetailsMapper, SubvolumeInfo as SubvolumeInfoMapper, SubvolumePatchRequest as SubvolumePatchRequestMapper, - BackupVault as BackupVaultMapper, - BackupVaultPatch as BackupVaultPatchMapper, - BackupRestoreFiles as BackupRestoreFilesMapper, - BackupsMigrationRequest as BackupsMigrationRequestMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -58,9 +51,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -69,22 +62,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-05-01-preview", + defaultValue: "2023-07-01", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const contentType: OperationParameter = { @@ -94,24 +87,24 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const name: OperationParameter = { parameterPath: "name", - mapper: ResourceNameAvailabilityRequestMapper + mapper: ResourceNameAvailabilityRequestMapper, }; export const typeParam: OperationParameter = { parameterPath: "typeParam", - mapper: ResourceNameAvailabilityRequestMapper + mapper: ResourceNameAvailabilityRequestMapper, }; export const resourceGroup: OperationParameter = { parameterPath: "resourceGroup", - mapper: ResourceNameAvailabilityRequestMapper + mapper: ResourceNameAvailabilityRequestMapper, }; export const subscriptionId: OperationURLParameter = { @@ -120,78 +113,78 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "Uuid" - } - } + name: "Uuid", + }, + }, }; export const location: OperationURLParameter = { parameterPath: "location", mapper: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "location", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const name1: OperationParameter = { parameterPath: "name", - mapper: FilePathAvailabilityRequestMapper + mapper: FilePathAvailabilityRequestMapper, }; export const subnetId: OperationParameter = { parameterPath: "subnetId", - mapper: FilePathAvailabilityRequestMapper + mapper: FilePathAvailabilityRequestMapper, }; export const name2: OperationParameter = { parameterPath: "name", - mapper: QuotaAvailabilityRequestMapper + mapper: QuotaAvailabilityRequestMapper, }; export const typeParam1: OperationParameter = { parameterPath: "typeParam", - mapper: QuotaAvailabilityRequestMapper + mapper: QuotaAvailabilityRequestMapper, }; export const resourceGroup1: OperationParameter = { parameterPath: "resourceGroup", - mapper: QuotaAvailabilityRequestMapper + mapper: QuotaAvailabilityRequestMapper, }; export const networkSiblingSetId: OperationParameter = { parameterPath: "networkSiblingSetId", - mapper: QueryNetworkSiblingSetRequestMapper + mapper: QueryNetworkSiblingSetRequestMapper, }; export const subnetId1: OperationParameter = { parameterPath: "subnetId", - mapper: QueryNetworkSiblingSetRequestMapper + mapper: QueryNetworkSiblingSetRequestMapper, }; export const networkSiblingSetId1: OperationParameter = { parameterPath: "networkSiblingSetId", - mapper: UpdateNetworkSiblingSetRequestMapper + mapper: UpdateNetworkSiblingSetRequestMapper, }; export const subnetId2: OperationParameter = { parameterPath: "subnetId", - mapper: UpdateNetworkSiblingSetRequestMapper + mapper: UpdateNetworkSiblingSetRequestMapper, }; export const networkSiblingSetStateId: OperationParameter = { parameterPath: "networkSiblingSetStateId", - mapper: UpdateNetworkSiblingSetRequestMapper + mapper: UpdateNetworkSiblingSetRequestMapper, }; export const networkFeatures: OperationParameter = { parameterPath: "networkFeatures", - mapper: UpdateNetworkSiblingSetRequestMapper + mapper: UpdateNetworkSiblingSetRequestMapper, }; export const quotaLimitName: OperationURLParameter = { @@ -200,21 +193,9 @@ export const quotaLimitName: OperationURLParameter = { serializedName: "quotaLimitName", required: true, type: { - name: "String" - } - } -}; - -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", - mapper: { - serializedName: "nextLink", - required: true, - type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true }; export const resourceGroupName: OperationURLParameter = { @@ -222,43 +203,50 @@ export const resourceGroupName: OperationURLParameter = { mapper: { constraints: { MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const accountName: OperationURLParameter = { parameterPath: "accountName", mapper: { constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,127}$") + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,127}$"), }, serializedName: "accountName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const body5: OperationParameter = { parameterPath: "body", - mapper: NetAppAccountMapper + mapper: NetAppAccountMapper, }; export const body6: OperationParameter = { parameterPath: "body", - mapper: NetAppAccountPatchMapper + mapper: NetAppAccountPatchMapper, }; -export const body7: OperationParameter = { - parameterPath: ["options", "body"], - mapper: EncryptionMigrationRequestMapper +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", + required: true, + type: { + name: "String", + }, + }, + skipEncoding: true, }; export const poolName: OperationURLParameter = { @@ -267,24 +255,24 @@ export const poolName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$"), MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "poolName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const body8: OperationParameter = { +export const body7: OperationParameter = { parameterPath: "body", - mapper: CapacityPoolMapper + mapper: CapacityPoolMapper, }; -export const body9: OperationParameter = { +export const body8: OperationParameter = { parameterPath: "body", - mapper: CapacityPoolPatchMapper + mapper: CapacityPoolPatchMapper, }; export const volumeName: OperationURLParameter = { @@ -293,24 +281,24 @@ export const volumeName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9\\-_]{0,63}$"), MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "volumeName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const body10: OperationParameter = { +export const body9: OperationParameter = { parameterPath: "body", - mapper: VolumeMapper + mapper: VolumeMapper, }; -export const body11: OperationParameter = { +export const body10: OperationParameter = { parameterPath: "body", - mapper: VolumePatchMapper + mapper: VolumePatchMapper, }; export const forceDelete: OperationQueryParameter = { @@ -318,49 +306,49 @@ export const forceDelete: OperationQueryParameter = { mapper: { serializedName: "forceDelete", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; -export const body12: OperationParameter = { +export const body11: OperationParameter = { parameterPath: "body", - mapper: VolumeRevertMapper + mapper: VolumeRevertMapper, }; -export const body13: OperationParameter = { +export const body12: OperationParameter = { parameterPath: ["options", "body"], - mapper: BreakFileLocksRequestMapper + mapper: BreakFileLocksRequestMapper, }; -export const body14: OperationParameter = { +export const body13: OperationParameter = { parameterPath: "body", - mapper: GetGroupIdListForLdapUserRequestMapper + mapper: GetGroupIdListForLdapUserRequestMapper, }; -export const body15: OperationParameter = { +export const body14: OperationParameter = { parameterPath: ["options", "body"], - mapper: BreakReplicationRequestMapper + mapper: BreakReplicationRequestMapper, }; -export const body16: OperationParameter = { +export const body15: OperationParameter = { parameterPath: "body", - mapper: ReestablishReplicationRequestMapper + mapper: ReestablishReplicationRequestMapper, }; -export const body17: OperationParameter = { +export const body16: OperationParameter = { parameterPath: "body", - mapper: AuthorizeRequestMapper + mapper: AuthorizeRequestMapper, }; -export const body18: OperationParameter = { +export const body17: OperationParameter = { parameterPath: "body", - mapper: PoolChangeRequestMapper + mapper: PoolChangeRequestMapper, }; -export const body19: OperationParameter = { +export const body18: OperationParameter = { parameterPath: ["options", "body"], - mapper: RelocateVolumeRequestMapper + mapper: RelocateVolumeRequestMapper, }; export const snapshotName: OperationURLParameter = { @@ -369,31 +357,31 @@ export const snapshotName: OperationURLParameter = { serializedName: "snapshotName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const body20: OperationParameter = { +export const body19: OperationParameter = { parameterPath: "body", - mapper: SnapshotMapper + mapper: SnapshotMapper, }; -export const body21: OperationParameter = { +export const body20: OperationParameter = { parameterPath: "body", mapper: { serializedName: "body", required: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } + value: { type: { name: "any" } }, + }, + }, }; -export const body22: OperationParameter = { +export const body21: OperationParameter = { parameterPath: "body", - mapper: SnapshotRestoreFilesMapper + mapper: SnapshotRestoreFilesMapper, }; export const snapshotPolicyName: OperationURLParameter = { @@ -402,77 +390,19 @@ export const snapshotPolicyName: OperationURLParameter = { serializedName: "snapshotPolicyName", required: true, type: { - name: "String" - } - } -}; - -export const body23: OperationParameter = { - parameterPath: "body", - mapper: SnapshotPolicyMapper -}; - -export const body24: OperationParameter = { - parameterPath: "body", - mapper: SnapshotPolicyPatchMapper -}; - -export const backupVaultName: OperationURLParameter = { - parameterPath: "backupVaultName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$") + name: "String", }, - serializedName: "backupVaultName", - required: true, - type: { - name: "String" - } - } -}; - -export const filter: OperationQueryParameter = { - parameterPath: ["options", "filter"], - mapper: { - serializedName: "$filter", - type: { - name: "String" - } - } -}; - -export const backupName: OperationURLParameter = { - parameterPath: "backupName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,255}$") - }, - serializedName: "backupName", - required: true, - type: { - name: "String" - } - } + }, }; -export const body25: OperationParameter = { +export const body22: OperationParameter = { parameterPath: "body", - mapper: BackupMapper -}; - -export const body26: OperationParameter = { - parameterPath: ["options", "body"], - mapper: BackupPatchMapper + mapper: SnapshotPolicyMapper, }; -export const includeOnlyBackupsFromDeletedVolumes: OperationQueryParameter = { - parameterPath: ["options", "includeOnlyBackupsFromDeletedVolumes"], - mapper: { - serializedName: "includeOnlyBackupsFromDeletedVolumes", - type: { - name: "String" - } - } +export const body23: OperationParameter = { + parameterPath: "body", + mapper: SnapshotPolicyPatchMapper, }; export const backupPolicyName: OperationURLParameter = { @@ -481,19 +411,19 @@ export const backupPolicyName: OperationURLParameter = { serializedName: "backupPolicyName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const body27: OperationParameter = { +export const body24: OperationParameter = { parameterPath: "body", - mapper: BackupPolicyMapper + mapper: BackupPolicyMapper, }; -export const body28: OperationParameter = { +export const body25: OperationParameter = { parameterPath: "body", - mapper: BackupPolicyPatchMapper + mapper: BackupPolicyPatchMapper, }; export const volumeQuotaRuleName: OperationURLParameter = { @@ -502,19 +432,19 @@ export const volumeQuotaRuleName: OperationURLParameter = { serializedName: "volumeQuotaRuleName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const body29: OperationParameter = { +export const body26: OperationParameter = { parameterPath: "body", - mapper: VolumeQuotaRuleMapper + mapper: VolumeQuotaRuleMapper, }; -export const body30: OperationParameter = { +export const body27: OperationParameter = { parameterPath: "body", - mapper: VolumeQuotaRulePatchMapper + mapper: VolumeQuotaRulePatchMapper, }; export const volumeGroupName: OperationURLParameter = { @@ -523,19 +453,19 @@ export const volumeGroupName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$"), MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "volumeGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const body31: OperationParameter = { +export const body28: OperationParameter = { parameterPath: "body", - mapper: VolumeGroupDetailsMapper + mapper: VolumeGroupDetailsMapper, }; export const subvolumeName: OperationURLParameter = { @@ -544,42 +474,22 @@ export const subvolumeName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9\\-_]{0,63}$"), MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "subvolumeName", required: true, type: { - name: "String" - } - } -}; - -export const body32: OperationParameter = { - parameterPath: "body", - mapper: SubvolumeInfoMapper -}; - -export const body33: OperationParameter = { - parameterPath: "body", - mapper: SubvolumePatchRequestMapper -}; - -export const body34: OperationParameter = { - parameterPath: "body", - mapper: BackupVaultMapper -}; - -export const body35: OperationParameter = { - parameterPath: "body", - mapper: BackupVaultPatchMapper + name: "String", + }, + }, }; -export const body36: OperationParameter = { +export const body29: OperationParameter = { parameterPath: "body", - mapper: BackupRestoreFilesMapper + mapper: SubvolumeInfoMapper, }; -export const body37: OperationParameter = { +export const body30: OperationParameter = { parameterPath: "body", - mapper: BackupsMigrationRequestMapper + mapper: SubvolumePatchRequestMapper, }; diff --git a/sdk/netapp/arm-netapp/src/netAppManagementClient.ts b/sdk/netapp/arm-netapp/src/netAppManagementClient.ts index b89b42a3fb3d..1e1981b0c7c0 100644 --- a/sdk/netapp/arm-netapp/src/netAppManagementClient.ts +++ b/sdk/netapp/arm-netapp/src/netAppManagementClient.ts @@ -11,50 +11,38 @@ 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 { OperationsImpl, NetAppResourceImpl, NetAppResourceQuotaLimitsImpl, - NetAppResourceRegionInfosImpl, AccountsImpl, PoolsImpl, VolumesImpl, SnapshotsImpl, SnapshotPoliciesImpl, BackupsImpl, - AccountBackupsImpl, BackupPoliciesImpl, VolumeQuotaRulesImpl, VolumeGroupsImpl, SubvolumesImpl, - BackupVaultsImpl, - BackupsUnderBackupVaultImpl, - BackupsUnderVolumeImpl, - BackupsUnderAccountImpl } from "./operations"; import { Operations, NetAppResource, NetAppResourceQuotaLimits, - NetAppResourceRegionInfos, Accounts, Pools, Volumes, Snapshots, SnapshotPolicies, Backups, - AccountBackups, BackupPolicies, VolumeQuotaRules, VolumeGroups, Subvolumes, - BackupVaults, - BackupsUnderBackupVault, - BackupsUnderVolume, - BackupsUnderAccount } from "./operationsInterfaces"; import { NetAppManagementClientOptionalParams } from "./models"; @@ -72,7 +60,7 @@ export class NetAppManagementClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: NetAppManagementClientOptionalParams + options?: NetAppManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -87,10 +75,10 @@ export class NetAppManagementClient extends coreClient.ServiceClient { } const defaults: NetAppManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-netapp/20.0.0-beta.2`; + const packageDetails = `azsdk-js-arm-netapp/20.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -100,20 +88,21 @@ export class NetAppManagementClient 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 ( @@ -123,7 +112,7 @@ export class NetAppManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -133,9 +122,9 @@ export class NetAppManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -143,26 +132,20 @@ export class NetAppManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-05-01-preview"; + this.apiVersion = options.apiVersion || "2023-07-01"; this.operations = new OperationsImpl(this); this.netAppResource = new NetAppResourceImpl(this); this.netAppResourceQuotaLimits = new NetAppResourceQuotaLimitsImpl(this); - this.netAppResourceRegionInfos = new NetAppResourceRegionInfosImpl(this); this.accounts = new AccountsImpl(this); this.pools = new PoolsImpl(this); this.volumes = new VolumesImpl(this); this.snapshots = new SnapshotsImpl(this); this.snapshotPolicies = new SnapshotPoliciesImpl(this); this.backups = new BackupsImpl(this); - this.accountBackups = new AccountBackupsImpl(this); this.backupPolicies = new BackupPoliciesImpl(this); this.volumeQuotaRules = new VolumeQuotaRulesImpl(this); this.volumeGroups = new VolumeGroupsImpl(this); this.subvolumes = new SubvolumesImpl(this); - this.backupVaults = new BackupVaultsImpl(this); - this.backupsUnderBackupVault = new BackupsUnderBackupVaultImpl(this); - this.backupsUnderVolume = new BackupsUnderVolumeImpl(this); - this.backupsUnderAccount = new BackupsUnderAccountImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -175,7 +158,7 @@ export class NetAppManagementClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -189,7 +172,7 @@ export class NetAppManagementClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } @@ -197,20 +180,14 @@ export class NetAppManagementClient extends coreClient.ServiceClient { operations: Operations; netAppResource: NetAppResource; netAppResourceQuotaLimits: NetAppResourceQuotaLimits; - netAppResourceRegionInfos: NetAppResourceRegionInfos; accounts: Accounts; pools: Pools; volumes: Volumes; snapshots: Snapshots; snapshotPolicies: SnapshotPolicies; backups: Backups; - accountBackups: AccountBackups; backupPolicies: BackupPolicies; volumeQuotaRules: VolumeQuotaRules; volumeGroups: VolumeGroups; subvolumes: Subvolumes; - backupVaults: BackupVaults; - backupsUnderBackupVault: BackupsUnderBackupVault; - backupsUnderVolume: BackupsUnderVolume; - backupsUnderAccount: BackupsUnderAccount; } diff --git a/sdk/netapp/arm-netapp/src/operations/accountBackups.ts b/sdk/netapp/arm-netapp/src/operations/accountBackups.ts deleted file mode 100644 index 51f44bb6ae60..000000000000 --- a/sdk/netapp/arm-netapp/src/operations/accountBackups.ts +++ /dev/null @@ -1,324 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { AccountBackups } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { NetAppManagementClient } from "../netAppManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - Backup, - AccountBackupsListByNetAppAccountOptionalParams, - AccountBackupsListByNetAppAccountResponse, - AccountBackupsGetOptionalParams, - AccountBackupsGetResponse, - AccountBackupsDeleteOptionalParams, - AccountBackupsDeleteResponse -} from "../models"; - -/// -/** Class containing AccountBackups operations. */ -export class AccountBackupsImpl implements AccountBackups { - private readonly client: NetAppManagementClient; - - /** - * Initialize a new instance of the class AccountBackups class. - * @param client Reference to the service client - */ - constructor(client: NetAppManagementClient) { - this.client = client; - } - - /** - * List all Backups for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - public listByNetAppAccount( - resourceGroupName: string, - accountName: string, - options?: AccountBackupsListByNetAppAccountOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByNetAppAccountPagingAll( - resourceGroupName, - accountName, - 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.listByNetAppAccountPagingPage( - resourceGroupName, - accountName, - options, - settings - ); - } - }; - } - - private async *listByNetAppAccountPagingPage( - resourceGroupName: string, - accountName: string, - options?: AccountBackupsListByNetAppAccountOptionalParams, - _settings?: PageSettings - ): AsyncIterableIterator { - let result: AccountBackupsListByNetAppAccountResponse; - result = await this._listByNetAppAccount( - resourceGroupName, - accountName, - options - ); - yield result.value || []; - } - - private async *listByNetAppAccountPagingAll( - resourceGroupName: string, - accountName: string, - options?: AccountBackupsListByNetAppAccountOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByNetAppAccountPagingPage( - resourceGroupName, - accountName, - options - )) { - yield* page; - } - } - - /** - * List all Backups for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - private _listByNetAppAccount( - resourceGroupName: string, - accountName: string, - options?: AccountBackupsListByNetAppAccountOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, options }, - listByNetAppAccountOperationSpec - ); - } - - /** - * Gets the specified backup for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupName The name of the backup - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - backupName: string, - options?: AccountBackupsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, backupName, options }, - getOperationSpec - ); - } - - /** - * Delete the specified Backup for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupName The name of the backup - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - accountName: string, - backupName: string, - options?: AccountBackupsDeleteOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - AccountBackupsDeleteResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, accountName, backupName, options }, - spec: deleteOperationSpec - }); - const poller = await createHttpPoller< - AccountBackupsDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Delete the specified Backup for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupName The name of the backup - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - accountName: string, - backupName: string, - options?: AccountBackupsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - accountName, - backupName, - options - ); - return poller.pollUntilDone(); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByNetAppAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/accountBackups", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupsList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [ - Parameters.apiVersion, - Parameters.includeOnlyBackupsFromDeletedVolumes - ], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/accountBackups/{backupName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.Backup - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/accountBackups/{backupName}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.AccountBackupsDeleteHeaders - }, - 201: { - headersMapper: Mappers.AccountBackupsDeleteHeaders - }, - 202: { - headersMapper: Mappers.AccountBackupsDeleteHeaders - }, - 204: { - headersMapper: Mappers.AccountBackupsDeleteHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/netapp/arm-netapp/src/operations/accounts.ts b/sdk/netapp/arm-netapp/src/operations/accounts.ts index 2835df533976..b20b587b493b 100644 --- a/sdk/netapp/arm-netapp/src/operations/accounts.ts +++ b/sdk/netapp/arm-netapp/src/operations/accounts.ts @@ -16,7 +16,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -36,10 +36,8 @@ import { AccountsUpdateOptionalParams, AccountsUpdateResponse, AccountsRenewCredentialsOptionalParams, - AccountsMigrateEncryptionKeyOptionalParams, - AccountsMigrateEncryptionKeyResponse, AccountsListBySubscriptionNextResponse, - AccountsListNextResponse + AccountsListNextResponse, } from "../models"; /// @@ -60,7 +58,7 @@ export class AccountsImpl implements Accounts { * @param options The options parameters. */ public listBySubscription( - options?: AccountsListBySubscriptionOptionalParams + options?: AccountsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -75,13 +73,13 @@ export class AccountsImpl implements Accounts { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: AccountsListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AccountsListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -102,7 +100,7 @@ export class AccountsImpl implements Accounts { } private async *listBySubscriptionPagingAll( - options?: AccountsListBySubscriptionOptionalParams + options?: AccountsListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -116,7 +114,7 @@ export class AccountsImpl implements Accounts { */ public list( resourceGroupName: string, - options?: AccountsListOptionalParams + options?: AccountsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, options); return { @@ -131,14 +129,14 @@ export class AccountsImpl implements Accounts { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(resourceGroupName, options, settings); - } + }, }; } private async *listPagingPage( resourceGroupName: string, options?: AccountsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AccountsListResponse; let continuationToken = settings?.continuationToken; @@ -153,7 +151,7 @@ export class AccountsImpl implements Accounts { result = await this._listNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -164,7 +162,7 @@ export class AccountsImpl implements Accounts { private async *listPagingAll( resourceGroupName: string, - options?: AccountsListOptionalParams + options?: AccountsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(resourceGroupName, options)) { yield* page; @@ -176,11 +174,11 @@ export class AccountsImpl implements Accounts { * @param options The options parameters. */ private _listBySubscription( - options?: AccountsListBySubscriptionOptionalParams + options?: AccountsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -191,11 +189,11 @@ export class AccountsImpl implements Accounts { */ private _list( resourceGroupName: string, - options?: AccountsListOptionalParams + options?: AccountsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listOperationSpec + listOperationSpec, ); } @@ -208,11 +206,11 @@ export class AccountsImpl implements Accounts { get( resourceGroupName: string, accountName: string, - options?: AccountsGetOptionalParams + options?: AccountsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - getOperationSpec + getOperationSpec, ); } @@ -227,7 +225,7 @@ export class AccountsImpl implements Accounts { resourceGroupName: string, accountName: string, body: NetAppAccount, - options?: AccountsCreateOrUpdateOptionalParams + options?: AccountsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -236,21 +234,20 @@ export class AccountsImpl implements Accounts { > { 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); @@ -259,8 +256,8 @@ export class AccountsImpl implements Accounts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -268,15 +265,15 @@ export class AccountsImpl implements Accounts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, body, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< AccountsCreateOrUpdateResponse, @@ -284,7 +281,7 @@ export class AccountsImpl implements Accounts { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -301,13 +298,13 @@ export class AccountsImpl implements Accounts { resourceGroupName: string, accountName: string, body: NetAppAccount, - options?: AccountsCreateOrUpdateOptionalParams + options?: AccountsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, accountName, body, - options + options, ); return poller.pollUntilDone(); } @@ -321,25 +318,24 @@ export class AccountsImpl implements Accounts { async beginDelete( resourceGroupName: string, accountName: string, - options?: AccountsDeleteOptionalParams + options?: AccountsDeleteOptionalParams, ): 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); @@ -348,8 +344,8 @@ export class AccountsImpl implements Accounts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -357,20 +353,20 @@ export class AccountsImpl implements Accounts { 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; @@ -385,12 +381,12 @@ export class AccountsImpl implements Accounts { async beginDeleteAndWait( resourceGroupName: string, accountName: string, - options?: AccountsDeleteOptionalParams + options?: AccountsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, - options + options, ); return poller.pollUntilDone(); } @@ -406,7 +402,7 @@ export class AccountsImpl implements Accounts { resourceGroupName: string, accountName: string, body: NetAppAccountPatch, - options?: AccountsUpdateOptionalParams + options?: AccountsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -415,21 +411,20 @@ export class AccountsImpl implements Accounts { > { 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); @@ -438,8 +433,8 @@ export class AccountsImpl implements Accounts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -447,15 +442,15 @@ export class AccountsImpl implements Accounts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, body, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< AccountsUpdateResponse, @@ -463,7 +458,7 @@ export class AccountsImpl implements Accounts { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -480,13 +475,13 @@ export class AccountsImpl implements Accounts { resourceGroupName: string, accountName: string, body: NetAppAccountPatch, - options?: AccountsUpdateOptionalParams + options?: AccountsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, accountName, body, - options + options, ); return poller.pollUntilDone(); } @@ -502,25 +497,24 @@ export class AccountsImpl implements Accounts { async beginRenewCredentials( resourceGroupName: string, accountName: string, - options?: AccountsRenewCredentialsOptionalParams + options?: AccountsRenewCredentialsOptionalParams, ): 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); @@ -529,8 +523,8 @@ export class AccountsImpl implements Accounts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -538,20 +532,20 @@ export class AccountsImpl implements Accounts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, options }, - spec: renewCredentialsOperationSpec + spec: renewCredentialsOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -568,107 +562,12 @@ export class AccountsImpl implements Accounts { async beginRenewCredentialsAndWait( resourceGroupName: string, accountName: string, - options?: AccountsRenewCredentialsOptionalParams + options?: AccountsRenewCredentialsOptionalParams, ): Promise { const poller = await this.beginRenewCredentials( resourceGroupName, accountName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure - * Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from - * another account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - async beginMigrateEncryptionKey( - resourceGroupName: string, - accountName: string, - options?: AccountsMigrateEncryptionKeyOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - AccountsMigrateEncryptionKeyResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, accountName, options }, - spec: migrateEncryptionKeyOperationSpec - }); - const poller = await createHttpPoller< - AccountsMigrateEncryptionKeyResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure - * Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from - * another account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - async beginMigrateEncryptionKeyAndWait( - resourceGroupName: string, - accountName: string, - options?: AccountsMigrateEncryptionKeyOptionalParams - ): Promise { - const poller = await this.beginMigrateEncryptionKey( - resourceGroupName, - accountName, - options + options, ); return poller.pollUntilDone(); } @@ -680,11 +579,11 @@ export class AccountsImpl implements Accounts { */ private _listBySubscriptionNext( nextLink: string, - options?: AccountsListBySubscriptionNextOptionalParams + options?: AccountsListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -697,11 +596,11 @@ export class AccountsImpl implements Accounts { private _listNext( resourceGroupName: string, nextLink: string, - options?: AccountsListNextOptionalParams + options?: AccountsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -709,77 +608,81 @@ export class AccountsImpl implements Accounts { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/netAppAccounts", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/netAppAccounts", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NetAppAccountList + bodyMapper: Mappers.NetAppAccountList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NetAppAccountList + bodyMapper: Mappers.NetAppAccountList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, }, 201: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, }, 202: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, }, 204: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, requestBody: Parameters.body5, queryParameters: [Parameters.apiVersion], @@ -787,46 +690,53 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, }, 201: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, }, 202: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, }, 204: { - bodyMapper: Mappers.NetAppAccount + bodyMapper: Mappers.NetAppAccount, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.body6, queryParameters: [Parameters.apiVersion], @@ -834,91 +744,70 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const renewCredentialsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/renewCredentials", - httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName - ], - serializer -}; -const migrateEncryptionKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/migrateEncryption", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/renewCredentials", httpMethod: "POST", responses: { - 200: { - headersMapper: Mappers.AccountsMigrateEncryptionKeyHeaders - }, - 201: { - headersMapper: Mappers.AccountsMigrateEncryptionKeyHeaders - }, - 202: { - headersMapper: Mappers.AccountsMigrateEncryptionKeyHeaders - }, - 204: { - headersMapper: Mappers.AccountsMigrateEncryptionKeyHeaders - }, + 200: {}, + 201: {}, + 202: {}, + 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.body7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer + headerParameters: [Parameters.accept], + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NetAppAccountList + bodyMapper: Mappers.NetAppAccountList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, 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.NetAppAccountList + bodyMapper: Mappers.NetAppAccountList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.nextLink, - Parameters.resourceGroupName ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts b/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts index 54ca7befbc1b..992e0e5c4fa1 100644 --- a/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts +++ b/sdk/netapp/arm-netapp/src/operations/backupPolicies.ts @@ -15,7 +15,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,7 +29,7 @@ import { BackupPolicyPatch, BackupPoliciesUpdateOptionalParams, BackupPoliciesUpdateResponse, - BackupPoliciesDeleteOptionalParams + BackupPoliciesDeleteOptionalParams, } from "../models"; /// @@ -54,7 +54,7 @@ export class BackupPoliciesImpl implements BackupPolicies { public list( resourceGroupName: string, accountName: string, - options?: BackupPoliciesListOptionalParams + options?: BackupPoliciesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, accountName, options); return { @@ -72,9 +72,9 @@ export class BackupPoliciesImpl implements BackupPolicies { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -82,7 +82,7 @@ export class BackupPoliciesImpl implements BackupPolicies { resourceGroupName: string, accountName: string, options?: BackupPoliciesListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: BackupPoliciesListResponse; result = await this._list(resourceGroupName, accountName, options); @@ -92,12 +92,12 @@ export class BackupPoliciesImpl implements BackupPolicies { private async *listPagingAll( resourceGroupName: string, accountName: string, - options?: BackupPoliciesListOptionalParams + options?: BackupPoliciesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -112,11 +112,11 @@ export class BackupPoliciesImpl implements BackupPolicies { private _list( resourceGroupName: string, accountName: string, - options?: BackupPoliciesListOptionalParams + options?: BackupPoliciesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listOperationSpec + listOperationSpec, ); } @@ -131,11 +131,11 @@ export class BackupPoliciesImpl implements BackupPolicies { resourceGroupName: string, accountName: string, backupPolicyName: string, - options?: BackupPoliciesGetOptionalParams + options?: BackupPoliciesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, backupPolicyName, options }, - getOperationSpec + getOperationSpec, ); } @@ -152,7 +152,7 @@ export class BackupPoliciesImpl implements BackupPolicies { accountName: string, backupPolicyName: string, body: BackupPolicy, - options?: BackupPoliciesCreateOptionalParams + options?: BackupPoliciesCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -161,21 +161,20 @@ export class BackupPoliciesImpl implements BackupPolicies { > { 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 +183,8 @@ export class BackupPoliciesImpl implements BackupPolicies { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -193,15 +192,15 @@ export class BackupPoliciesImpl implements BackupPolicies { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, backupPolicyName, body, options }, - spec: createOperationSpec + spec: createOperationSpec, }); const poller = await createHttpPoller< BackupPoliciesCreateResponse, @@ -209,7 +208,7 @@ export class BackupPoliciesImpl implements BackupPolicies { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -228,14 +227,14 @@ export class BackupPoliciesImpl implements BackupPolicies { accountName: string, backupPolicyName: string, body: BackupPolicy, - options?: BackupPoliciesCreateOptionalParams + options?: BackupPoliciesCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, accountName, backupPolicyName, body, - options + options, ); return poller.pollUntilDone(); } @@ -253,7 +252,7 @@ export class BackupPoliciesImpl implements BackupPolicies { accountName: string, backupPolicyName: string, body: BackupPolicyPatch, - options?: BackupPoliciesUpdateOptionalParams + options?: BackupPoliciesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -262,21 +261,20 @@ export class BackupPoliciesImpl implements BackupPolicies { > { 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); @@ -285,8 +283,8 @@ export class BackupPoliciesImpl implements BackupPolicies { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -294,15 +292,15 @@ export class BackupPoliciesImpl implements BackupPolicies { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, backupPolicyName, body, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< BackupPoliciesUpdateResponse, @@ -310,7 +308,7 @@ export class BackupPoliciesImpl implements BackupPolicies { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -329,14 +327,14 @@ export class BackupPoliciesImpl implements BackupPolicies { accountName: string, backupPolicyName: string, body: BackupPolicyPatch, - options?: BackupPoliciesUpdateOptionalParams + options?: BackupPoliciesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, accountName, backupPolicyName, body, - options + options, ); return poller.pollUntilDone(); } @@ -352,25 +350,24 @@ export class BackupPoliciesImpl implements BackupPolicies { resourceGroupName: string, accountName: string, backupPolicyName: string, - options?: BackupPoliciesDeleteOptionalParams + options?: BackupPoliciesDeleteOptionalParams, ): 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); @@ -379,8 +376,8 @@ export class BackupPoliciesImpl implements BackupPolicies { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -388,20 +385,20 @@ export class BackupPoliciesImpl implements BackupPolicies { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, backupPolicyName, 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; @@ -418,13 +415,13 @@ export class BackupPoliciesImpl implements BackupPolicies { resourceGroupName: string, accountName: string, backupPolicyName: string, - options?: BackupPoliciesDeleteOptionalParams + options?: BackupPoliciesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, backupPolicyName, - options + options, ); return poller.pollUntilDone(); } @@ -433,34 +430,36 @@ export class BackupPoliciesImpl implements BackupPolicies { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BackupPoliciesList + bodyMapper: Mappers.BackupPoliciesList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -468,87 +467,97 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.backupPolicyName + Parameters.backupPolicyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, }, 201: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, }, 202: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, }, 204: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body27, + requestBody: Parameters.body24, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.backupPolicyName + Parameters.backupPolicyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, }, 201: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, }, 202: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, }, 204: { - bodyMapper: Mappers.BackupPolicy + bodyMapper: Mappers.BackupPolicy, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body28, + requestBody: Parameters.body25, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.backupPolicyName + Parameters.backupPolicyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupPolicies/{backupPolicyName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.backupPolicyName + Parameters.backupPolicyName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/backupVaults.ts b/sdk/netapp/arm-netapp/src/operations/backupVaults.ts deleted file mode 100644 index 84e178f89414..000000000000 --- a/sdk/netapp/arm-netapp/src/operations/backupVaults.ts +++ /dev/null @@ -1,657 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { BackupVaults } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { NetAppManagementClient } from "../netAppManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - BackupVault, - BackupVaultsListByNetAppAccountNextOptionalParams, - BackupVaultsListByNetAppAccountOptionalParams, - BackupVaultsListByNetAppAccountResponse, - BackupVaultsGetOptionalParams, - BackupVaultsGetResponse, - BackupVaultsCreateOrUpdateOptionalParams, - BackupVaultsCreateOrUpdateResponse, - BackupVaultPatch, - BackupVaultsUpdateOptionalParams, - BackupVaultsUpdateResponse, - BackupVaultsDeleteOptionalParams, - BackupVaultsDeleteResponse, - BackupVaultsListByNetAppAccountNextResponse -} from "../models"; - -/// -/** Class containing BackupVaults operations. */ -export class BackupVaultsImpl implements BackupVaults { - private readonly client: NetAppManagementClient; - - /** - * Initialize a new instance of the class BackupVaults class. - * @param client Reference to the service client - */ - constructor(client: NetAppManagementClient) { - this.client = client; - } - - /** - * List and describe all Backup Vaults in the NetApp account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - public listByNetAppAccount( - resourceGroupName: string, - accountName: string, - options?: BackupVaultsListByNetAppAccountOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByNetAppAccountPagingAll( - resourceGroupName, - accountName, - 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.listByNetAppAccountPagingPage( - resourceGroupName, - accountName, - options, - settings - ); - } - }; - } - - private async *listByNetAppAccountPagingPage( - resourceGroupName: string, - accountName: string, - options?: BackupVaultsListByNetAppAccountOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: BackupVaultsListByNetAppAccountResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByNetAppAccount( - resourceGroupName, - accountName, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByNetAppAccountNext( - resourceGroupName, - accountName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByNetAppAccountPagingAll( - resourceGroupName: string, - accountName: string, - options?: BackupVaultsListByNetAppAccountOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByNetAppAccountPagingPage( - resourceGroupName, - accountName, - options - )) { - yield* page; - } - } - - /** - * List and describe all Backup Vaults in the NetApp account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - private _listByNetAppAccount( - resourceGroupName: string, - accountName: string, - options?: BackupVaultsListByNetAppAccountOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, options }, - listByNetAppAccountOperationSpec - ); - } - - /** - * Get the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupVaultsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, backupVaultName, options }, - getOperationSpec - ); - } - - /** - * Create or update the specified Backup Vault in the NetApp account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param body BackupVault object supplied in the body of the operation. - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - body: BackupVault, - options?: BackupVaultsCreateOrUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupVaultsCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, accountName, backupVaultName, body, options }, - spec: createOrUpdateOperationSpec - }); - const poller = await createHttpPoller< - BackupVaultsCreateOrUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Create or update the specified Backup Vault in the NetApp account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param body BackupVault object supplied in the body of the operation. - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - body: BackupVault, - options?: BackupVaultsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - accountName, - backupVaultName, - body, - options - ); - return poller.pollUntilDone(); - } - - /** - * Patch the specified NetApp Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param body Backup Vault object supplied in the body of the operation. - * @param options The options parameters. - */ - async beginUpdate( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - body: BackupVaultPatch, - options?: BackupVaultsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupVaultsUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, accountName, backupVaultName, body, options }, - spec: updateOperationSpec - }); - const poller = await createHttpPoller< - BackupVaultsUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Patch the specified NetApp Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param body Backup Vault object supplied in the body of the operation. - * @param options The options parameters. - */ - async beginUpdateAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - body: BackupVaultPatch, - options?: BackupVaultsUpdateOptionalParams - ): Promise { - const poller = await this.beginUpdate( - resourceGroupName, - accountName, - backupVaultName, - body, - options - ); - return poller.pollUntilDone(); - } - - /** - * Delete the specified Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupVaultsDeleteOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupVaultsDeleteResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, accountName, backupVaultName, options }, - spec: deleteOperationSpec - }); - const poller = await createHttpPoller< - BackupVaultsDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Delete the specified Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupVaultsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - accountName, - backupVaultName, - options - ); - return poller.pollUntilDone(); - } - - /** - * ListByNetAppAccountNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param nextLink The nextLink from the previous successful call to the ListByNetAppAccount method. - * @param options The options parameters. - */ - private _listByNetAppAccountNext( - resourceGroupName: string, - accountName: string, - nextLink: string, - options?: BackupVaultsListByNetAppAccountNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, nextLink, options }, - listByNetAppAccountNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByNetAppAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupVaultsList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupVault - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.BackupVault - }, - 201: { - bodyMapper: Mappers.BackupVault - }, - 202: { - bodyMapper: Mappers.BackupVault - }, - 204: { - bodyMapper: Mappers.BackupVault - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body34, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.BackupVault - }, - 201: { - bodyMapper: Mappers.BackupVault - }, - 202: { - bodyMapper: Mappers.BackupVault - }, - 204: { - bodyMapper: Mappers.BackupVault - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body35, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.BackupVaultsDeleteHeaders - }, - 201: { - headersMapper: Mappers.BackupVaultsDeleteHeaders - }, - 202: { - headersMapper: Mappers.BackupVaultsDeleteHeaders - }, - 204: { - headersMapper: Mappers.BackupVaultsDeleteHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByNetAppAccountNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupVaultsList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.resourceGroupName, - Parameters.accountName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/netapp/arm-netapp/src/operations/backups.ts b/sdk/netapp/arm-netapp/src/operations/backups.ts index f47ed8a1d63a..64e894b21396 100644 --- a/sdk/netapp/arm-netapp/src/operations/backups.ts +++ b/sdk/netapp/arm-netapp/src/operations/backups.ts @@ -6,40 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; import { Backups } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { NetAppManagementClient } from "../netAppManagementClient"; import { - SimplePollerLike, - OperationState, - createHttpPoller -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - Backup, - BackupsListByVaultNextOptionalParams, - BackupsListByVaultOptionalParams, - BackupsListByVaultResponse, - BackupsGetLatestStatusOptionalParams, - BackupsGetLatestStatusResponse, BackupsGetVolumeRestoreStatusOptionalParams, BackupsGetVolumeRestoreStatusResponse, - BackupsGetOptionalParams, - BackupsGetResponse, - BackupsCreateOptionalParams, - BackupsCreateResponse, - BackupsUpdateOptionalParams, - BackupsUpdateResponse, - BackupsDeleteOptionalParams, - BackupsDeleteResponse, - BackupsListByVaultNextResponse } from "../models"; -/// /** Class containing Backups operations. */ export class BackupsImpl implements Backups { private readonly client: NetAppManagementClient; @@ -52,120 +28,6 @@ export class BackupsImpl implements Backups { this.client = client; } - /** - * List all backups Under a Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - public listByVault( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupsListByVaultOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByVaultPagingAll( - resourceGroupName, - accountName, - backupVaultName, - 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.listByVaultPagingPage( - resourceGroupName, - accountName, - backupVaultName, - options, - settings - ); - } - }; - } - - private async *listByVaultPagingPage( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupsListByVaultOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: BackupsListByVaultResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByVault( - resourceGroupName, - accountName, - backupVaultName, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByVaultNext( - resourceGroupName, - accountName, - backupVaultName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByVaultPagingAll( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupsListByVaultOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByVaultPagingPage( - resourceGroupName, - accountName, - backupVaultName, - options - )) { - yield* page; - } - } - - /** - * Get the latest status of the backup for a volume - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param options The options parameters. - */ - getLatestStatus( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: BackupsGetLatestStatusOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, poolName, volumeName, options }, - getLatestStatusOperationSpec - ); - } - /** * Get the status of the restore for a volume * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -179,620 +41,37 @@ export class BackupsImpl implements Backups { accountName: string, poolName: string, volumeName: string, - options?: BackupsGetVolumeRestoreStatusOptionalParams + options?: BackupsGetVolumeRestoreStatusOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, volumeName, options }, - getVolumeRestoreStatusOperationSpec - ); - } - - /** - * List all backups Under a Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - private _listByVault( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupsListByVaultOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, backupVaultName, options }, - listByVaultOperationSpec - ); - } - - /** - * Get the specified Backup under Backup Vault. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, backupVaultName, backupName, options }, - getOperationSpec - ); - } - - /** - * Create a backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param body Backup object supplied in the body of the operation. - * @param options The options parameters. - */ - async beginCreate( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - body: Backup, - options?: BackupsCreateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsCreateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - backupVaultName, - backupName, - body, - options - }, - spec: createOperationSpec - }); - const poller = await createHttpPoller< - BackupsCreateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Create a backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param body Backup object supplied in the body of the operation. - * @param options The options parameters. - */ - async beginCreateAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - body: Backup, - options?: BackupsCreateOptionalParams - ): Promise { - const poller = await this.beginCreate( - resourceGroupName, - accountName, - backupVaultName, - backupName, - body, - options - ); - return poller.pollUntilDone(); - } - - /** - * Patch a Backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - async beginUpdate( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - backupVaultName, - backupName, - options - }, - spec: updateOperationSpec - }); - const poller = await createHttpPoller< - BackupsUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Patch a Backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - async beginUpdateAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsUpdateOptionalParams - ): Promise { - const poller = await this.beginUpdate( - resourceGroupName, - accountName, - backupVaultName, - backupName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Delete a Backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsDeleteOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsDeleteResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - backupVaultName, - backupName, - options - }, - spec: deleteOperationSpec - }); - const poller = await createHttpPoller< - BackupsDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Delete a Backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - accountName, - backupVaultName, - backupName, - options - ); - return poller.pollUntilDone(); - } - - /** - * ListByVaultNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param nextLink The nextLink from the previous successful call to the ListByVault method. - * @param options The options parameters. - */ - private _listByVaultNext( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - nextLink: string, - options?: BackupsListByVaultNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, backupVaultName, nextLink, options }, - listByVaultNextOperationSpec + getVolumeRestoreStatusOperationSpec, ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const getLatestStatusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/latestBackupStatus/current", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupStatus - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.poolName, - Parameters.volumeName - ], - headerParameters: [Parameters.accept], - serializer -}; const getVolumeRestoreStatusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/restoreStatus", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/restoreStatus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestoreStatus - }, - default: {} - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.poolName, - Parameters.volumeName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByVaultOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupsList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion, Parameters.filter], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.Backup - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName, - Parameters.backupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.Backup - }, - 201: { - bodyMapper: Mappers.Backup - }, - 202: { - bodyMapper: Mappers.Backup - }, - 204: { - bodyMapper: Mappers.Backup + bodyMapper: Mappers.RestoreStatus, }, default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body25, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName, - Parameters.backupName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.Backup - }, - 201: { - bodyMapper: Mappers.Backup - }, - 202: { - bodyMapper: Mappers.Backup - }, - 204: { - bodyMapper: Mappers.Backup + bodyMapper: Mappers.ErrorResponse, }, - default: { - bodyMapper: Mappers.ErrorResponse - } }, - requestBody: Parameters.body26, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.backupVaultName, - Parameters.backupName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.BackupsDeleteHeaders - }, - 201: { - headersMapper: Mappers.BackupsDeleteHeaders - }, - 202: { - headersMapper: Mappers.BackupsDeleteHeaders - }, - 204: { - headersMapper: Mappers.BackupsDeleteHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName, - Parameters.backupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByVaultNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupsList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName + Parameters.poolName, + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/backupsUnderAccount.ts b/sdk/netapp/arm-netapp/src/operations/backupsUnderAccount.ts deleted file mode 100644 index 526ec4637d66..000000000000 --- a/sdk/netapp/arm-netapp/src/operations/backupsUnderAccount.ts +++ /dev/null @@ -1,169 +0,0 @@ -/* - * 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 { BackupsUnderAccount } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { NetAppManagementClient } from "../netAppManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - BackupsMigrationRequest, - BackupsUnderAccountMigrateBackupsOptionalParams, - BackupsUnderAccountMigrateBackupsResponse -} from "../models"; - -/** Class containing BackupsUnderAccount operations. */ -export class BackupsUnderAccountImpl implements BackupsUnderAccount { - private readonly client: NetAppManagementClient; - - /** - * Initialize a new instance of the class BackupsUnderAccount class. - * @param client Reference to the service client - */ - constructor(client: NetAppManagementClient) { - this.client = client; - } - - /** - * Migrate the backups under a NetApp account to backup vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param body Migrate backups under an account payload supplied in the body of the operation. - * @param options The options parameters. - */ - async beginMigrateBackups( - resourceGroupName: string, - accountName: string, - body: BackupsMigrationRequest, - options?: BackupsUnderAccountMigrateBackupsOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsUnderAccountMigrateBackupsResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, accountName, body, options }, - spec: migrateBackupsOperationSpec - }); - const poller = await createHttpPoller< - BackupsUnderAccountMigrateBackupsResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Migrate the backups under a NetApp account to backup vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param body Migrate backups under an account payload supplied in the body of the operation. - * @param options The options parameters. - */ - async beginMigrateBackupsAndWait( - resourceGroupName: string, - accountName: string, - body: BackupsMigrationRequest, - options?: BackupsUnderAccountMigrateBackupsOptionalParams - ): Promise { - const poller = await this.beginMigrateBackups( - resourceGroupName, - accountName, - body, - options - ); - return poller.pollUntilDone(); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const migrateBackupsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/migrateBackups", - httpMethod: "POST", - responses: { - 200: { - headersMapper: Mappers.BackupsUnderAccountMigrateBackupsHeaders - }, - 201: { - headersMapper: Mappers.BackupsUnderAccountMigrateBackupsHeaders - }, - 202: { - headersMapper: Mappers.BackupsUnderAccountMigrateBackupsHeaders - }, - 204: { - headersMapper: Mappers.BackupsUnderAccountMigrateBackupsHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body37, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; diff --git a/sdk/netapp/arm-netapp/src/operations/backupsUnderBackupVault.ts b/sdk/netapp/arm-netapp/src/operations/backupsUnderBackupVault.ts deleted file mode 100644 index 5a72ba838517..000000000000 --- a/sdk/netapp/arm-netapp/src/operations/backupsUnderBackupVault.ts +++ /dev/null @@ -1,188 +0,0 @@ -/* - * 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 { BackupsUnderBackupVault } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { NetAppManagementClient } from "../netAppManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - BackupRestoreFiles, - BackupsUnderBackupVaultRestoreFilesOptionalParams, - BackupsUnderBackupVaultRestoreFilesResponse -} from "../models"; - -/** Class containing BackupsUnderBackupVault operations. */ -export class BackupsUnderBackupVaultImpl implements BackupsUnderBackupVault { - private readonly client: NetAppManagementClient; - - /** - * Initialize a new instance of the class BackupsUnderBackupVault class. - * @param client Reference to the service client - */ - constructor(client: NetAppManagementClient) { - this.client = client; - } - - /** - * Restore the specified files from the specified backup to the active filesystem - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param body Restore payload supplied in the body of the operation. - * @param options The options parameters. - */ - async beginRestoreFiles( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - body: BackupRestoreFiles, - options?: BackupsUnderBackupVaultRestoreFilesOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsUnderBackupVaultRestoreFilesResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - backupVaultName, - backupName, - body, - options - }, - spec: restoreFilesOperationSpec - }); - const poller = await createHttpPoller< - BackupsUnderBackupVaultRestoreFilesResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Restore the specified files from the specified backup to the active filesystem - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param body Restore payload supplied in the body of the operation. - * @param options The options parameters. - */ - async beginRestoreFilesAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - body: BackupRestoreFiles, - options?: BackupsUnderBackupVaultRestoreFilesOptionalParams - ): Promise { - const poller = await this.beginRestoreFiles( - resourceGroupName, - accountName, - backupVaultName, - backupName, - body, - options - ); - return poller.pollUntilDone(); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const restoreFilesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/backupVaults/{backupVaultName}/backups/{backupName}/restoreFiles", - httpMethod: "POST", - responses: { - 200: { - headersMapper: Mappers.BackupsUnderBackupVaultRestoreFilesHeaders - }, - 201: { - headersMapper: Mappers.BackupsUnderBackupVaultRestoreFilesHeaders - }, - 202: { - headersMapper: Mappers.BackupsUnderBackupVaultRestoreFilesHeaders - }, - 204: { - headersMapper: Mappers.BackupsUnderBackupVaultRestoreFilesHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body36, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.backupVaultName, - Parameters.backupName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; diff --git a/sdk/netapp/arm-netapp/src/operations/backupsUnderVolume.ts b/sdk/netapp/arm-netapp/src/operations/backupsUnderVolume.ts deleted file mode 100644 index 977c95387438..000000000000 --- a/sdk/netapp/arm-netapp/src/operations/backupsUnderVolume.ts +++ /dev/null @@ -1,188 +0,0 @@ -/* - * 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 { BackupsUnderVolume } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { NetAppManagementClient } from "../netAppManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - BackupsMigrationRequest, - BackupsUnderVolumeMigrateBackupsOptionalParams, - BackupsUnderVolumeMigrateBackupsResponse -} from "../models"; - -/** Class containing BackupsUnderVolume operations. */ -export class BackupsUnderVolumeImpl implements BackupsUnderVolume { - private readonly client: NetAppManagementClient; - - /** - * Initialize a new instance of the class BackupsUnderVolume class. - * @param client Reference to the service client - */ - constructor(client: NetAppManagementClient) { - this.client = client; - } - - /** - * Migrate the backups under volume to backup vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param body Migrate backups under volume payload supplied in the body of the operation. - * @param options The options parameters. - */ - async beginMigrateBackups( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - body: BackupsMigrationRequest, - options?: BackupsUnderVolumeMigrateBackupsOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsUnderVolumeMigrateBackupsResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - accountName, - poolName, - volumeName, - body, - options - }, - spec: migrateBackupsOperationSpec - }); - const poller = await createHttpPoller< - BackupsUnderVolumeMigrateBackupsResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Migrate the backups under volume to backup vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param body Migrate backups under volume payload supplied in the body of the operation. - * @param options The options parameters. - */ - async beginMigrateBackupsAndWait( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - body: BackupsMigrationRequest, - options?: BackupsUnderVolumeMigrateBackupsOptionalParams - ): Promise { - const poller = await this.beginMigrateBackups( - resourceGroupName, - accountName, - poolName, - volumeName, - body, - options - ); - return poller.pollUntilDone(); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const migrateBackupsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/migrateBackups", - httpMethod: "POST", - responses: { - 200: { - headersMapper: Mappers.BackupsUnderVolumeMigrateBackupsHeaders - }, - 201: { - headersMapper: Mappers.BackupsUnderVolumeMigrateBackupsHeaders - }, - 202: { - headersMapper: Mappers.BackupsUnderVolumeMigrateBackupsHeaders - }, - 204: { - headersMapper: Mappers.BackupsUnderVolumeMigrateBackupsHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body37, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.poolName, - Parameters.volumeName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; diff --git a/sdk/netapp/arm-netapp/src/operations/index.ts b/sdk/netapp/arm-netapp/src/operations/index.ts index 85ac01dc9a6e..3452b163b6da 100644 --- a/sdk/netapp/arm-netapp/src/operations/index.ts +++ b/sdk/netapp/arm-netapp/src/operations/index.ts @@ -9,19 +9,13 @@ export * from "./operations"; export * from "./netAppResource"; export * from "./netAppResourceQuotaLimits"; -export * from "./netAppResourceRegionInfos"; export * from "./accounts"; export * from "./pools"; export * from "./volumes"; export * from "./snapshots"; export * from "./snapshotPolicies"; export * from "./backups"; -export * from "./accountBackups"; export * from "./backupPolicies"; export * from "./volumeQuotaRules"; export * from "./volumeGroups"; export * from "./subvolumes"; -export * from "./backupVaults"; -export * from "./backupsUnderBackupVault"; -export * from "./backupsUnderVolume"; -export * from "./backupsUnderAccount"; diff --git a/sdk/netapp/arm-netapp/src/operations/netAppResource.ts b/sdk/netapp/arm-netapp/src/operations/netAppResource.ts index 2f7f08795a07..9761eff122b5 100644 --- a/sdk/netapp/arm-netapp/src/operations/netAppResource.ts +++ b/sdk/netapp/arm-netapp/src/operations/netAppResource.ts @@ -14,7 +14,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,7 +32,7 @@ import { NetAppResourceQueryNetworkSiblingSetResponse, NetworkFeatures, NetAppResourceUpdateNetworkSiblingSetOptionalParams, - NetAppResourceUpdateNetworkSiblingSetResponse + NetAppResourceUpdateNetworkSiblingSetResponse, } from "../models"; /** Class containing NetAppResource operations. */ @@ -60,11 +60,11 @@ export class NetAppResourceImpl implements NetAppResource { name: string, typeParam: CheckNameResourceTypes, resourceGroup: string, - options?: NetAppResourceCheckNameAvailabilityOptionalParams + options?: NetAppResourceCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, name, typeParam, resourceGroup, options }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, ); } @@ -80,11 +80,11 @@ export class NetAppResourceImpl implements NetAppResource { location: string, name: string, subnetId: string, - options?: NetAppResourceCheckFilePathAvailabilityOptionalParams + options?: NetAppResourceCheckFilePathAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, name, subnetId, options }, - checkFilePathAvailabilityOperationSpec + checkFilePathAvailabilityOperationSpec, ); } @@ -101,11 +101,11 @@ export class NetAppResourceImpl implements NetAppResource { name: string, typeParam: CheckQuotaNameResourceTypes, resourceGroup: string, - options?: NetAppResourceCheckQuotaAvailabilityOptionalParams + options?: NetAppResourceCheckQuotaAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, name, typeParam, resourceGroup, options }, - checkQuotaAvailabilityOperationSpec + checkQuotaAvailabilityOperationSpec, ); } @@ -116,11 +116,11 @@ export class NetAppResourceImpl implements NetAppResource { */ queryRegionInfo( location: string, - options?: NetAppResourceQueryRegionInfoOptionalParams + options?: NetAppResourceQueryRegionInfoOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - queryRegionInfoOperationSpec + queryRegionInfoOperationSpec, ); } @@ -138,11 +138,11 @@ export class NetAppResourceImpl implements NetAppResource { location: string, networkSiblingSetId: string, subnetId: string, - options?: NetAppResourceQueryNetworkSiblingSetOptionalParams + options?: NetAppResourceQueryNetworkSiblingSetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, networkSiblingSetId, subnetId, options }, - queryNetworkSiblingSetOperationSpec + queryNetworkSiblingSetOperationSpec, ); } @@ -156,7 +156,7 @@ export class NetAppResourceImpl implements NetAppResource { * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} * @param networkSiblingSetStateId Network sibling set state Id identifying the current state of the * sibling set. - * @param networkFeatures Network features available to the volume + * @param networkFeatures Network features available to the volume, some such * @param options The options parameters. */ async beginUpdateNetworkSiblingSet( @@ -165,7 +165,7 @@ export class NetAppResourceImpl implements NetAppResource { subnetId: string, networkSiblingSetStateId: string, networkFeatures: NetworkFeatures, - options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams + options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -174,21 +174,20 @@ export class NetAppResourceImpl implements NetAppResource { > { 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); @@ -197,8 +196,8 @@ export class NetAppResourceImpl implements NetAppResource { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -206,8 +205,8 @@ export class NetAppResourceImpl implements NetAppResource { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -219,9 +218,9 @@ export class NetAppResourceImpl implements NetAppResource { subnetId, networkSiblingSetStateId, networkFeatures, - options + options, }, - spec: updateNetworkSiblingSetOperationSpec + spec: updateNetworkSiblingSetOperationSpec, }); const poller = await createHttpPoller< NetAppResourceUpdateNetworkSiblingSetResponse, @@ -229,7 +228,7 @@ export class NetAppResourceImpl implements NetAppResource { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -245,7 +244,7 @@ export class NetAppResourceImpl implements NetAppResource { * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} * @param networkSiblingSetStateId Network sibling set state Id identifying the current state of the * sibling set. - * @param networkFeatures Network features available to the volume + * @param networkFeatures Network features available to the volume, some such * @param options The options parameters. */ async beginUpdateNetworkSiblingSetAndWait( @@ -254,7 +253,7 @@ export class NetAppResourceImpl implements NetAppResource { subnetId: string, networkSiblingSetStateId: string, networkFeatures: NetworkFeatures, - options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams + options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams, ): Promise { const poller = await this.beginUpdateNetworkSiblingSet( location, @@ -262,7 +261,7 @@ export class NetAppResourceImpl implements NetAppResource { subnetId, networkSiblingSetStateId, networkFeatures, - options + options, ); return poller.pollUntilDone(); } @@ -271,170 +270,172 @@ export class NetAppResourceImpl implements NetAppResource { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckAvailabilityResponse + bodyMapper: Mappers.CheckAvailabilityResponse, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, requestBody: { parameterPath: { name: ["name"], typeParam: ["typeParam"], - resourceGroup: ["resourceGroup"] + resourceGroup: ["resourceGroup"], }, - mapper: { ...Mappers.ResourceNameAvailabilityRequest, required: true } + mapper: { ...Mappers.ResourceNameAvailabilityRequest, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const checkFilePathAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckAvailabilityResponse + bodyMapper: Mappers.CheckAvailabilityResponse, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, requestBody: { parameterPath: { name: ["name"], subnetId: ["subnetId"] }, - mapper: { ...Mappers.FilePathAvailabilityRequest, required: true } + mapper: { ...Mappers.FilePathAvailabilityRequest, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const checkQuotaAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkQuotaAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkQuotaAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckAvailabilityResponse + bodyMapper: Mappers.CheckAvailabilityResponse, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, requestBody: { parameterPath: { name: ["name"], typeParam: ["typeParam"], - resourceGroup: ["resourceGroup"] + resourceGroup: ["resourceGroup"], }, - mapper: { ...Mappers.QuotaAvailabilityRequest, required: true } + mapper: { ...Mappers.QuotaAvailabilityRequest, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const queryRegionInfoOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfo", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfo", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RegionInfo + bodyMapper: Mappers.RegionInfo, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const queryNetworkSiblingSetOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/queryNetworkSiblingSet", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/queryNetworkSiblingSet", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.NetworkSiblingSet + bodyMapper: Mappers.NetworkSiblingSet, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: { parameterPath: { networkSiblingSetId: ["networkSiblingSetId"], - subnetId: ["subnetId"] + subnetId: ["subnetId"], }, - mapper: { ...Mappers.QueryNetworkSiblingSetRequest, required: true } + mapper: { ...Mappers.QueryNetworkSiblingSetRequest, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateNetworkSiblingSetOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/updateNetworkSiblingSet", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/updateNetworkSiblingSet", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.NetworkSiblingSet + bodyMapper: Mappers.NetworkSiblingSet, }, 201: { - bodyMapper: Mappers.NetworkSiblingSet + bodyMapper: Mappers.NetworkSiblingSet, }, 202: { - bodyMapper: Mappers.NetworkSiblingSet + bodyMapper: Mappers.NetworkSiblingSet, }, 204: { - bodyMapper: Mappers.NetworkSiblingSet + bodyMapper: Mappers.NetworkSiblingSet, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: { parameterPath: { networkSiblingSetId: ["networkSiblingSetId"], subnetId: ["subnetId"], networkSiblingSetStateId: ["networkSiblingSetStateId"], - networkFeatures: ["networkFeatures"] + networkFeatures: ["networkFeatures"], }, - mapper: { ...Mappers.UpdateNetworkSiblingSetRequest, required: true } + mapper: { ...Mappers.UpdateNetworkSiblingSetRequest, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/netAppResourceQuotaLimits.ts b/sdk/netapp/arm-netapp/src/operations/netAppResourceQuotaLimits.ts index e727476ef69d..3e71b7c2ca9c 100644 --- a/sdk/netapp/arm-netapp/src/operations/netAppResourceQuotaLimits.ts +++ b/sdk/netapp/arm-netapp/src/operations/netAppResourceQuotaLimits.ts @@ -17,13 +17,14 @@ import { NetAppResourceQuotaLimitsListOptionalParams, NetAppResourceQuotaLimitsListResponse, NetAppResourceQuotaLimitsGetOptionalParams, - NetAppResourceQuotaLimitsGetResponse + NetAppResourceQuotaLimitsGetResponse, } from "../models"; /// /** Class containing NetAppResourceQuotaLimits operations. */ export class NetAppResourceQuotaLimitsImpl - implements NetAppResourceQuotaLimits { + implements NetAppResourceQuotaLimits +{ private readonly client: NetAppManagementClient; /** @@ -41,7 +42,7 @@ export class NetAppResourceQuotaLimitsImpl */ public list( location: string, - options?: NetAppResourceQuotaLimitsListOptionalParams + options?: NetAppResourceQuotaLimitsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(location, options); return { @@ -56,14 +57,14 @@ export class NetAppResourceQuotaLimitsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(location, options, settings); - } + }, }; } private async *listPagingPage( location: string, options?: NetAppResourceQuotaLimitsListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: NetAppResourceQuotaLimitsListResponse; result = await this._list(location, options); @@ -72,7 +73,7 @@ export class NetAppResourceQuotaLimitsImpl private async *listPagingAll( location: string, - options?: NetAppResourceQuotaLimitsListOptionalParams + options?: NetAppResourceQuotaLimitsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(location, options)) { yield* page; @@ -86,11 +87,11 @@ export class NetAppResourceQuotaLimitsImpl */ private _list( location: string, - options?: NetAppResourceQuotaLimitsListOptionalParams + options?: NetAppResourceQuotaLimitsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listOperationSpec + listOperationSpec, ); } @@ -103,11 +104,11 @@ export class NetAppResourceQuotaLimitsImpl get( location: string, quotaLimitName: string, - options?: NetAppResourceQuotaLimitsGetOptionalParams + options?: NetAppResourceQuotaLimitsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, quotaLimitName, options }, - getOperationSpec + getOperationSpec, ); } } @@ -115,41 +116,43 @@ export class NetAppResourceQuotaLimitsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionQuotaItemList + bodyMapper: Mappers.SubscriptionQuotaItemList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits/{quotaLimitName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/quotaLimits/{quotaLimitName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionQuotaItem + bodyMapper: Mappers.SubscriptionQuotaItem, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location, - Parameters.quotaLimitName + Parameters.quotaLimitName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/netAppResourceRegionInfos.ts b/sdk/netapp/arm-netapp/src/operations/netAppResourceRegionInfos.ts deleted file mode 100644 index e761953bccc0..000000000000 --- a/sdk/netapp/arm-netapp/src/operations/netAppResourceRegionInfos.ts +++ /dev/null @@ -1,209 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { NetAppResourceRegionInfos } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { NetAppManagementClient } from "../netAppManagementClient"; -import { - RegionInfoResource, - NetAppResourceRegionInfosListNextOptionalParams, - NetAppResourceRegionInfosListOptionalParams, - NetAppResourceRegionInfosListResponse, - NetAppResourceRegionInfosGetOptionalParams, - NetAppResourceRegionInfosGetResponse, - NetAppResourceRegionInfosListNextResponse -} from "../models"; - -/// -/** Class containing NetAppResourceRegionInfos operations. */ -export class NetAppResourceRegionInfosImpl - implements NetAppResourceRegionInfos { - private readonly client: NetAppManagementClient; - - /** - * Initialize a new instance of the class NetAppResourceRegionInfos class. - * @param client Reference to the service client - */ - constructor(client: NetAppManagementClient) { - this.client = client; - } - - /** - * Provides region specific information. - * @param location The name of the Azure region. - * @param options The options parameters. - */ - public list( - location: string, - options?: NetAppResourceRegionInfosListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(location, 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.listPagingPage(location, options, settings); - } - }; - } - - private async *listPagingPage( - location: string, - options?: NetAppResourceRegionInfosListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: NetAppResourceRegionInfosListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(location, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext(location, continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - location: string, - options?: NetAppResourceRegionInfosListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage(location, options)) { - yield* page; - } - } - - /** - * Provides region specific information. - * @param location The name of the Azure region. - * @param options The options parameters. - */ - private _list( - location: string, - options?: NetAppResourceRegionInfosListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - listOperationSpec - ); - } - - /** - * Provides storage to network proximity and logical zone mapping information. - * @param location The name of the Azure region. - * @param options The options parameters. - */ - get( - location: string, - options?: NetAppResourceRegionInfosGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - getOperationSpec - ); - } - - /** - * ListNext - * @param location The name of the Azure region. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - location: string, - nextLink: string, - options?: NetAppResourceRegionInfosListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfos", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.RegionInfosList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfos/default", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.RegionInfoResource - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.RegionInfosList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/netapp/arm-netapp/src/operations/operations.ts b/sdk/netapp/arm-netapp/src/operations/operations.ts index 799ecf93a97a..af4f63ff9641 100644 --- a/sdk/netapp/arm-netapp/src/operations/operations.ts +++ b/sdk/netapp/arm-netapp/src/operations/operations.ts @@ -15,7 +15,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { Operation, 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,12 +90,14 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/pools.ts b/sdk/netapp/arm-netapp/src/operations/pools.ts index f474039b7493..87c5b3a73adc 100644 --- a/sdk/netapp/arm-netapp/src/operations/pools.ts +++ b/sdk/netapp/arm-netapp/src/operations/pools.ts @@ -16,7 +16,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,7 +32,7 @@ import { PoolsUpdateOptionalParams, PoolsUpdateResponse, PoolsDeleteOptionalParams, - PoolsListNextResponse + PoolsListNextResponse, } from "../models"; /// @@ -57,7 +57,7 @@ export class PoolsImpl implements Pools { public list( resourceGroupName: string, accountName: string, - options?: PoolsListOptionalParams + options?: PoolsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, accountName, options); return { @@ -75,9 +75,9 @@ export class PoolsImpl implements Pools { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class PoolsImpl implements Pools { resourceGroupName: string, accountName: string, options?: PoolsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PoolsListResponse; let continuationToken = settings?.continuationToken; @@ -101,7 +101,7 @@ export class PoolsImpl implements Pools { resourceGroupName, accountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -113,12 +113,12 @@ export class PoolsImpl implements Pools { private async *listPagingAll( resourceGroupName: string, accountName: string, - options?: PoolsListOptionalParams + options?: PoolsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -133,11 +133,11 @@ export class PoolsImpl implements Pools { private _list( resourceGroupName: string, accountName: string, - options?: PoolsListOptionalParams + options?: PoolsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listOperationSpec + listOperationSpec, ); } @@ -152,11 +152,11 @@ export class PoolsImpl implements Pools { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolsGetOptionalParams + options?: PoolsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, options }, - getOperationSpec + getOperationSpec, ); } @@ -173,7 +173,7 @@ export class PoolsImpl implements Pools { accountName: string, poolName: string, body: CapacityPool, - options?: PoolsCreateOrUpdateOptionalParams + options?: PoolsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -182,21 +182,20 @@ export class PoolsImpl implements Pools { > { 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); @@ -205,8 +204,8 @@ export class PoolsImpl implements Pools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -214,15 +213,15 @@ export class PoolsImpl implements Pools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, body, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< PoolsCreateOrUpdateResponse, @@ -230,7 +229,7 @@ export class PoolsImpl implements Pools { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -249,14 +248,14 @@ export class PoolsImpl implements Pools { accountName: string, poolName: string, body: CapacityPool, - options?: PoolsCreateOrUpdateOptionalParams + options?: PoolsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, accountName, poolName, body, - options + options, ); return poller.pollUntilDone(); } @@ -274,27 +273,26 @@ export class PoolsImpl implements Pools { accountName: string, poolName: string, body: CapacityPoolPatch, - options?: PoolsUpdateOptionalParams + options?: PoolsUpdateOptionalParams, ): Promise< SimplePollerLike, PoolsUpdateResponse> > { 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); @@ -303,8 +301,8 @@ export class PoolsImpl implements Pools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -312,15 +310,15 @@ export class PoolsImpl implements Pools { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, body, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< PoolsUpdateResponse, @@ -328,7 +326,7 @@ export class PoolsImpl implements Pools { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -347,14 +345,14 @@ export class PoolsImpl implements Pools { accountName: string, poolName: string, body: CapacityPoolPatch, - options?: PoolsUpdateOptionalParams + options?: PoolsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, accountName, poolName, body, - options + options, ); return poller.pollUntilDone(); } @@ -370,25 +368,24 @@ export class PoolsImpl implements Pools { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolsDeleteOptionalParams + options?: PoolsDeleteOptionalParams, ): 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); @@ -397,8 +394,8 @@ export class PoolsImpl implements Pools { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -406,20 +403,20 @@ export class PoolsImpl implements Pools { 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; @@ -436,13 +433,13 @@ export class PoolsImpl implements Pools { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolsDeleteOptionalParams + options?: PoolsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, poolName, - options + options, ); return poller.pollUntilDone(); } @@ -458,11 +455,11 @@ export class PoolsImpl implements Pools { resourceGroupName: string, accountName: string, nextLink: string, - options?: PoolsListNextOptionalParams + options?: PoolsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -470,34 +467,36 @@ export class PoolsImpl implements Pools { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityPoolList + bodyMapper: Mappers.CapacityPoolList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -505,106 +504,118 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.poolName + Parameters.poolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, }, 201: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, }, 202: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, }, 204: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body8, + requestBody: Parameters.body7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.poolName + Parameters.poolName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, }, 201: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, }, 202: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, }, 204: { - bodyMapper: Mappers.CapacityPool + bodyMapper: Mappers.CapacityPool, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body9, + requestBody: Parameters.body8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.poolName + Parameters.poolName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.poolName + Parameters.poolName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityPoolList + bodyMapper: Mappers.CapacityPoolList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts b/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts index 2b2ca74dd838..3a87e033d785 100644 --- a/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts +++ b/sdk/netapp/arm-netapp/src/operations/snapshotPolicies.ts @@ -15,7 +15,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -31,7 +31,7 @@ import { SnapshotPoliciesUpdateResponse, SnapshotPoliciesDeleteOptionalParams, SnapshotPoliciesListVolumesOptionalParams, - SnapshotPoliciesListVolumesResponse + SnapshotPoliciesListVolumesResponse, } from "../models"; /// @@ -56,7 +56,7 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { public list( resourceGroupName: string, accountName: string, - options?: SnapshotPoliciesListOptionalParams + options?: SnapshotPoliciesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, accountName, options); return { @@ -74,9 +74,9 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -84,7 +84,7 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { resourceGroupName: string, accountName: string, options?: SnapshotPoliciesListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: SnapshotPoliciesListResponse; result = await this._list(resourceGroupName, accountName, options); @@ -94,12 +94,12 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { private async *listPagingAll( resourceGroupName: string, accountName: string, - options?: SnapshotPoliciesListOptionalParams + options?: SnapshotPoliciesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -114,11 +114,11 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { private _list( resourceGroupName: string, accountName: string, - options?: SnapshotPoliciesListOptionalParams + options?: SnapshotPoliciesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listOperationSpec + listOperationSpec, ); } @@ -133,11 +133,11 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { resourceGroupName: string, accountName: string, snapshotPolicyName: string, - options?: SnapshotPoliciesGetOptionalParams + options?: SnapshotPoliciesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, snapshotPolicyName, options }, - getOperationSpec + getOperationSpec, ); } @@ -154,11 +154,11 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { accountName: string, snapshotPolicyName: string, body: SnapshotPolicy, - options?: SnapshotPoliciesCreateOptionalParams + options?: SnapshotPoliciesCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, snapshotPolicyName, body, options }, - createOperationSpec + createOperationSpec, ); } @@ -175,7 +175,7 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { accountName: string, snapshotPolicyName: string, body: SnapshotPolicyPatch, - options?: SnapshotPoliciesUpdateOptionalParams + options?: SnapshotPoliciesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -184,21 +184,20 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { > { 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); @@ -207,8 +206,8 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -216,8 +215,8 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -228,9 +227,9 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { accountName, snapshotPolicyName, body, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< SnapshotPoliciesUpdateResponse, @@ -238,7 +237,7 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -257,14 +256,14 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { accountName: string, snapshotPolicyName: string, body: SnapshotPolicyPatch, - options?: SnapshotPoliciesUpdateOptionalParams + options?: SnapshotPoliciesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, accountName, snapshotPolicyName, body, - options + options, ); return poller.pollUntilDone(); } @@ -280,25 +279,24 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { resourceGroupName: string, accountName: string, snapshotPolicyName: string, - options?: SnapshotPoliciesDeleteOptionalParams + options?: SnapshotPoliciesDeleteOptionalParams, ): 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); @@ -307,8 +305,8 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -316,20 +314,20 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, snapshotPolicyName, 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; @@ -346,13 +344,13 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { resourceGroupName: string, accountName: string, snapshotPolicyName: string, - options?: SnapshotPoliciesDeleteOptionalParams + options?: SnapshotPoliciesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, snapshotPolicyName, - options + options, ); return poller.pollUntilDone(); } @@ -368,11 +366,11 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { resourceGroupName: string, accountName: string, snapshotPolicyName: string, - options?: SnapshotPoliciesListVolumesOptionalParams + options?: SnapshotPoliciesListVolumesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, snapshotPolicyName, options }, - listVolumesOperationSpec + listVolumesOperationSpec, ); } } @@ -380,34 +378,36 @@ export class SnapshotPoliciesImpl implements SnapshotPolicies { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotPoliciesList + bodyMapper: Mappers.SnapshotPoliciesList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotPolicy + bodyMapper: Mappers.SnapshotPolicy, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -415,93 +415,104 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.snapshotPolicyName + Parameters.snapshotPolicyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SnapshotPolicy + bodyMapper: Mappers.SnapshotPolicy, }, 201: { - bodyMapper: Mappers.SnapshotPolicy + bodyMapper: Mappers.SnapshotPolicy, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body23, + requestBody: Parameters.body22, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.snapshotPolicyName + Parameters.snapshotPolicyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.SnapshotPolicy + bodyMapper: Mappers.SnapshotPolicy, }, 201: { - bodyMapper: Mappers.SnapshotPolicy + bodyMapper: Mappers.SnapshotPolicy, }, 202: { - bodyMapper: Mappers.SnapshotPolicy + bodyMapper: Mappers.SnapshotPolicy, }, 204: { - bodyMapper: Mappers.SnapshotPolicy + bodyMapper: Mappers.SnapshotPolicy, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body24, + requestBody: Parameters.body23, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.snapshotPolicyName + Parameters.snapshotPolicyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.snapshotPolicyName + Parameters.snapshotPolicyName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const listVolumesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}/volumes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}/volumes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotPolicyVolumeList + bodyMapper: Mappers.SnapshotPolicyVolumeList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -509,8 +520,8 @@ const listVolumesOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.snapshotPolicyName + Parameters.snapshotPolicyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/snapshots.ts b/sdk/netapp/arm-netapp/src/operations/snapshots.ts index a3c94dea49e7..59f879981f82 100644 --- a/sdk/netapp/arm-netapp/src/operations/snapshots.ts +++ b/sdk/netapp/arm-netapp/src/operations/snapshots.ts @@ -15,7 +15,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -30,7 +30,7 @@ import { SnapshotsUpdateResponse, SnapshotsDeleteOptionalParams, SnapshotRestoreFiles, - SnapshotsRestoreFilesOptionalParams + SnapshotsRestoreFilesOptionalParams, } from "../models"; /// @@ -59,14 +59,14 @@ export class SnapshotsImpl implements Snapshots { accountName: string, poolName: string, volumeName: string, - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return { next() { @@ -85,9 +85,9 @@ export class SnapshotsImpl implements Snapshots { poolName, volumeName, options, - settings + settings, ); - } + }, }; } @@ -97,7 +97,7 @@ export class SnapshotsImpl implements Snapshots { poolName: string, volumeName: string, options?: SnapshotsListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: SnapshotsListResponse; result = await this._list( @@ -105,7 +105,7 @@ export class SnapshotsImpl implements Snapshots { accountName, poolName, volumeName, - options + options, ); yield result.value || []; } @@ -115,14 +115,14 @@ export class SnapshotsImpl implements Snapshots { accountName: string, poolName: string, volumeName: string, - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, accountName, poolName, volumeName, - options + options, )) { yield* page; } @@ -141,11 +141,11 @@ export class SnapshotsImpl implements Snapshots { accountName: string, poolName: string, volumeName: string, - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, volumeName, options }, - listOperationSpec + listOperationSpec, ); } @@ -164,7 +164,7 @@ export class SnapshotsImpl implements Snapshots { poolName: string, volumeName: string, snapshotName: string, - options?: SnapshotsGetOptionalParams + options?: SnapshotsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -173,9 +173,9 @@ export class SnapshotsImpl implements Snapshots { poolName, volumeName, snapshotName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -196,7 +196,7 @@ export class SnapshotsImpl implements Snapshots { volumeName: string, snapshotName: string, body: Snapshot, - options?: SnapshotsCreateOptionalParams + options?: SnapshotsCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -205,21 +205,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); @@ -228,8 +227,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -237,8 +236,8 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -251,9 +250,9 @@ export class SnapshotsImpl implements Snapshots { volumeName, snapshotName, body, - options + options, }, - spec: createOperationSpec + spec: createOperationSpec, }); const poller = await createHttpPoller< SnapshotsCreateResponse, @@ -261,7 +260,7 @@ export class SnapshotsImpl implements Snapshots { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -284,7 +283,7 @@ export class SnapshotsImpl implements Snapshots { volumeName: string, snapshotName: string, body: Snapshot, - options?: SnapshotsCreateOptionalParams + options?: SnapshotsCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, @@ -293,7 +292,7 @@ export class SnapshotsImpl implements Snapshots { volumeName, snapshotName, body, - options + options, ); return poller.pollUntilDone(); } @@ -315,7 +314,7 @@ export class SnapshotsImpl implements Snapshots { volumeName: string, snapshotName: string, body: Record, - options?: SnapshotsUpdateOptionalParams + options?: SnapshotsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -324,21 +323,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); @@ -347,8 +345,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -356,8 +354,8 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -370,9 +368,9 @@ export class SnapshotsImpl implements Snapshots { volumeName, snapshotName, body, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< SnapshotsUpdateResponse, @@ -380,7 +378,7 @@ export class SnapshotsImpl implements Snapshots { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -403,7 +401,7 @@ export class SnapshotsImpl implements Snapshots { volumeName: string, snapshotName: string, body: Record, - options?: SnapshotsUpdateOptionalParams + options?: SnapshotsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -412,7 +410,7 @@ export class SnapshotsImpl implements Snapshots { volumeName, snapshotName, body, - options + options, ); return poller.pollUntilDone(); } @@ -432,25 +430,24 @@ export class SnapshotsImpl implements Snapshots { poolName: string, volumeName: 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); @@ -459,8 +456,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -468,8 +465,8 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -481,14 +478,14 @@ export class SnapshotsImpl implements Snapshots { poolName, volumeName, snapshotName, - options + 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; @@ -509,7 +506,7 @@ export class SnapshotsImpl implements Snapshots { poolName: string, volumeName: string, snapshotName: string, - options?: SnapshotsDeleteOptionalParams + options?: SnapshotsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, @@ -517,7 +514,7 @@ export class SnapshotsImpl implements Snapshots { poolName, volumeName, snapshotName, - options + options, ); return poller.pollUntilDone(); } @@ -539,25 +536,24 @@ export class SnapshotsImpl implements Snapshots { volumeName: string, snapshotName: string, body: SnapshotRestoreFiles, - options?: SnapshotsRestoreFilesOptionalParams + options?: SnapshotsRestoreFilesOptionalParams, ): 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); @@ -566,8 +562,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -575,8 +571,8 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -589,14 +585,14 @@ export class SnapshotsImpl implements Snapshots { volumeName, snapshotName, body, - options + options, }, - spec: restoreFilesOperationSpec + spec: restoreFilesOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -619,7 +615,7 @@ export class SnapshotsImpl implements Snapshots { volumeName: string, snapshotName: string, body: SnapshotRestoreFiles, - options?: SnapshotsRestoreFilesOptionalParams + options?: SnapshotsRestoreFilesOptionalParams, ): Promise { const poller = await this.beginRestoreFiles( resourceGroupName, @@ -628,7 +624,7 @@ export class SnapshotsImpl implements Snapshots { volumeName, snapshotName, body, - options + options, ); return poller.pollUntilDone(); } @@ -637,14 +633,15 @@ export class SnapshotsImpl implements Snapshots { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotsList + bodyMapper: Mappers.SnapshotsList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -653,20 +650,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -676,31 +674,32 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.snapshotName + Parameters.snapshotName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/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, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body20, + requestBody: Parameters.body19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -709,32 +708,33 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.snapshotName + Parameters.snapshotName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/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, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body21, + requestBody: Parameters.body20, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -743,17 +743,24 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.snapshotName + Parameters.snapshotName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -762,16 +769,24 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.snapshotName + Parameters.snapshotName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const restoreFilesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}/restoreFiles", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}/restoreFiles", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body22, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.body21, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -780,9 +795,9 @@ const restoreFilesOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.snapshotName + Parameters.snapshotName, ], - headerParameters: [Parameters.contentType], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/subvolumes.ts b/sdk/netapp/arm-netapp/src/operations/subvolumes.ts index ec5c0ba72c67..bc6bc4afe945 100644 --- a/sdk/netapp/arm-netapp/src/operations/subvolumes.ts +++ b/sdk/netapp/arm-netapp/src/operations/subvolumes.ts @@ -16,7 +16,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -34,7 +34,7 @@ import { SubvolumesDeleteOptionalParams, SubvolumesGetMetadataOptionalParams, SubvolumesGetMetadataResponse, - SubvolumesListByVolumeNextResponse + SubvolumesListByVolumeNextResponse, } from "../models"; /// @@ -63,14 +63,14 @@ export class SubvolumesImpl implements Subvolumes { accountName: string, poolName: string, volumeName: string, - options?: SubvolumesListByVolumeOptionalParams + options?: SubvolumesListByVolumeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByVolumePagingAll( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return { next() { @@ -89,9 +89,9 @@ export class SubvolumesImpl implements Subvolumes { poolName, volumeName, options, - settings + settings, ); - } + }, }; } @@ -101,7 +101,7 @@ export class SubvolumesImpl implements Subvolumes { poolName: string, volumeName: string, options?: SubvolumesListByVolumeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SubvolumesListByVolumeResponse; let continuationToken = settings?.continuationToken; @@ -111,7 +111,7 @@ export class SubvolumesImpl implements Subvolumes { accountName, poolName, volumeName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -125,7 +125,7 @@ export class SubvolumesImpl implements Subvolumes { poolName, volumeName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -139,14 +139,14 @@ export class SubvolumesImpl implements Subvolumes { accountName: string, poolName: string, volumeName: string, - options?: SubvolumesListByVolumeOptionalParams + options?: SubvolumesListByVolumeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByVolumePagingPage( resourceGroupName, accountName, poolName, volumeName, - options + options, )) { yield* page; } @@ -165,11 +165,11 @@ export class SubvolumesImpl implements Subvolumes { accountName: string, poolName: string, volumeName: string, - options?: SubvolumesListByVolumeOptionalParams + options?: SubvolumesListByVolumeOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, volumeName, options }, - listByVolumeOperationSpec + listByVolumeOperationSpec, ); } @@ -188,7 +188,7 @@ export class SubvolumesImpl implements Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesGetOptionalParams + options?: SubvolumesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -197,9 +197,9 @@ export class SubvolumesImpl implements Subvolumes { poolName, volumeName, subvolumeName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -220,7 +220,7 @@ export class SubvolumesImpl implements Subvolumes { volumeName: string, subvolumeName: string, body: SubvolumeInfo, - options?: SubvolumesCreateOptionalParams + options?: SubvolumesCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -229,21 +229,20 @@ export class SubvolumesImpl implements Subvolumes { > { 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); @@ -252,8 +251,8 @@ export class SubvolumesImpl implements Subvolumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -261,8 +260,8 @@ export class SubvolumesImpl implements Subvolumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -275,9 +274,9 @@ export class SubvolumesImpl implements Subvolumes { volumeName, subvolumeName, body, - options + options, }, - spec: createOperationSpec + spec: createOperationSpec, }); const poller = await createHttpPoller< SubvolumesCreateResponse, @@ -285,7 +284,7 @@ export class SubvolumesImpl implements Subvolumes { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -308,7 +307,7 @@ export class SubvolumesImpl implements Subvolumes { volumeName: string, subvolumeName: string, body: SubvolumeInfo, - options?: SubvolumesCreateOptionalParams + options?: SubvolumesCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, @@ -317,7 +316,7 @@ export class SubvolumesImpl implements Subvolumes { volumeName, subvolumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -339,7 +338,7 @@ export class SubvolumesImpl implements Subvolumes { volumeName: string, subvolumeName: string, body: SubvolumePatchRequest, - options?: SubvolumesUpdateOptionalParams + options?: SubvolumesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -348,21 +347,20 @@ export class SubvolumesImpl implements Subvolumes { > { 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); @@ -371,8 +369,8 @@ export class SubvolumesImpl implements Subvolumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -380,8 +378,8 @@ export class SubvolumesImpl implements Subvolumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -394,9 +392,9 @@ export class SubvolumesImpl implements Subvolumes { volumeName, subvolumeName, body, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< SubvolumesUpdateResponse, @@ -404,7 +402,7 @@ export class SubvolumesImpl implements Subvolumes { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -427,7 +425,7 @@ export class SubvolumesImpl implements Subvolumes { volumeName: string, subvolumeName: string, body: SubvolumePatchRequest, - options?: SubvolumesUpdateOptionalParams + options?: SubvolumesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -436,7 +434,7 @@ export class SubvolumesImpl implements Subvolumes { volumeName, subvolumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -456,25 +454,24 @@ export class SubvolumesImpl implements Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesDeleteOptionalParams + options?: SubvolumesDeleteOptionalParams, ): 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); @@ -483,8 +480,8 @@ export class SubvolumesImpl implements Subvolumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -492,8 +489,8 @@ export class SubvolumesImpl implements Subvolumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -505,14 +502,14 @@ export class SubvolumesImpl implements Subvolumes { poolName, volumeName, subvolumeName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -533,7 +530,7 @@ export class SubvolumesImpl implements Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesDeleteOptionalParams + options?: SubvolumesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, @@ -541,7 +538,7 @@ export class SubvolumesImpl implements Subvolumes { poolName, volumeName, subvolumeName, - options + options, ); return poller.pollUntilDone(); } @@ -561,7 +558,7 @@ export class SubvolumesImpl implements Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesGetMetadataOptionalParams + options?: SubvolumesGetMetadataOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -570,21 +567,20 @@ export class SubvolumesImpl implements Subvolumes { > { 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); @@ -593,8 +589,8 @@ export class SubvolumesImpl implements Subvolumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -602,8 +598,8 @@ export class SubvolumesImpl implements Subvolumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -615,9 +611,9 @@ export class SubvolumesImpl implements Subvolumes { poolName, volumeName, subvolumeName, - options + options, }, - spec: getMetadataOperationSpec + spec: getMetadataOperationSpec, }); const poller = await createHttpPoller< SubvolumesGetMetadataResponse, @@ -625,7 +621,7 @@ export class SubvolumesImpl implements Subvolumes { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -646,7 +642,7 @@ export class SubvolumesImpl implements Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesGetMetadataOptionalParams + options?: SubvolumesGetMetadataOptionalParams, ): Promise { const poller = await this.beginGetMetadata( resourceGroupName, @@ -654,7 +650,7 @@ export class SubvolumesImpl implements Subvolumes { poolName, volumeName, subvolumeName, - options + options, ); return poller.pollUntilDone(); } @@ -674,7 +670,7 @@ export class SubvolumesImpl implements Subvolumes { poolName: string, volumeName: string, nextLink: string, - options?: SubvolumesListByVolumeNextOptionalParams + options?: SubvolumesListByVolumeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -683,9 +679,9 @@ export class SubvolumesImpl implements Subvolumes { poolName, volumeName, nextLink, - options + options, }, - listByVolumeNextOperationSpec + listByVolumeNextOperationSpec, ); } } @@ -693,14 +689,15 @@ export class SubvolumesImpl implements Subvolumes { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByVolumeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubvolumesList + bodyMapper: Mappers.SubvolumesList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -709,20 +706,21 @@ const listByVolumeOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -732,31 +730,32 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.subvolumeName + Parameters.subvolumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, }, 201: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, }, 202: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, }, 204: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body32, + requestBody: Parameters.body29, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -765,32 +764,33 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.subvolumeName + Parameters.subvolumeName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, }, 201: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, }, 202: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, }, 204: { - bodyMapper: Mappers.SubvolumeInfo + bodyMapper: Mappers.SubvolumeInfo, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body33, + requestBody: Parameters.body30, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -799,17 +799,24 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.subvolumeName + Parameters.subvolumeName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -818,28 +825,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.subvolumeName + Parameters.subvolumeName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const getMetadataOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}/getMetadata", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/subvolumes/{subvolumeName}/getMetadata", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.SubvolumeModel + bodyMapper: Mappers.SubvolumeModel, }, 201: { - bodyMapper: Mappers.SubvolumeModel + bodyMapper: Mappers.SubvolumeModel, }, 202: { - bodyMapper: Mappers.SubvolumeModel + bodyMapper: Mappers.SubvolumeModel, }, 204: { - bodyMapper: Mappers.SubvolumeModel + bodyMapper: Mappers.SubvolumeModel, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -849,29 +858,31 @@ const getMetadataOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.subvolumeName + Parameters.subvolumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByVolumeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubvolumesList + bodyMapper: Mappers.SubvolumesList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink, Parameters.resourceGroupName, Parameters.accountName, + Parameters.nextLink, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/volumeGroups.ts b/sdk/netapp/arm-netapp/src/operations/volumeGroups.ts index 68a88ec41859..091c74772ab0 100644 --- a/sdk/netapp/arm-netapp/src/operations/volumeGroups.ts +++ b/sdk/netapp/arm-netapp/src/operations/volumeGroups.ts @@ -15,7 +15,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -27,7 +27,7 @@ import { VolumeGroupDetails, VolumeGroupsCreateOptionalParams, VolumeGroupsCreateResponse, - VolumeGroupsDeleteOptionalParams + VolumeGroupsDeleteOptionalParams, } from "../models"; /// @@ -52,12 +52,12 @@ export class VolumeGroupsImpl implements VolumeGroups { public listByNetAppAccount( resourceGroupName: string, accountName: string, - options?: VolumeGroupsListByNetAppAccountOptionalParams + options?: VolumeGroupsListByNetAppAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByNetAppAccountPagingAll( resourceGroupName, accountName, - options + options, ); return { next() { @@ -74,9 +74,9 @@ export class VolumeGroupsImpl implements VolumeGroups { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -84,13 +84,13 @@ export class VolumeGroupsImpl implements VolumeGroups { resourceGroupName: string, accountName: string, options?: VolumeGroupsListByNetAppAccountOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: VolumeGroupsListByNetAppAccountResponse; result = await this._listByNetAppAccount( resourceGroupName, accountName, - options + options, ); yield result.value || []; } @@ -98,12 +98,12 @@ export class VolumeGroupsImpl implements VolumeGroups { private async *listByNetAppAccountPagingAll( resourceGroupName: string, accountName: string, - options?: VolumeGroupsListByNetAppAccountOptionalParams + options?: VolumeGroupsListByNetAppAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByNetAppAccountPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -118,11 +118,11 @@ export class VolumeGroupsImpl implements VolumeGroups { private _listByNetAppAccount( resourceGroupName: string, accountName: string, - options?: VolumeGroupsListByNetAppAccountOptionalParams + options?: VolumeGroupsListByNetAppAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listByNetAppAccountOperationSpec + listByNetAppAccountOperationSpec, ); } @@ -137,11 +137,11 @@ export class VolumeGroupsImpl implements VolumeGroups { resourceGroupName: string, accountName: string, volumeGroupName: string, - options?: VolumeGroupsGetOptionalParams + options?: VolumeGroupsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, volumeGroupName, options }, - getOperationSpec + getOperationSpec, ); } @@ -158,7 +158,7 @@ export class VolumeGroupsImpl implements VolumeGroups { accountName: string, volumeGroupName: string, body: VolumeGroupDetails, - options?: VolumeGroupsCreateOptionalParams + options?: VolumeGroupsCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -167,21 +167,20 @@ export class VolumeGroupsImpl implements VolumeGroups { > { 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); @@ -190,8 +189,8 @@ export class VolumeGroupsImpl implements VolumeGroups { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -199,22 +198,22 @@ export class VolumeGroupsImpl implements VolumeGroups { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, volumeGroupName, body, options }, - spec: createOperationSpec + spec: createOperationSpec, }); const poller = await createHttpPoller< VolumeGroupsCreateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -233,14 +232,14 @@ export class VolumeGroupsImpl implements VolumeGroups { accountName: string, volumeGroupName: string, body: VolumeGroupDetails, - options?: VolumeGroupsCreateOptionalParams + options?: VolumeGroupsCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, accountName, volumeGroupName, body, - options + options, ); return poller.pollUntilDone(); } @@ -256,25 +255,24 @@ export class VolumeGroupsImpl implements VolumeGroups { resourceGroupName: string, accountName: string, volumeGroupName: string, - options?: VolumeGroupsDeleteOptionalParams + options?: VolumeGroupsDeleteOptionalParams, ): 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); @@ -283,8 +281,8 @@ export class VolumeGroupsImpl implements VolumeGroups { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -292,19 +290,19 @@ export class VolumeGroupsImpl implements VolumeGroups { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, volumeGroupName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -321,13 +319,13 @@ export class VolumeGroupsImpl implements VolumeGroups { resourceGroupName: string, accountName: string, volumeGroupName: string, - options?: VolumeGroupsDeleteOptionalParams + options?: VolumeGroupsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, volumeGroupName, - options + options, ); return poller.pollUntilDone(); } @@ -336,34 +334,36 @@ export class VolumeGroupsImpl implements VolumeGroups { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByNetAppAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeGroupList + bodyMapper: Mappers.VolumeGroupList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.accountName + Parameters.accountName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeGroupDetails + bodyMapper: Mappers.VolumeGroupDetails, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -371,55 +371,64 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.volumeGroupName + Parameters.volumeGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VolumeGroupDetails + bodyMapper: Mappers.VolumeGroupDetails, }, 201: { - bodyMapper: Mappers.VolumeGroupDetails + bodyMapper: Mappers.VolumeGroupDetails, }, 202: { - bodyMapper: Mappers.VolumeGroupDetails + bodyMapper: Mappers.VolumeGroupDetails, }, 204: { - bodyMapper: Mappers.VolumeGroupDetails + bodyMapper: Mappers.VolumeGroupDetails, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body31, + requestBody: Parameters.body28, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.volumeGroupName + Parameters.volumeGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.volumeGroupName + Parameters.volumeGroupName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/volumeQuotaRules.ts b/sdk/netapp/arm-netapp/src/operations/volumeQuotaRules.ts index c09dcef9a150..9c4f0daabd4f 100644 --- a/sdk/netapp/arm-netapp/src/operations/volumeQuotaRules.ts +++ b/sdk/netapp/arm-netapp/src/operations/volumeQuotaRules.ts @@ -15,7 +15,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,7 +29,7 @@ import { VolumeQuotaRulePatch, VolumeQuotaRulesUpdateOptionalParams, VolumeQuotaRulesUpdateResponse, - VolumeQuotaRulesDeleteOptionalParams + VolumeQuotaRulesDeleteOptionalParams, } from "../models"; /// @@ -58,14 +58,14 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { accountName: string, poolName: string, volumeName: string, - options?: VolumeQuotaRulesListByVolumeOptionalParams + options?: VolumeQuotaRulesListByVolumeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByVolumePagingAll( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return { next() { @@ -84,9 +84,9 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { poolName, volumeName, options, - settings + settings, ); - } + }, }; } @@ -96,7 +96,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { poolName: string, volumeName: string, options?: VolumeQuotaRulesListByVolumeOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: VolumeQuotaRulesListByVolumeResponse; result = await this._listByVolume( @@ -104,7 +104,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { accountName, poolName, volumeName, - options + options, ); yield result.value || []; } @@ -114,14 +114,14 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { accountName: string, poolName: string, volumeName: string, - options?: VolumeQuotaRulesListByVolumeOptionalParams + options?: VolumeQuotaRulesListByVolumeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByVolumePagingPage( resourceGroupName, accountName, poolName, volumeName, - options + options, )) { yield* page; } @@ -140,11 +140,11 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { accountName: string, poolName: string, volumeName: string, - options?: VolumeQuotaRulesListByVolumeOptionalParams + options?: VolumeQuotaRulesListByVolumeOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, volumeName, options }, - listByVolumeOperationSpec + listByVolumeOperationSpec, ); } @@ -163,7 +163,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { poolName: string, volumeName: string, volumeQuotaRuleName: string, - options?: VolumeQuotaRulesGetOptionalParams + options?: VolumeQuotaRulesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -172,9 +172,9 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { poolName, volumeName, volumeQuotaRuleName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -195,7 +195,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { volumeName: string, volumeQuotaRuleName: string, body: VolumeQuotaRule, - options?: VolumeQuotaRulesCreateOptionalParams + options?: VolumeQuotaRulesCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -204,21 +204,20 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { > { 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); @@ -227,8 +226,8 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -236,8 +235,8 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -250,9 +249,9 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { volumeName, volumeQuotaRuleName, body, - options + options, }, - spec: createOperationSpec + spec: createOperationSpec, }); const poller = await createHttpPoller< VolumeQuotaRulesCreateResponse, @@ -260,7 +259,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -283,7 +282,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { volumeName: string, volumeQuotaRuleName: string, body: VolumeQuotaRule, - options?: VolumeQuotaRulesCreateOptionalParams + options?: VolumeQuotaRulesCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, @@ -292,7 +291,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { volumeName, volumeQuotaRuleName, body, - options + options, ); return poller.pollUntilDone(); } @@ -314,7 +313,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { volumeName: string, volumeQuotaRuleName: string, body: VolumeQuotaRulePatch, - options?: VolumeQuotaRulesUpdateOptionalParams + options?: VolumeQuotaRulesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -323,21 +322,20 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { > { 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); @@ -346,8 +344,8 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -355,8 +353,8 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -369,9 +367,9 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { volumeName, volumeQuotaRuleName, body, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VolumeQuotaRulesUpdateResponse, @@ -379,7 +377,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -402,7 +400,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { volumeName: string, volumeQuotaRuleName: string, body: VolumeQuotaRulePatch, - options?: VolumeQuotaRulesUpdateOptionalParams + options?: VolumeQuotaRulesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -411,7 +409,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { volumeName, volumeQuotaRuleName, body, - options + options, ); return poller.pollUntilDone(); } @@ -431,25 +429,24 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { poolName: string, volumeName: string, volumeQuotaRuleName: string, - options?: VolumeQuotaRulesDeleteOptionalParams + options?: VolumeQuotaRulesDeleteOptionalParams, ): 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); @@ -458,8 +455,8 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -467,8 +464,8 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -480,14 +477,14 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { poolName, volumeName, volumeQuotaRuleName, - options + 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; @@ -508,7 +505,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { poolName: string, volumeName: string, volumeQuotaRuleName: string, - options?: VolumeQuotaRulesDeleteOptionalParams + options?: VolumeQuotaRulesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, @@ -516,7 +513,7 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { poolName, volumeName, volumeQuotaRuleName, - options + options, ); return poller.pollUntilDone(); } @@ -525,14 +522,15 @@ export class VolumeQuotaRulesImpl implements VolumeQuotaRules { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByVolumeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeQuotaRulesList + bodyMapper: Mappers.VolumeQuotaRulesList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -541,20 +539,21 @@ const listByVolumeOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -564,31 +563,32 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.volumeQuotaRuleName + Parameters.volumeQuotaRuleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, }, 201: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, }, 202: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, }, 204: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body29, + requestBody: Parameters.body26, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -597,32 +597,33 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.volumeQuotaRuleName + Parameters.volumeQuotaRuleName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, }, 201: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, }, 202: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, }, 204: { - bodyMapper: Mappers.VolumeQuotaRule + bodyMapper: Mappers.VolumeQuotaRule, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body30, + requestBody: Parameters.body27, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -631,17 +632,24 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.volumeQuotaRuleName + Parameters.volumeQuotaRuleName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -650,7 +658,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.accountName, Parameters.poolName, Parameters.volumeName, - Parameters.volumeQuotaRuleName + Parameters.volumeQuotaRuleName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operations/volumes.ts b/sdk/netapp/arm-netapp/src/operations/volumes.ts index ecb1ca29cafc..36d86af7c7cd 100644 --- a/sdk/netapp/arm-netapp/src/operations/volumes.ts +++ b/sdk/netapp/arm-netapp/src/operations/volumes.ts @@ -16,7 +16,7 @@ import { NetAppManagementClient } from "../netAppManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -41,8 +41,6 @@ import { VolumesRevertOptionalParams, VolumesResetCifsPasswordOptionalParams, VolumesResetCifsPasswordResponse, - VolumesSplitCloneFromParentOptionalParams, - VolumesSplitCloneFromParentResponse, VolumesBreakFileLocksOptionalParams, GetGroupIdListForLdapUserRequest, VolumesListGetGroupIdListForLdapUserOptionalParams, @@ -62,7 +60,7 @@ import { VolumesRelocateOptionalParams, VolumesFinalizeRelocationOptionalParams, VolumesRevertRelocationOptionalParams, - VolumesListNextResponse + VolumesListNextResponse, } from "../models"; /// @@ -89,13 +87,13 @@ export class VolumesImpl implements Volumes { resourceGroupName: string, accountName: string, poolName: string, - options?: VolumesListOptionalParams + options?: VolumesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, accountName, poolName, - options + options, ); return { next() { @@ -113,9 +111,9 @@ export class VolumesImpl implements Volumes { accountName, poolName, options, - settings + settings, ); - } + }, }; } @@ -124,7 +122,7 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, options?: VolumesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VolumesListResponse; let continuationToken = settings?.continuationToken; @@ -133,7 +131,7 @@ export class VolumesImpl implements Volumes { resourceGroupName, accountName, poolName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -146,7 +144,7 @@ export class VolumesImpl implements Volumes { accountName, poolName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -159,13 +157,13 @@ export class VolumesImpl implements Volumes { resourceGroupName: string, accountName: string, poolName: string, - options?: VolumesListOptionalParams + options?: VolumesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, accountName, poolName, - options + options, )) { yield* page; } @@ -184,14 +182,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesListReplicationsOptionalParams + options?: VolumesListReplicationsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listReplicationsPagingAll( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return { next() { @@ -210,9 +208,9 @@ export class VolumesImpl implements Volumes { poolName, volumeName, options, - settings + settings, ); - } + }, }; } @@ -222,7 +220,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, options?: VolumesListReplicationsOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: VolumesListReplicationsResponse; result = await this._listReplications( @@ -230,7 +228,7 @@ export class VolumesImpl implements Volumes { accountName, poolName, volumeName, - options + options, ); yield result.value || []; } @@ -240,14 +238,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesListReplicationsOptionalParams + options?: VolumesListReplicationsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listReplicationsPagingPage( resourceGroupName, accountName, poolName, volumeName, - options + options, )) { yield* page; } @@ -264,11 +262,11 @@ export class VolumesImpl implements Volumes { resourceGroupName: string, accountName: string, poolName: string, - options?: VolumesListOptionalParams + options?: VolumesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, options }, - listOperationSpec + listOperationSpec, ); } @@ -285,11 +283,11 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesGetOptionalParams + options?: VolumesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, volumeName, options }, - getOperationSpec + getOperationSpec, ); } @@ -308,7 +306,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: Volume, - options?: VolumesCreateOrUpdateOptionalParams + options?: VolumesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -317,21 +315,20 @@ export class VolumesImpl implements Volumes { > { 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); @@ -340,8 +337,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -349,8 +346,8 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -362,9 +359,9 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VolumesCreateOrUpdateResponse, @@ -372,7 +369,7 @@ export class VolumesImpl implements Volumes { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -393,7 +390,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: Volume, - options?: VolumesCreateOrUpdateOptionalParams + options?: VolumesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -401,7 +398,7 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -421,7 +418,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: VolumePatch, - options?: VolumesUpdateOptionalParams + options?: VolumesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -430,21 +427,20 @@ export class VolumesImpl implements Volumes { > { 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); @@ -453,8 +449,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -462,8 +458,8 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -475,9 +471,9 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VolumesUpdateResponse, @@ -485,7 +481,7 @@ export class VolumesImpl implements Volumes { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -506,7 +502,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: VolumePatch, - options?: VolumesUpdateOptionalParams + options?: VolumesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -514,7 +510,7 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -532,25 +528,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesDeleteOptionalParams + options?: VolumesDeleteOptionalParams, ): 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); @@ -559,8 +554,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -568,20 +563,20 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, 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; @@ -600,14 +595,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesDeleteOptionalParams + options?: VolumesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -625,7 +620,7 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesPopulateAvailabilityZoneOptionalParams + options?: VolumesPopulateAvailabilityZoneOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -634,21 +629,20 @@ export class VolumesImpl implements Volumes { > { 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 +651,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -666,15 +660,15 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: populateAvailabilityZoneOperationSpec + spec: populateAvailabilityZoneOperationSpec, }); const poller = await createHttpPoller< VolumesPopulateAvailabilityZoneResponse, @@ -682,7 +676,7 @@ export class VolumesImpl implements Volumes { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -701,14 +695,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesPopulateAvailabilityZoneOptionalParams + options?: VolumesPopulateAvailabilityZoneOptionalParams, ): Promise { const poller = await this.beginPopulateAvailabilityZone( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -728,25 +722,24 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: VolumeRevert, - options?: VolumesRevertOptionalParams + options?: VolumesRevertOptionalParams, ): 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); @@ -755,8 +748,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -764,8 +757,8 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -777,14 +770,14 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, }, - spec: revertOperationSpec + spec: revertOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -805,7 +798,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: VolumeRevert, - options?: VolumesRevertOptionalParams + options?: VolumesRevertOptionalParams, ): Promise { const poller = await this.beginRevert( resourceGroupName, @@ -813,7 +806,7 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -831,7 +824,7 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesResetCifsPasswordOptionalParams + options?: VolumesResetCifsPasswordOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -840,21 +833,20 @@ export class VolumesImpl implements Volumes { > { 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); @@ -863,8 +855,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -872,22 +864,22 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: resetCifsPasswordOperationSpec + spec: resetCifsPasswordOperationSpec, }); const poller = await createHttpPoller< VolumesResetCifsPasswordResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -906,115 +898,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesResetCifsPasswordOptionalParams + options?: VolumesResetCifsPasswordOptionalParams, ): Promise { const poller = await this.beginResetCifsPassword( resourceGroupName, accountName, poolName, volumeName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Split operation to convert clone volume to an independent volume. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param options The options parameters. - */ - async beginSplitCloneFromParent( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: VolumesSplitCloneFromParentOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - VolumesSplitCloneFromParentResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: splitCloneFromParentOperationSpec - }); - const poller = await createHttpPoller< - VolumesSplitCloneFromParentResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Split operation to convert clone volume to an independent volume. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param options The options parameters. - */ - async beginSplitCloneFromParentAndWait( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: VolumesSplitCloneFromParentOptionalParams - ): Promise { - const poller = await this.beginSplitCloneFromParent( - resourceGroupName, - accountName, - poolName, - volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -1032,25 +923,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesBreakFileLocksOptionalParams + options?: VolumesBreakFileLocksOptionalParams, ): 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); @@ -1059,8 +949,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1068,20 +958,20 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: breakFileLocksOperationSpec + spec: breakFileLocksOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1100,14 +990,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesBreakFileLocksOptionalParams + options?: VolumesBreakFileLocksOptionalParams, ): Promise { const poller = await this.beginBreakFileLocks( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -1127,7 +1017,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: GetGroupIdListForLdapUserRequest, - options?: VolumesListGetGroupIdListForLdapUserOptionalParams + options?: VolumesListGetGroupIdListForLdapUserOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1136,21 +1026,20 @@ export class VolumesImpl implements Volumes { > { 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); @@ -1159,8 +1048,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1168,8 +1057,8 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1181,9 +1070,9 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, }, - spec: listGetGroupIdListForLdapUserOperationSpec + spec: listGetGroupIdListForLdapUserOperationSpec, }); const poller = await createHttpPoller< VolumesListGetGroupIdListForLdapUserResponse, @@ -1191,7 +1080,7 @@ export class VolumesImpl implements Volumes { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1212,7 +1101,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: GetGroupIdListForLdapUserRequest, - options?: VolumesListGetGroupIdListForLdapUserOptionalParams + options?: VolumesListGetGroupIdListForLdapUserOptionalParams, ): Promise { const poller = await this.beginListGetGroupIdListForLdapUser( resourceGroupName, @@ -1220,7 +1109,7 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -1238,25 +1127,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesBreakReplicationOptionalParams + options?: VolumesBreakReplicationOptionalParams, ): 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); @@ -1265,8 +1153,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1274,20 +1162,20 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: breakReplicationOperationSpec + spec: breakReplicationOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1306,14 +1194,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesBreakReplicationOptionalParams + options?: VolumesBreakReplicationOptionalParams, ): Promise { const poller = await this.beginBreakReplication( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -1334,25 +1222,24 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: ReestablishReplicationRequest, - options?: VolumesReestablishReplicationOptionalParams + options?: VolumesReestablishReplicationOptionalParams, ): 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); @@ -1361,8 +1248,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1370,8 +1257,8 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1383,14 +1270,14 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, }, - spec: reestablishReplicationOperationSpec + spec: reestablishReplicationOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1412,7 +1299,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: ReestablishReplicationRequest, - options?: VolumesReestablishReplicationOptionalParams + options?: VolumesReestablishReplicationOptionalParams, ): Promise { const poller = await this.beginReestablishReplication( resourceGroupName, @@ -1420,7 +1307,7 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -1438,11 +1325,11 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesReplicationStatusOptionalParams + options?: VolumesReplicationStatusOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, volumeName, options }, - replicationStatusOperationSpec + replicationStatusOperationSpec, ); } @@ -1459,11 +1346,11 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesListReplicationsOptionalParams + options?: VolumesListReplicationsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, volumeName, options }, - listReplicationsOperationSpec + listReplicationsOperationSpec, ); } @@ -1481,25 +1368,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesResyncReplicationOptionalParams + options?: VolumesResyncReplicationOptionalParams, ): 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); @@ -1508,8 +1394,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1517,20 +1403,20 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: resyncReplicationOperationSpec + spec: resyncReplicationOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1550,14 +1436,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesResyncReplicationOptionalParams + options?: VolumesResyncReplicationOptionalParams, ): Promise { const poller = await this.beginResyncReplication( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -1576,25 +1462,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesDeleteReplicationOptionalParams + options?: VolumesDeleteReplicationOptionalParams, ): 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); @@ -1603,8 +1488,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1612,20 +1497,20 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: deleteReplicationOperationSpec + spec: deleteReplicationOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1645,14 +1530,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesDeleteReplicationOptionalParams + options?: VolumesDeleteReplicationOptionalParams, ): Promise { const poller = await this.beginDeleteReplication( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -1672,25 +1557,24 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: AuthorizeRequest, - options?: VolumesAuthorizeReplicationOptionalParams + options?: VolumesAuthorizeReplicationOptionalParams, ): 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); @@ -1699,8 +1583,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1708,8 +1592,8 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1721,14 +1605,14 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, }, - spec: authorizeReplicationOperationSpec + spec: authorizeReplicationOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1749,7 +1633,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: AuthorizeRequest, - options?: VolumesAuthorizeReplicationOptionalParams + options?: VolumesAuthorizeReplicationOptionalParams, ): Promise { const poller = await this.beginAuthorizeReplication( resourceGroupName, @@ -1757,7 +1641,7 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -1775,25 +1659,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesReInitializeReplicationOptionalParams + options?: VolumesReInitializeReplicationOptionalParams, ): 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); @@ -1802,8 +1685,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1811,20 +1694,20 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: reInitializeReplicationOperationSpec + spec: reInitializeReplicationOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1843,14 +1726,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesReInitializeReplicationOptionalParams + options?: VolumesReInitializeReplicationOptionalParams, ): Promise { const poller = await this.beginReInitializeReplication( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -1870,25 +1753,24 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: PoolChangeRequest, - options?: VolumesPoolChangeOptionalParams + options?: VolumesPoolChangeOptionalParams, ): 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); @@ -1897,8 +1779,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1906,8 +1788,8 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1919,14 +1801,14 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, }, - spec: poolChangeOperationSpec + spec: poolChangeOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1947,7 +1829,7 @@ export class VolumesImpl implements Volumes { poolName: string, volumeName: string, body: PoolChangeRequest, - options?: VolumesPoolChangeOptionalParams + options?: VolumesPoolChangeOptionalParams, ): Promise { const poller = await this.beginPoolChange( resourceGroupName, @@ -1955,7 +1837,7 @@ export class VolumesImpl implements Volumes { poolName, volumeName, body, - options + options, ); return poller.pollUntilDone(); } @@ -1973,25 +1855,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesRelocateOptionalParams + options?: VolumesRelocateOptionalParams, ): 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); @@ -2000,8 +1881,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -2009,19 +1890,19 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: relocateOperationSpec + spec: relocateOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -2040,14 +1921,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesRelocateOptionalParams + options?: VolumesRelocateOptionalParams, ): Promise { const poller = await this.beginRelocate( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -2065,25 +1946,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesFinalizeRelocationOptionalParams + options?: VolumesFinalizeRelocationOptionalParams, ): 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); @@ -2092,8 +1972,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -2101,19 +1981,19 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: finalizeRelocationOperationSpec + spec: finalizeRelocationOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -2132,14 +2012,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesFinalizeRelocationOptionalParams + options?: VolumesFinalizeRelocationOptionalParams, ): Promise { const poller = await this.beginFinalizeRelocation( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -2158,25 +2038,24 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesRevertRelocationOptionalParams + options?: VolumesRevertRelocationOptionalParams, ): 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); @@ -2185,8 +2064,8 @@ export class VolumesImpl implements Volumes { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -2194,19 +2073,19 @@ export class VolumesImpl implements Volumes { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, volumeName, options }, - spec: revertRelocationOperationSpec + spec: revertRelocationOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -2226,14 +2105,14 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesRevertRelocationOptionalParams + options?: VolumesRevertRelocationOptionalParams, ): Promise { const poller = await this.beginRevertRelocation( resourceGroupName, accountName, poolName, volumeName, - options + options, ); return poller.pollUntilDone(); } @@ -2251,11 +2130,11 @@ export class VolumesImpl implements Volumes { accountName: string, poolName: string, nextLink: string, - options?: VolumesListNextOptionalParams + options?: VolumesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -2263,14 +2142,15 @@ export class VolumesImpl implements Volumes { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeList + bodyMapper: Mappers.VolumeList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -2278,20 +2158,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.accountName, - Parameters.poolName + Parameters.poolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -2300,31 +2181,32 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 201: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 202: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 204: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, - requestBody: Parameters.body10, + requestBody: Parameters.body9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2332,34 +2214,33 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 201: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 202: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 204: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.body11, + requestBody: Parameters.body10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2367,17 +2248,24 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}", httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion, Parameters.forceDelete], urlParameters: [ Parameters.$host, @@ -2385,30 +2273,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const populateAvailabilityZoneOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/populateAvailabilityZone", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/populateAvailabilityZone", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 201: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 202: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, 204: { - bodyMapper: Mappers.Volume + bodyMapper: Mappers.Volume, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -2417,49 +2305,24 @@ const populateAvailabilityZoneOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const revertOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revert", - httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body12, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.poolName, - Parameters.volumeName - ], - headerParameters: [Parameters.contentType], - mediaType: "json", - serializer -}; -const resetCifsPasswordOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resetCifsPassword", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revert", httpMethod: "POST", responses: { - 200: { - headersMapper: Mappers.VolumesResetCifsPasswordHeaders - }, - 201: { - headersMapper: Mappers.VolumesResetCifsPasswordHeaders - }, - 202: { - headersMapper: Mappers.VolumesResetCifsPasswordHeaders - }, - 204: { - headersMapper: Mappers.VolumesResetCifsPasswordHeaders + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, + requestBody: Parameters.body11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2467,30 +2330,31 @@ const resetCifsPasswordOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - serializer + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, }; -const splitCloneFromParentOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/splitCloneFromParent", +const resetCifsPasswordOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resetCifsPassword", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.VolumesSplitCloneFromParentHeaders + headersMapper: Mappers.VolumesResetCifsPasswordHeaders, }, 201: { - headersMapper: Mappers.VolumesSplitCloneFromParentHeaders + headersMapper: Mappers.VolumesResetCifsPasswordHeaders, }, 202: { - headersMapper: Mappers.VolumesSplitCloneFromParentHeaders + headersMapper: Mappers.VolumesResetCifsPasswordHeaders, }, 204: { - headersMapper: Mappers.VolumesSplitCloneFromParentHeaders + headersMapper: Mappers.VolumesResetCifsPasswordHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -2499,17 +2363,24 @@ const splitCloneFromParentOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const breakFileLocksOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakFileLocks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakFileLocks", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body13, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.body12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2517,34 +2388,33 @@ const breakFileLocksOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - headerParameters: [Parameters.contentType], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listGetGroupIdListForLdapUserOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/getGroupIdListForLdapUser", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/getGroupIdListForLdapUser", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.GetGroupIdListForLdapUserResponse + bodyMapper: Mappers.GetGroupIdListForLdapUserResponse, }, 201: { - bodyMapper: Mappers.GetGroupIdListForLdapUserResponse + bodyMapper: Mappers.GetGroupIdListForLdapUserResponse, }, 202: { - bodyMapper: Mappers.GetGroupIdListForLdapUserResponse + bodyMapper: Mappers.GetGroupIdListForLdapUserResponse, }, 204: { - bodyMapper: Mappers.GetGroupIdListForLdapUserResponse + bodyMapper: Mappers.GetGroupIdListForLdapUserResponse, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.body14, + requestBody: Parameters.body13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2552,18 +2422,25 @@ const listGetGroupIdListForLdapUserOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const breakReplicationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakReplication", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakReplication", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body15, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.body14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2571,18 +2448,25 @@ const breakReplicationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - headerParameters: [Parameters.contentType], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const reestablishReplicationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reestablishReplication", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reestablishReplication", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body16, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.body15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2590,21 +2474,22 @@ const reestablishReplicationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - headerParameters: [Parameters.contentType], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const replicationStatusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/replicationStatus", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/replicationStatus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReplicationStatus + bodyMapper: Mappers.ReplicationStatus, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -2613,20 +2498,21 @@ const replicationStatusOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listReplicationsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/listReplications", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/listReplications", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ListReplications + bodyMapper: Mappers.ListReplications, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -2635,16 +2521,23 @@ const listReplicationsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const resyncReplicationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resyncReplication", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/resyncReplication", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2652,15 +2545,23 @@ const resyncReplicationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const deleteReplicationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/deleteReplication", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/deleteReplication", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2668,16 +2569,24 @@ const deleteReplicationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const authorizeReplicationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeReplication", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeReplication", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body17, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.body16, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2685,17 +2594,24 @@ const authorizeReplicationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - headerParameters: [Parameters.contentType], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const reInitializeReplicationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reinitializeReplication", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/reinitializeReplication", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2703,16 +2619,24 @@ const reInitializeReplicationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const poolChangeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/poolChange", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/poolChange", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body18, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.body17, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2720,18 +2644,25 @@ const poolChangeOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - headerParameters: [Parameters.contentType], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const relocateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/relocate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/relocate", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - requestBody: Parameters.body19, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.body18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2739,17 +2670,24 @@ const relocateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - headerParameters: [Parameters.contentType], + headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const finalizeRelocationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/finalizeRelocation", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/finalizeRelocation", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2757,15 +2695,23 @@ const finalizeRelocationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const revertRelocationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revertRelocation", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/revertRelocation", httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2773,27 +2719,30 @@ const revertRelocationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.accountName, Parameters.poolName, - Parameters.volumeName + Parameters.volumeName, ], - serializer + headerParameters: [Parameters.accept], + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VolumeList + bodyMapper: Mappers.VolumeList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, }, - default: {} }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink, Parameters.resourceGroupName, Parameters.accountName, - Parameters.poolName + Parameters.nextLink, + Parameters.poolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/accountBackups.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/accountBackups.ts deleted file mode 100644 index 76a9abaa9f43..000000000000 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/accountBackups.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - Backup, - AccountBackupsListByNetAppAccountOptionalParams, - AccountBackupsGetOptionalParams, - AccountBackupsGetResponse, - AccountBackupsDeleteOptionalParams, - AccountBackupsDeleteResponse -} from "../models"; - -/// -/** Interface representing a AccountBackups. */ -export interface AccountBackups { - /** - * List all Backups for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - listByNetAppAccount( - resourceGroupName: string, - accountName: string, - options?: AccountBackupsListByNetAppAccountOptionalParams - ): PagedAsyncIterableIterator; - /** - * Gets the specified backup for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupName The name of the backup - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - backupName: string, - options?: AccountBackupsGetOptionalParams - ): Promise; - /** - * Delete the specified Backup for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupName The name of the backup - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - accountName: string, - backupName: string, - options?: AccountBackupsDeleteOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - AccountBackupsDeleteResponse - > - >; - /** - * Delete the specified Backup for a Netapp Account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupName The name of the backup - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - accountName: string, - backupName: string, - options?: AccountBackupsDeleteOptionalParams - ): Promise; -} diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/accounts.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/accounts.ts index e41cfb16a561..da771b6e975d 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/accounts.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/accounts.ts @@ -21,8 +21,6 @@ import { AccountsUpdateOptionalParams, AccountsUpdateResponse, AccountsRenewCredentialsOptionalParams, - AccountsMigrateEncryptionKeyOptionalParams, - AccountsMigrateEncryptionKeyResponse } from "../models"; /// @@ -33,7 +31,7 @@ export interface Accounts { * @param options The options parameters. */ listBySubscription( - options?: AccountsListBySubscriptionOptionalParams + options?: AccountsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * List and describe all NetApp accounts in the resource group. @@ -42,7 +40,7 @@ export interface Accounts { */ list( resourceGroupName: string, - options?: AccountsListOptionalParams + options?: AccountsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the NetApp account @@ -53,7 +51,7 @@ export interface Accounts { get( resourceGroupName: string, accountName: string, - options?: AccountsGetOptionalParams + options?: AccountsGetOptionalParams, ): Promise; /** * Create or update the specified NetApp account within the resource group @@ -66,7 +64,7 @@ export interface Accounts { resourceGroupName: string, accountName: string, body: NetAppAccount, - options?: AccountsCreateOrUpdateOptionalParams + options?: AccountsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -84,7 +82,7 @@ export interface Accounts { resourceGroupName: string, accountName: string, body: NetAppAccount, - options?: AccountsCreateOrUpdateOptionalParams + options?: AccountsCreateOrUpdateOptionalParams, ): Promise; /** * Delete the specified NetApp account @@ -95,7 +93,7 @@ export interface Accounts { beginDelete( resourceGroupName: string, accountName: string, - options?: AccountsDeleteOptionalParams + options?: AccountsDeleteOptionalParams, ): Promise, void>>; /** * Delete the specified NetApp account @@ -106,7 +104,7 @@ export interface Accounts { beginDeleteAndWait( resourceGroupName: string, accountName: string, - options?: AccountsDeleteOptionalParams + options?: AccountsDeleteOptionalParams, ): Promise; /** * Patch the specified NetApp account @@ -119,7 +117,7 @@ export interface Accounts { resourceGroupName: string, accountName: string, body: NetAppAccountPatch, - options?: AccountsUpdateOptionalParams + options?: AccountsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -137,7 +135,7 @@ export interface Accounts { resourceGroupName: string, accountName: string, body: NetAppAccountPatch, - options?: AccountsUpdateOptionalParams + options?: AccountsUpdateOptionalParams, ): Promise; /** * Renew identity credentials that are used to authenticate to key vault, for customer-managed key @@ -150,7 +148,7 @@ export interface Accounts { beginRenewCredentials( resourceGroupName: string, accountName: string, - options?: AccountsRenewCredentialsOptionalParams + options?: AccountsRenewCredentialsOptionalParams, ): Promise, void>>; /** * Renew identity credentials that are used to authenticate to key vault, for customer-managed key @@ -163,37 +161,6 @@ export interface Accounts { beginRenewCredentialsAndWait( resourceGroupName: string, accountName: string, - options?: AccountsRenewCredentialsOptionalParams + options?: AccountsRenewCredentialsOptionalParams, ): Promise; - /** - * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure - * Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from - * another account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - beginMigrateEncryptionKey( - resourceGroupName: string, - accountName: string, - options?: AccountsMigrateEncryptionKeyOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - AccountsMigrateEncryptionKeyResponse - > - >; - /** - * Migrates all volumes in a VNet to a different encryption key source (Microsoft-managed key or Azure - * Key Vault). Operation fails if targeted volumes share encryption sibling set with volumes from - * another account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - beginMigrateEncryptionKeyAndWait( - resourceGroupName: string, - accountName: string, - options?: AccountsMigrateEncryptionKeyOptionalParams - ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupPolicies.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/backupPolicies.ts index 236434347e8b..b0cb669b33a1 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupPolicies.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/backupPolicies.ts @@ -18,7 +18,7 @@ import { BackupPolicyPatch, BackupPoliciesUpdateOptionalParams, BackupPoliciesUpdateResponse, - BackupPoliciesDeleteOptionalParams + BackupPoliciesDeleteOptionalParams, } from "../models"; /// @@ -33,7 +33,7 @@ export interface BackupPolicies { list( resourceGroupName: string, accountName: string, - options?: BackupPoliciesListOptionalParams + options?: BackupPoliciesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a particular backup Policy @@ -46,7 +46,7 @@ export interface BackupPolicies { resourceGroupName: string, accountName: string, backupPolicyName: string, - options?: BackupPoliciesGetOptionalParams + options?: BackupPoliciesGetOptionalParams, ): Promise; /** * Create a backup policy for Netapp Account @@ -61,7 +61,7 @@ export interface BackupPolicies { accountName: string, backupPolicyName: string, body: BackupPolicy, - options?: BackupPoliciesCreateOptionalParams + options?: BackupPoliciesCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -81,7 +81,7 @@ export interface BackupPolicies { accountName: string, backupPolicyName: string, body: BackupPolicy, - options?: BackupPoliciesCreateOptionalParams + options?: BackupPoliciesCreateOptionalParams, ): Promise; /** * Patch a backup policy for Netapp Account @@ -96,7 +96,7 @@ export interface BackupPolicies { accountName: string, backupPolicyName: string, body: BackupPolicyPatch, - options?: BackupPoliciesUpdateOptionalParams + options?: BackupPoliciesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -116,7 +116,7 @@ export interface BackupPolicies { accountName: string, backupPolicyName: string, body: BackupPolicyPatch, - options?: BackupPoliciesUpdateOptionalParams + options?: BackupPoliciesUpdateOptionalParams, ): Promise; /** * Delete backup policy @@ -129,7 +129,7 @@ export interface BackupPolicies { resourceGroupName: string, accountName: string, backupPolicyName: string, - options?: BackupPoliciesDeleteOptionalParams + options?: BackupPoliciesDeleteOptionalParams, ): Promise, void>>; /** * Delete backup policy @@ -142,6 +142,6 @@ export interface BackupPolicies { resourceGroupName: string, accountName: string, backupPolicyName: string, - options?: BackupPoliciesDeleteOptionalParams + options?: BackupPoliciesDeleteOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupVaults.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/backupVaults.ts deleted file mode 100644 index 49a3ab8e7a23..000000000000 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupVaults.ts +++ /dev/null @@ -1,153 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - BackupVault, - BackupVaultsListByNetAppAccountOptionalParams, - BackupVaultsGetOptionalParams, - BackupVaultsGetResponse, - BackupVaultsCreateOrUpdateOptionalParams, - BackupVaultsCreateOrUpdateResponse, - BackupVaultPatch, - BackupVaultsUpdateOptionalParams, - BackupVaultsUpdateResponse, - BackupVaultsDeleteOptionalParams, - BackupVaultsDeleteResponse -} from "../models"; - -/// -/** Interface representing a BackupVaults. */ -export interface BackupVaults { - /** - * List and describe all Backup Vaults in the NetApp account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param options The options parameters. - */ - listByNetAppAccount( - resourceGroupName: string, - accountName: string, - options?: BackupVaultsListByNetAppAccountOptionalParams - ): PagedAsyncIterableIterator; - /** - * Get the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupVaultsGetOptionalParams - ): Promise; - /** - * Create or update the specified Backup Vault in the NetApp account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param body BackupVault object supplied in the body of the operation. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - body: BackupVault, - options?: BackupVaultsCreateOrUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupVaultsCreateOrUpdateResponse - > - >; - /** - * Create or update the specified Backup Vault in the NetApp account - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param body BackupVault object supplied in the body of the operation. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - body: BackupVault, - options?: BackupVaultsCreateOrUpdateOptionalParams - ): Promise; - /** - * Patch the specified NetApp Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param body Backup Vault object supplied in the body of the operation. - * @param options The options parameters. - */ - beginUpdate( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - body: BackupVaultPatch, - options?: BackupVaultsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupVaultsUpdateResponse - > - >; - /** - * Patch the specified NetApp Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param body Backup Vault object supplied in the body of the operation. - * @param options The options parameters. - */ - beginUpdateAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - body: BackupVaultPatch, - options?: BackupVaultsUpdateOptionalParams - ): Promise; - /** - * Delete the specified Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupVaultsDeleteOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupVaultsDeleteResponse - > - >; - /** - * Delete the specified Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupVaultsDeleteOptionalParams - ): Promise; -} diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/backups.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/backups.ts index e799d65beac9..972e1faf79b7 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/backups.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/backups.ts @@ -6,56 +6,13 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { - Backup, - BackupsListByVaultOptionalParams, - BackupsGetLatestStatusOptionalParams, - BackupsGetLatestStatusResponse, BackupsGetVolumeRestoreStatusOptionalParams, BackupsGetVolumeRestoreStatusResponse, - BackupsGetOptionalParams, - BackupsGetResponse, - BackupsCreateOptionalParams, - BackupsCreateResponse, - BackupsUpdateOptionalParams, - BackupsUpdateResponse, - BackupsDeleteOptionalParams, - BackupsDeleteResponse } from "../models"; -/// /** Interface representing a Backups. */ export interface Backups { - /** - * List all backups Under a Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param options The options parameters. - */ - listByVault( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - options?: BackupsListByVaultOptionalParams - ): PagedAsyncIterableIterator; - /** - * Get the latest status of the backup for a volume - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param options The options parameters. - */ - getLatestStatus( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: BackupsGetLatestStatusOptionalParams - ): Promise; /** * Get the status of the restore for a volume * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -69,130 +26,6 @@ export interface Backups { accountName: string, poolName: string, volumeName: string, - options?: BackupsGetVolumeRestoreStatusOptionalParams + options?: BackupsGetVolumeRestoreStatusOptionalParams, ): Promise; - /** - * Get the specified Backup under Backup Vault. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsGetOptionalParams - ): Promise; - /** - * Create a backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param body Backup object supplied in the body of the operation. - * @param options The options parameters. - */ - beginCreate( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - body: Backup, - options?: BackupsCreateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsCreateResponse - > - >; - /** - * Create a backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param body Backup object supplied in the body of the operation. - * @param options The options parameters. - */ - beginCreateAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - body: Backup, - options?: BackupsCreateOptionalParams - ): Promise; - /** - * Patch a Backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - beginUpdate( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsUpdateResponse - > - >; - /** - * Patch a Backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - beginUpdateAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsUpdateOptionalParams - ): Promise; - /** - * Delete a Backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsDeleteOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsDeleteResponse - > - >; - /** - * Delete a Backup under the Backup Vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - options?: BackupsDeleteOptionalParams - ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderAccount.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderAccount.ts deleted file mode 100644 index a33aad6436c9..000000000000 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderAccount.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - BackupsMigrationRequest, - BackupsUnderAccountMigrateBackupsOptionalParams, - BackupsUnderAccountMigrateBackupsResponse -} from "../models"; - -/** Interface representing a BackupsUnderAccount. */ -export interface BackupsUnderAccount { - /** - * Migrate the backups under a NetApp account to backup vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param body Migrate backups under an account payload supplied in the body of the operation. - * @param options The options parameters. - */ - beginMigrateBackups( - resourceGroupName: string, - accountName: string, - body: BackupsMigrationRequest, - options?: BackupsUnderAccountMigrateBackupsOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsUnderAccountMigrateBackupsResponse - > - >; - /** - * Migrate the backups under a NetApp account to backup vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param body Migrate backups under an account payload supplied in the body of the operation. - * @param options The options parameters. - */ - beginMigrateBackupsAndWait( - resourceGroupName: string, - accountName: string, - body: BackupsMigrationRequest, - options?: BackupsUnderAccountMigrateBackupsOptionalParams - ): Promise; -} diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderBackupVault.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderBackupVault.ts deleted file mode 100644 index 493f452dccdb..000000000000 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderBackupVault.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - BackupRestoreFiles, - BackupsUnderBackupVaultRestoreFilesOptionalParams, - BackupsUnderBackupVaultRestoreFilesResponse -} from "../models"; - -/** Interface representing a BackupsUnderBackupVault. */ -export interface BackupsUnderBackupVault { - /** - * Restore the specified files from the specified backup to the active filesystem - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param body Restore payload supplied in the body of the operation. - * @param options The options parameters. - */ - beginRestoreFiles( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - body: BackupRestoreFiles, - options?: BackupsUnderBackupVaultRestoreFilesOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsUnderBackupVaultRestoreFilesResponse - > - >; - /** - * Restore the specified files from the specified backup to the active filesystem - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param backupVaultName The name of the Backup Vault - * @param backupName The name of the backup - * @param body Restore payload supplied in the body of the operation. - * @param options The options parameters. - */ - beginRestoreFilesAndWait( - resourceGroupName: string, - accountName: string, - backupVaultName: string, - backupName: string, - body: BackupRestoreFiles, - options?: BackupsUnderBackupVaultRestoreFilesOptionalParams - ): Promise; -} diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderVolume.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderVolume.ts deleted file mode 100644 index 48375bd2d2bb..000000000000 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/backupsUnderVolume.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - BackupsMigrationRequest, - BackupsUnderVolumeMigrateBackupsOptionalParams, - BackupsUnderVolumeMigrateBackupsResponse -} from "../models"; - -/** Interface representing a BackupsUnderVolume. */ -export interface BackupsUnderVolume { - /** - * Migrate the backups under volume to backup vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param body Migrate backups under volume payload supplied in the body of the operation. - * @param options The options parameters. - */ - beginMigrateBackups( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - body: BackupsMigrationRequest, - options?: BackupsUnderVolumeMigrateBackupsOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - BackupsUnderVolumeMigrateBackupsResponse - > - >; - /** - * Migrate the backups under volume to backup vault - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param body Migrate backups under volume payload supplied in the body of the operation. - * @param options The options parameters. - */ - beginMigrateBackupsAndWait( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - body: BackupsMigrationRequest, - options?: BackupsUnderVolumeMigrateBackupsOptionalParams - ): Promise; -} diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/index.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/index.ts index 85ac01dc9a6e..3452b163b6da 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/index.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/index.ts @@ -9,19 +9,13 @@ export * from "./operations"; export * from "./netAppResource"; export * from "./netAppResourceQuotaLimits"; -export * from "./netAppResourceRegionInfos"; export * from "./accounts"; export * from "./pools"; export * from "./volumes"; export * from "./snapshots"; export * from "./snapshotPolicies"; export * from "./backups"; -export * from "./accountBackups"; export * from "./backupPolicies"; export * from "./volumeQuotaRules"; export * from "./volumeGroups"; export * from "./subvolumes"; -export * from "./backupVaults"; -export * from "./backupsUnderBackupVault"; -export * from "./backupsUnderVolume"; -export * from "./backupsUnderAccount"; diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResource.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResource.ts index ef0ae7423b66..0769a23448f5 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResource.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResource.ts @@ -22,7 +22,7 @@ import { NetAppResourceQueryNetworkSiblingSetResponse, NetworkFeatures, NetAppResourceUpdateNetworkSiblingSetOptionalParams, - NetAppResourceUpdateNetworkSiblingSetResponse + NetAppResourceUpdateNetworkSiblingSetResponse, } from "../models"; /** Interface representing a NetAppResource. */ @@ -40,7 +40,7 @@ export interface NetAppResource { name: string, typeParam: CheckNameResourceTypes, resourceGroup: string, - options?: NetAppResourceCheckNameAvailabilityOptionalParams + options?: NetAppResourceCheckNameAvailabilityOptionalParams, ): Promise; /** * Check if a file path is available. @@ -54,7 +54,7 @@ export interface NetAppResource { location: string, name: string, subnetId: string, - options?: NetAppResourceCheckFilePathAvailabilityOptionalParams + options?: NetAppResourceCheckFilePathAvailabilityOptionalParams, ): Promise; /** * Check if a quota is available. @@ -69,7 +69,7 @@ export interface NetAppResource { name: string, typeParam: CheckQuotaNameResourceTypes, resourceGroup: string, - options?: NetAppResourceCheckQuotaAvailabilityOptionalParams + options?: NetAppResourceCheckQuotaAvailabilityOptionalParams, ): Promise; /** * Provides storage to network proximity and logical zone mapping information. @@ -78,7 +78,7 @@ export interface NetAppResource { */ queryRegionInfo( location: string, - options?: NetAppResourceQueryRegionInfoOptionalParams + options?: NetAppResourceQueryRegionInfoOptionalParams, ): Promise; /** * Get details of the specified network sibling set. @@ -94,7 +94,7 @@ export interface NetAppResource { location: string, networkSiblingSetId: string, subnetId: string, - options?: NetAppResourceQueryNetworkSiblingSetOptionalParams + options?: NetAppResourceQueryNetworkSiblingSetOptionalParams, ): Promise; /** * Update the network features of the specified network sibling set. @@ -106,7 +106,7 @@ export interface NetAppResource { * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} * @param networkSiblingSetStateId Network sibling set state Id identifying the current state of the * sibling set. - * @param networkFeatures Network features available to the volume + * @param networkFeatures Network features available to the volume, some such * @param options The options parameters. */ beginUpdateNetworkSiblingSet( @@ -115,7 +115,7 @@ export interface NetAppResource { subnetId: string, networkSiblingSetStateId: string, networkFeatures: NetworkFeatures, - options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams + options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -132,7 +132,7 @@ export interface NetAppResource { * /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet} * @param networkSiblingSetStateId Network sibling set state Id identifying the current state of the * sibling set. - * @param networkFeatures Network features available to the volume + * @param networkFeatures Network features available to the volume, some such * @param options The options parameters. */ beginUpdateNetworkSiblingSetAndWait( @@ -141,6 +141,6 @@ export interface NetAppResource { subnetId: string, networkSiblingSetStateId: string, networkFeatures: NetworkFeatures, - options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams + options?: NetAppResourceUpdateNetworkSiblingSetOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceQuotaLimits.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceQuotaLimits.ts index bea88fbc025c..ef4fc7da424d 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceQuotaLimits.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceQuotaLimits.ts @@ -11,7 +11,7 @@ import { SubscriptionQuotaItem, NetAppResourceQuotaLimitsListOptionalParams, NetAppResourceQuotaLimitsGetOptionalParams, - NetAppResourceQuotaLimitsGetResponse + NetAppResourceQuotaLimitsGetResponse, } from "../models"; /// @@ -24,7 +24,7 @@ export interface NetAppResourceQuotaLimits { */ list( location: string, - options?: NetAppResourceQuotaLimitsListOptionalParams + options?: NetAppResourceQuotaLimitsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the default and current subscription quota limit @@ -35,6 +35,6 @@ export interface NetAppResourceQuotaLimits { get( location: string, quotaLimitName: string, - options?: NetAppResourceQuotaLimitsGetOptionalParams + options?: NetAppResourceQuotaLimitsGetOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceRegionInfos.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceRegionInfos.ts deleted file mode 100644 index 8b96f828710a..000000000000 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/netAppResourceRegionInfos.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - RegionInfoResource, - NetAppResourceRegionInfosListOptionalParams, - NetAppResourceRegionInfosGetOptionalParams, - NetAppResourceRegionInfosGetResponse -} from "../models"; - -/// -/** Interface representing a NetAppResourceRegionInfos. */ -export interface NetAppResourceRegionInfos { - /** - * Provides region specific information. - * @param location The name of the Azure region. - * @param options The options parameters. - */ - list( - location: string, - options?: NetAppResourceRegionInfosListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Provides storage to network proximity and logical zone mapping information. - * @param location The name of the Azure region. - * @param options The options parameters. - */ - get( - location: string, - options?: NetAppResourceRegionInfosGetOptionalParams - ): Promise; -} diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/operations.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/operations.ts index 2f1bec7ad1eb..d4637711f181 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/operations.ts +++ b/sdk/netapp/arm-netapp/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/netapp/arm-netapp/src/operationsInterfaces/pools.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/pools.ts index e078fd280e99..4c122b5c6b41 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/pools.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/pools.ts @@ -18,7 +18,7 @@ import { CapacityPoolPatch, PoolsUpdateOptionalParams, PoolsUpdateResponse, - PoolsDeleteOptionalParams + PoolsDeleteOptionalParams, } from "../models"; /// @@ -33,7 +33,7 @@ export interface Pools { list( resourceGroupName: string, accountName: string, - options?: PoolsListOptionalParams + options?: PoolsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get details of the specified capacity pool @@ -46,7 +46,7 @@ export interface Pools { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolsGetOptionalParams + options?: PoolsGetOptionalParams, ): Promise; /** * Create or Update a capacity pool @@ -61,7 +61,7 @@ export interface Pools { accountName: string, poolName: string, body: CapacityPool, - options?: PoolsCreateOrUpdateOptionalParams + options?: PoolsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -81,7 +81,7 @@ export interface Pools { accountName: string, poolName: string, body: CapacityPool, - options?: PoolsCreateOrUpdateOptionalParams + options?: PoolsCreateOrUpdateOptionalParams, ): Promise; /** * Patch the specified capacity pool @@ -96,7 +96,7 @@ export interface Pools { accountName: string, poolName: string, body: CapacityPoolPatch, - options?: PoolsUpdateOptionalParams + options?: PoolsUpdateOptionalParams, ): Promise< SimplePollerLike, PoolsUpdateResponse> >; @@ -113,7 +113,7 @@ export interface Pools { accountName: string, poolName: string, body: CapacityPoolPatch, - options?: PoolsUpdateOptionalParams + options?: PoolsUpdateOptionalParams, ): Promise; /** * Delete the specified capacity pool @@ -126,7 +126,7 @@ export interface Pools { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolsDeleteOptionalParams + options?: PoolsDeleteOptionalParams, ): Promise, void>>; /** * Delete the specified capacity pool @@ -139,6 +139,6 @@ export interface Pools { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolsDeleteOptionalParams + options?: PoolsDeleteOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshotPolicies.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshotPolicies.ts index 766050503ef7..f064853e49e5 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshotPolicies.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshotPolicies.ts @@ -20,7 +20,7 @@ import { SnapshotPoliciesUpdateResponse, SnapshotPoliciesDeleteOptionalParams, SnapshotPoliciesListVolumesOptionalParams, - SnapshotPoliciesListVolumesResponse + SnapshotPoliciesListVolumesResponse, } from "../models"; /// @@ -35,7 +35,7 @@ export interface SnapshotPolicies { list( resourceGroupName: string, accountName: string, - options?: SnapshotPoliciesListOptionalParams + options?: SnapshotPoliciesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a snapshot Policy @@ -48,7 +48,7 @@ export interface SnapshotPolicies { resourceGroupName: string, accountName: string, snapshotPolicyName: string, - options?: SnapshotPoliciesGetOptionalParams + options?: SnapshotPoliciesGetOptionalParams, ): Promise; /** * Create a snapshot policy @@ -63,7 +63,7 @@ export interface SnapshotPolicies { accountName: string, snapshotPolicyName: string, body: SnapshotPolicy, - options?: SnapshotPoliciesCreateOptionalParams + options?: SnapshotPoliciesCreateOptionalParams, ): Promise; /** * Patch a snapshot policy @@ -78,7 +78,7 @@ export interface SnapshotPolicies { accountName: string, snapshotPolicyName: string, body: SnapshotPolicyPatch, - options?: SnapshotPoliciesUpdateOptionalParams + options?: SnapshotPoliciesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -98,7 +98,7 @@ export interface SnapshotPolicies { accountName: string, snapshotPolicyName: string, body: SnapshotPolicyPatch, - options?: SnapshotPoliciesUpdateOptionalParams + options?: SnapshotPoliciesUpdateOptionalParams, ): Promise; /** * Delete snapshot policy @@ -111,7 +111,7 @@ export interface SnapshotPolicies { resourceGroupName: string, accountName: string, snapshotPolicyName: string, - options?: SnapshotPoliciesDeleteOptionalParams + options?: SnapshotPoliciesDeleteOptionalParams, ): Promise, void>>; /** * Delete snapshot policy @@ -124,7 +124,7 @@ export interface SnapshotPolicies { resourceGroupName: string, accountName: string, snapshotPolicyName: string, - options?: SnapshotPoliciesDeleteOptionalParams + options?: SnapshotPoliciesDeleteOptionalParams, ): Promise; /** * Get volumes associated with snapshot policy @@ -137,6 +137,6 @@ export interface SnapshotPolicies { resourceGroupName: string, accountName: string, snapshotPolicyName: string, - options?: SnapshotPoliciesListVolumesOptionalParams + options?: SnapshotPoliciesListVolumesOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshots.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshots.ts index b2ceadcfa1b9..bb8252aaca3a 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshots.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/snapshots.ts @@ -19,7 +19,7 @@ import { SnapshotsUpdateResponse, SnapshotsDeleteOptionalParams, SnapshotRestoreFiles, - SnapshotsRestoreFilesOptionalParams + SnapshotsRestoreFilesOptionalParams, } from "../models"; /// @@ -38,7 +38,7 @@ export interface Snapshots { accountName: string, poolName: string, volumeName: string, - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get details of the specified snapshot @@ -55,7 +55,7 @@ export interface Snapshots { poolName: string, volumeName: string, snapshotName: string, - options?: SnapshotsGetOptionalParams + options?: SnapshotsGetOptionalParams, ): Promise; /** * Create the specified snapshot within the given volume @@ -74,7 +74,7 @@ export interface Snapshots { volumeName: string, snapshotName: string, body: Snapshot, - options?: SnapshotsCreateOptionalParams + options?: SnapshotsCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -98,7 +98,7 @@ export interface Snapshots { volumeName: string, snapshotName: string, body: Snapshot, - options?: SnapshotsCreateOptionalParams + options?: SnapshotsCreateOptionalParams, ): Promise; /** * Patch a snapshot @@ -117,7 +117,7 @@ export interface Snapshots { volumeName: string, snapshotName: string, body: Record, - options?: SnapshotsUpdateOptionalParams + options?: SnapshotsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -141,7 +141,7 @@ export interface Snapshots { volumeName: string, snapshotName: string, body: Record, - options?: SnapshotsUpdateOptionalParams + options?: SnapshotsUpdateOptionalParams, ): Promise; /** * Delete snapshot @@ -158,7 +158,7 @@ export interface Snapshots { poolName: string, volumeName: string, snapshotName: string, - options?: SnapshotsDeleteOptionalParams + options?: SnapshotsDeleteOptionalParams, ): Promise, void>>; /** * Delete snapshot @@ -175,7 +175,7 @@ export interface Snapshots { poolName: string, volumeName: string, snapshotName: string, - options?: SnapshotsDeleteOptionalParams + options?: SnapshotsDeleteOptionalParams, ): Promise; /** * Restore the specified files from the specified snapshot to the active filesystem @@ -194,7 +194,7 @@ export interface Snapshots { volumeName: string, snapshotName: string, body: SnapshotRestoreFiles, - options?: SnapshotsRestoreFilesOptionalParams + options?: SnapshotsRestoreFilesOptionalParams, ): Promise, void>>; /** * Restore the specified files from the specified snapshot to the active filesystem @@ -213,6 +213,6 @@ export interface Snapshots { volumeName: string, snapshotName: string, body: SnapshotRestoreFiles, - options?: SnapshotsRestoreFilesOptionalParams + options?: SnapshotsRestoreFilesOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/subvolumes.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/subvolumes.ts index 330fa9e4be94..becb5149c5f2 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/subvolumes.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/subvolumes.ts @@ -20,7 +20,7 @@ import { SubvolumesUpdateResponse, SubvolumesDeleteOptionalParams, SubvolumesGetMetadataOptionalParams, - SubvolumesGetMetadataResponse + SubvolumesGetMetadataResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export interface Subvolumes { accountName: string, poolName: string, volumeName: string, - options?: SubvolumesListByVolumeOptionalParams + options?: SubvolumesListByVolumeOptionalParams, ): PagedAsyncIterableIterator; /** * Returns the path associated with the subvolumeName provided @@ -56,7 +56,7 @@ export interface Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesGetOptionalParams + options?: SubvolumesGetOptionalParams, ): Promise; /** * Creates a subvolume in the path or clones the subvolume mentioned in the parentPath @@ -75,7 +75,7 @@ export interface Subvolumes { volumeName: string, subvolumeName: string, body: SubvolumeInfo, - options?: SubvolumesCreateOptionalParams + options?: SubvolumesCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -99,7 +99,7 @@ export interface Subvolumes { volumeName: string, subvolumeName: string, body: SubvolumeInfo, - options?: SubvolumesCreateOptionalParams + options?: SubvolumesCreateOptionalParams, ): Promise; /** * Patch a subvolume @@ -118,7 +118,7 @@ export interface Subvolumes { volumeName: string, subvolumeName: string, body: SubvolumePatchRequest, - options?: SubvolumesUpdateOptionalParams + options?: SubvolumesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -142,7 +142,7 @@ export interface Subvolumes { volumeName: string, subvolumeName: string, body: SubvolumePatchRequest, - options?: SubvolumesUpdateOptionalParams + options?: SubvolumesUpdateOptionalParams, ): Promise; /** * Delete subvolume @@ -159,7 +159,7 @@ export interface Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesDeleteOptionalParams + options?: SubvolumesDeleteOptionalParams, ): Promise, void>>; /** * Delete subvolume @@ -176,7 +176,7 @@ export interface Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesDeleteOptionalParams + options?: SubvolumesDeleteOptionalParams, ): Promise; /** * Get details of the specified subvolume @@ -193,7 +193,7 @@ export interface Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesGetMetadataOptionalParams + options?: SubvolumesGetMetadataOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -215,6 +215,6 @@ export interface Subvolumes { poolName: string, volumeName: string, subvolumeName: string, - options?: SubvolumesGetMetadataOptionalParams + options?: SubvolumesGetMetadataOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeGroups.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeGroups.ts index b82b1bf2e349..263db8d580cc 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeGroups.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeGroups.ts @@ -16,7 +16,7 @@ import { VolumeGroupDetails, VolumeGroupsCreateOptionalParams, VolumeGroupsCreateResponse, - VolumeGroupsDeleteOptionalParams + VolumeGroupsDeleteOptionalParams, } from "../models"; /// @@ -31,7 +31,7 @@ export interface VolumeGroups { listByNetAppAccount( resourceGroupName: string, accountName: string, - options?: VolumeGroupsListByNetAppAccountOptionalParams + options?: VolumeGroupsListByNetAppAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Get details of the specified volume group @@ -44,7 +44,7 @@ export interface VolumeGroups { resourceGroupName: string, accountName: string, volumeGroupName: string, - options?: VolumeGroupsGetOptionalParams + options?: VolumeGroupsGetOptionalParams, ): Promise; /** * Create a volume group along with specified volumes @@ -59,7 +59,7 @@ export interface VolumeGroups { accountName: string, volumeGroupName: string, body: VolumeGroupDetails, - options?: VolumeGroupsCreateOptionalParams + options?: VolumeGroupsCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -79,7 +79,7 @@ export interface VolumeGroups { accountName: string, volumeGroupName: string, body: VolumeGroupDetails, - options?: VolumeGroupsCreateOptionalParams + options?: VolumeGroupsCreateOptionalParams, ): Promise; /** * Delete the specified volume group only if there are no volumes under volume group. @@ -92,7 +92,7 @@ export interface VolumeGroups { resourceGroupName: string, accountName: string, volumeGroupName: string, - options?: VolumeGroupsDeleteOptionalParams + options?: VolumeGroupsDeleteOptionalParams, ): Promise, void>>; /** * Delete the specified volume group only if there are no volumes under volume group. @@ -105,6 +105,6 @@ export interface VolumeGroups { resourceGroupName: string, accountName: string, volumeGroupName: string, - options?: VolumeGroupsDeleteOptionalParams + options?: VolumeGroupsDeleteOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeQuotaRules.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeQuotaRules.ts index 9595a483d298..35a1455f8256 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeQuotaRules.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumeQuotaRules.ts @@ -18,7 +18,7 @@ import { VolumeQuotaRulePatch, VolumeQuotaRulesUpdateOptionalParams, VolumeQuotaRulesUpdateResponse, - VolumeQuotaRulesDeleteOptionalParams + VolumeQuotaRulesDeleteOptionalParams, } from "../models"; /// @@ -37,7 +37,7 @@ export interface VolumeQuotaRules { accountName: string, poolName: string, volumeName: string, - options?: VolumeQuotaRulesListByVolumeOptionalParams + options?: VolumeQuotaRulesListByVolumeOptionalParams, ): PagedAsyncIterableIterator; /** * Get details of the specified quota rule @@ -54,7 +54,7 @@ export interface VolumeQuotaRules { poolName: string, volumeName: string, volumeQuotaRuleName: string, - options?: VolumeQuotaRulesGetOptionalParams + options?: VolumeQuotaRulesGetOptionalParams, ): Promise; /** * Create the specified quota rule within the given volume @@ -73,7 +73,7 @@ export interface VolumeQuotaRules { volumeName: string, volumeQuotaRuleName: string, body: VolumeQuotaRule, - options?: VolumeQuotaRulesCreateOptionalParams + options?: VolumeQuotaRulesCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -97,7 +97,7 @@ export interface VolumeQuotaRules { volumeName: string, volumeQuotaRuleName: string, body: VolumeQuotaRule, - options?: VolumeQuotaRulesCreateOptionalParams + options?: VolumeQuotaRulesCreateOptionalParams, ): Promise; /** * Patch a quota rule @@ -116,7 +116,7 @@ export interface VolumeQuotaRules { volumeName: string, volumeQuotaRuleName: string, body: VolumeQuotaRulePatch, - options?: VolumeQuotaRulesUpdateOptionalParams + options?: VolumeQuotaRulesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -140,7 +140,7 @@ export interface VolumeQuotaRules { volumeName: string, volumeQuotaRuleName: string, body: VolumeQuotaRulePatch, - options?: VolumeQuotaRulesUpdateOptionalParams + options?: VolumeQuotaRulesUpdateOptionalParams, ): Promise; /** * Delete quota rule @@ -157,7 +157,7 @@ export interface VolumeQuotaRules { poolName: string, volumeName: string, volumeQuotaRuleName: string, - options?: VolumeQuotaRulesDeleteOptionalParams + options?: VolumeQuotaRulesDeleteOptionalParams, ): Promise, void>>; /** * Delete quota rule @@ -174,6 +174,6 @@ export interface VolumeQuotaRules { poolName: string, volumeName: string, volumeQuotaRuleName: string, - options?: VolumeQuotaRulesDeleteOptionalParams + options?: VolumeQuotaRulesDeleteOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumes.ts b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumes.ts index ef8cff8d1323..cfbeb257dc2c 100644 --- a/sdk/netapp/arm-netapp/src/operationsInterfaces/volumes.ts +++ b/sdk/netapp/arm-netapp/src/operationsInterfaces/volumes.ts @@ -27,8 +27,6 @@ import { VolumesRevertOptionalParams, VolumesResetCifsPasswordOptionalParams, VolumesResetCifsPasswordResponse, - VolumesSplitCloneFromParentOptionalParams, - VolumesSplitCloneFromParentResponse, VolumesBreakFileLocksOptionalParams, GetGroupIdListForLdapUserRequest, VolumesListGetGroupIdListForLdapUserOptionalParams, @@ -47,7 +45,7 @@ import { VolumesPoolChangeOptionalParams, VolumesRelocateOptionalParams, VolumesFinalizeRelocationOptionalParams, - VolumesRevertRelocationOptionalParams + VolumesRevertRelocationOptionalParams, } from "../models"; /// @@ -64,7 +62,7 @@ export interface Volumes { resourceGroupName: string, accountName: string, poolName: string, - options?: VolumesListOptionalParams + options?: VolumesListOptionalParams, ): PagedAsyncIterableIterator; /** * List all replications for a specified volume @@ -79,7 +77,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesListReplicationsOptionalParams + options?: VolumesListReplicationsOptionalParams, ): PagedAsyncIterableIterator; /** * Get the details of the specified volume @@ -94,7 +92,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesGetOptionalParams + options?: VolumesGetOptionalParams, ): Promise; /** * Create or update the specified volume within the capacity pool @@ -111,7 +109,7 @@ export interface Volumes { poolName: string, volumeName: string, body: Volume, - options?: VolumesCreateOrUpdateOptionalParams + options?: VolumesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -133,7 +131,7 @@ export interface Volumes { poolName: string, volumeName: string, body: Volume, - options?: VolumesCreateOrUpdateOptionalParams + options?: VolumesCreateOrUpdateOptionalParams, ): Promise; /** * Patch the specified volume @@ -150,7 +148,7 @@ export interface Volumes { poolName: string, volumeName: string, body: VolumePatch, - options?: VolumesUpdateOptionalParams + options?: VolumesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -172,7 +170,7 @@ export interface Volumes { poolName: string, volumeName: string, body: VolumePatch, - options?: VolumesUpdateOptionalParams + options?: VolumesUpdateOptionalParams, ): Promise; /** * Delete the specified volume @@ -187,7 +185,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesDeleteOptionalParams + options?: VolumesDeleteOptionalParams, ): Promise, void>>; /** * Delete the specified volume @@ -202,7 +200,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesDeleteOptionalParams + options?: VolumesDeleteOptionalParams, ): Promise; /** * This operation will populate availability zone information for a volume @@ -217,7 +215,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesPopulateAvailabilityZoneOptionalParams + options?: VolumesPopulateAvailabilityZoneOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -237,7 +235,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesPopulateAvailabilityZoneOptionalParams + options?: VolumesPopulateAvailabilityZoneOptionalParams, ): Promise; /** * Revert a volume to the snapshot specified in the body @@ -254,7 +252,7 @@ export interface Volumes { poolName: string, volumeName: string, body: VolumeRevert, - options?: VolumesRevertOptionalParams + options?: VolumesRevertOptionalParams, ): Promise, void>>; /** * Revert a volume to the snapshot specified in the body @@ -271,7 +269,7 @@ export interface Volumes { poolName: string, volumeName: string, body: VolumeRevert, - options?: VolumesRevertOptionalParams + options?: VolumesRevertOptionalParams, ): Promise; /** * Reset cifs password from volume @@ -286,7 +284,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesResetCifsPasswordOptionalParams + options?: VolumesResetCifsPasswordOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -306,43 +304,8 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesResetCifsPasswordOptionalParams + options?: VolumesResetCifsPasswordOptionalParams, ): Promise; - /** - * Split operation to convert clone volume to an independent volume. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param options The options parameters. - */ - beginSplitCloneFromParent( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: VolumesSplitCloneFromParentOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - VolumesSplitCloneFromParentResponse - > - >; - /** - * Split operation to convert clone volume to an independent volume. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the NetApp account - * @param poolName The name of the capacity pool - * @param volumeName The name of the volume - * @param options The options parameters. - */ - beginSplitCloneFromParentAndWait( - resourceGroupName: string, - accountName: string, - poolName: string, - volumeName: string, - options?: VolumesSplitCloneFromParentOptionalParams - ): Promise; /** * Break all the file locks on a volume * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -356,7 +319,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesBreakFileLocksOptionalParams + options?: VolumesBreakFileLocksOptionalParams, ): Promise, void>>; /** * Break all the file locks on a volume @@ -371,7 +334,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesBreakFileLocksOptionalParams + options?: VolumesBreakFileLocksOptionalParams, ): Promise; /** * Returns the list of group Ids for a specific LDAP User @@ -388,7 +351,7 @@ export interface Volumes { poolName: string, volumeName: string, body: GetGroupIdListForLdapUserRequest, - options?: VolumesListGetGroupIdListForLdapUserOptionalParams + options?: VolumesListGetGroupIdListForLdapUserOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -410,7 +373,7 @@ export interface Volumes { poolName: string, volumeName: string, body: GetGroupIdListForLdapUserRequest, - options?: VolumesListGetGroupIdListForLdapUserOptionalParams + options?: VolumesListGetGroupIdListForLdapUserOptionalParams, ): Promise; /** * Break the replication connection on the destination volume @@ -425,7 +388,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesBreakReplicationOptionalParams + options?: VolumesBreakReplicationOptionalParams, ): Promise, void>>; /** * Break the replication connection on the destination volume @@ -440,7 +403,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesBreakReplicationOptionalParams + options?: VolumesBreakReplicationOptionalParams, ): Promise; /** * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or @@ -458,7 +421,7 @@ export interface Volumes { poolName: string, volumeName: string, body: ReestablishReplicationRequest, - options?: VolumesReestablishReplicationOptionalParams + options?: VolumesReestablishReplicationOptionalParams, ): Promise, void>>; /** * Re-establish a previously deleted replication between 2 volumes that have a common ad-hoc or @@ -476,7 +439,7 @@ export interface Volumes { poolName: string, volumeName: string, body: ReestablishReplicationRequest, - options?: VolumesReestablishReplicationOptionalParams + options?: VolumesReestablishReplicationOptionalParams, ): Promise; /** * Get the status of the replication @@ -491,7 +454,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesReplicationStatusOptionalParams + options?: VolumesReplicationStatusOptionalParams, ): Promise; /** * Resync the connection on the destination volume. If the operation is ran on the source volume it @@ -507,7 +470,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesResyncReplicationOptionalParams + options?: VolumesResyncReplicationOptionalParams, ): Promise, void>>; /** * Resync the connection on the destination volume. If the operation is ran on the source volume it @@ -523,7 +486,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesResyncReplicationOptionalParams + options?: VolumesResyncReplicationOptionalParams, ): Promise; /** * Delete the replication connection on the destination volume, and send release to the source @@ -539,7 +502,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesDeleteReplicationOptionalParams + options?: VolumesDeleteReplicationOptionalParams, ): Promise, void>>; /** * Delete the replication connection on the destination volume, and send release to the source @@ -555,7 +518,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesDeleteReplicationOptionalParams + options?: VolumesDeleteReplicationOptionalParams, ): Promise; /** * Authorize the replication connection on the source volume @@ -572,7 +535,7 @@ export interface Volumes { poolName: string, volumeName: string, body: AuthorizeRequest, - options?: VolumesAuthorizeReplicationOptionalParams + options?: VolumesAuthorizeReplicationOptionalParams, ): Promise, void>>; /** * Authorize the replication connection on the source volume @@ -589,7 +552,7 @@ export interface Volumes { poolName: string, volumeName: string, body: AuthorizeRequest, - options?: VolumesAuthorizeReplicationOptionalParams + options?: VolumesAuthorizeReplicationOptionalParams, ): Promise; /** * Re-Initializes the replication connection on the destination volume @@ -604,7 +567,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesReInitializeReplicationOptionalParams + options?: VolumesReInitializeReplicationOptionalParams, ): Promise, void>>; /** * Re-Initializes the replication connection on the destination volume @@ -619,7 +582,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesReInitializeReplicationOptionalParams + options?: VolumesReInitializeReplicationOptionalParams, ): Promise; /** * Moves volume to another pool @@ -636,7 +599,7 @@ export interface Volumes { poolName: string, volumeName: string, body: PoolChangeRequest, - options?: VolumesPoolChangeOptionalParams + options?: VolumesPoolChangeOptionalParams, ): Promise, void>>; /** * Moves volume to another pool @@ -653,7 +616,7 @@ export interface Volumes { poolName: string, volumeName: string, body: PoolChangeRequest, - options?: VolumesPoolChangeOptionalParams + options?: VolumesPoolChangeOptionalParams, ): Promise; /** * Relocates volume to a new stamp @@ -668,7 +631,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesRelocateOptionalParams + options?: VolumesRelocateOptionalParams, ): Promise, void>>; /** * Relocates volume to a new stamp @@ -683,7 +646,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesRelocateOptionalParams + options?: VolumesRelocateOptionalParams, ): Promise; /** * Finalizes the relocation of the volume and cleans up the old volume. @@ -698,7 +661,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesFinalizeRelocationOptionalParams + options?: VolumesFinalizeRelocationOptionalParams, ): Promise, void>>; /** * Finalizes the relocation of the volume and cleans up the old volume. @@ -713,7 +676,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesFinalizeRelocationOptionalParams + options?: VolumesFinalizeRelocationOptionalParams, ): Promise; /** * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing @@ -729,7 +692,7 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesRevertRelocationOptionalParams + options?: VolumesRevertRelocationOptionalParams, ): Promise, void>>; /** * Reverts the volume relocation process, cleans up the new volume and starts using the former-existing @@ -745,6 +708,6 @@ export interface Volumes { accountName: string, poolName: string, volumeName: string, - options?: VolumesRevertRelocationOptionalParams + options?: VolumesRevertRelocationOptionalParams, ): Promise; } diff --git a/sdk/netapp/arm-netapp/src/pagingHelper.ts b/sdk/netapp/arm-netapp/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/netapp/arm-netapp/src/pagingHelper.ts +++ b/sdk/netapp/arm-netapp/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 9b6fc5d15e8ef73be32a2bfd21e583468f57d12e Mon Sep 17 00:00:00 2001 From: ZiWei Chen <98569699+kazrael2119@users.noreply.github.com> Date: Tue, 19 Mar 2024 14:40:11 +0800 Subject: [PATCH 19/20] [mgmt] search release (#28886) https://github.com/Azure/sdk-release-request/issues/5005 --- common/config/rush/pnpm-lock.yaml | 7 +- sdk/search/arm-search/CHANGELOG.md | 53 + sdk/search/arm-search/LICENSE | 2 +- sdk/search/arm-search/README.md | 2 +- sdk/search/arm-search/_meta.json | 8 +- sdk/search/arm-search/assets.json | 2 +- sdk/search/arm-search/package.json | 18 +- .../arm-search/review/arm-search.api.md | 276 ++- .../samples-dev/adminKeysGetSample.ts | 8 +- .../samples-dev/adminKeysRegenerateSample.ts | 4 +- ...ecurityPerimeterConfigurationsGetSample.ts | 42 + ...imeterConfigurationsListByServiceSample.ts | 43 + ...yPerimeterConfigurationsReconcileSample.ts | 43 + .../samples-dev/operationsListSample.ts | 6 +- .../privateEndpointConnectionsDeleteSample.ts | 4 +- .../privateEndpointConnectionsGetSample.ts | 4 +- ...eEndpointConnectionsListByServiceSample.ts | 4 +- .../privateEndpointConnectionsUpdateSample.ts | 18 +- ...privateLinkResourcesListSupportedSample.ts | 4 +- .../samples-dev/queryKeysCreateSample.ts | 7 +- .../samples-dev/queryKeysDeleteSample.ts | 4 +- .../queryKeysListBySearchServiceSample.ts | 8 +- .../servicesCheckNameAvailabilitySample.ts | 2 +- .../servicesCreateOrUpdateSample.ts | 123 +- .../samples-dev/servicesDeleteSample.ts | 4 +- .../samples-dev/servicesGetSample.ts | 4 +- .../servicesListByResourceGroupSample.ts | 4 +- .../servicesListBySubscriptionSample.ts | 2 +- .../samples-dev/servicesUpdateSample.ts | 108 +- ...rivateLinkResourcesCreateOrUpdateSample.ts | 21 +- .../sharedPrivateLinkResourcesDeleteSample.ts | 4 +- .../sharedPrivateLinkResourcesGetSample.ts | 4 +- ...PrivateLinkResourcesListByServiceSample.ts | 4 +- .../usageBySubscriptionSkuSample.ts | 2 +- .../usagesListBySubscriptionSample.ts | 6 +- .../samples/v3-beta/javascript/README.md | 102 + .../v3-beta/javascript/adminKeysGetSample.js | 35 + .../javascript/adminKeysRegenerateSample.js | 36 + ...ecurityPerimeterConfigurationsGetSample.js | 40 + ...imeterConfigurationsListByServiceSample.js | 41 + ...yPerimeterConfigurationsReconcileSample.js | 40 + .../javascript/operationsListSample.js | 37 + .../samples/v3-beta/javascript/package.json | 32 + .../privateEndpointConnectionsDeleteSample.js | 40 + .../privateEndpointConnectionsGetSample.js | 40 + ...eEndpointConnectionsListByServiceSample.js | 41 + .../privateEndpointConnectionsUpdateSample.js | 49 + ...privateLinkResourcesListSupportedSample.js | 41 + .../javascript/queryKeysCreateSample.js | 36 + .../javascript/queryKeysDeleteSample.js | 36 + .../queryKeysListBySearchServiceSample.js | 41 + .../samples/v3-beta/javascript/sample.env | 4 + .../servicesCheckNameAvailabilitySample.js | 34 + .../servicesCreateOrUpdateSample.js | 330 +++ .../javascript/servicesDeleteSample.js | 35 + .../v3-beta/javascript/servicesGetSample.js | 35 + .../servicesListByResourceGroupSample.js | 37 + .../servicesListBySubscriptionSample.js | 36 + .../javascript/servicesUpdateSample.js | 245 +++ ...rivateLinkResourcesCreateOrUpdateSample.js | 50 + .../sharedPrivateLinkResourcesDeleteSample.js | 40 + .../sharedPrivateLinkResourcesGetSample.js | 40 + ...PrivateLinkResourcesListByServiceSample.js | 41 + .../usageBySubscriptionSkuSample.js | 35 + .../usagesListBySubscriptionSample.js | 37 + .../samples/v3-beta/typescript/README.md | 115 ++ .../samples/v3-beta/typescript/package.json | 41 + .../samples/v3-beta/typescript/sample.env | 4 + .../typescript/src/adminKeysGetSample.ts | 40 + .../src/adminKeysRegenerateSample.ts | 42 + ...ecurityPerimeterConfigurationsGetSample.ts | 42 + ...imeterConfigurationsListByServiceSample.ts | 43 + ...yPerimeterConfigurationsReconcileSample.ts | 43 + .../typescript/src/operationsListSample.ts | 40 + .../privateEndpointConnectionsDeleteSample.ts | 43 + .../privateEndpointConnectionsGetSample.ts | 43 + ...eEndpointConnectionsListByServiceSample.ts | 43 + .../privateEndpointConnectionsUpdateSample.ts | 55 + ...privateLinkResourcesListSupportedSample.ts | 43 + .../typescript/src/queryKeysCreateSample.ts | 43 + .../typescript/src/queryKeysDeleteSample.ts | 42 + .../src/queryKeysListBySearchServiceSample.ts | 43 + .../servicesCheckNameAvailabilitySample.ts | 36 + .../src/servicesCreateOrUpdateSample.ts | 332 +++ .../typescript/src/servicesDeleteSample.ts | 40 + .../typescript/src/servicesGetSample.ts | 40 + .../src/servicesListByResourceGroupSample.ts | 41 + .../src/servicesListBySubscriptionSample.ts | 38 + .../typescript/src/servicesUpdateSample.ts | 287 +++ ...rivateLinkResourcesCreateOrUpdateSample.ts | 56 + .../sharedPrivateLinkResourcesDeleteSample.ts | 42 + .../sharedPrivateLinkResourcesGetSample.ts | 42 + ...PrivateLinkResourcesListByServiceSample.ts | 43 + .../src/usageBySubscriptionSkuSample.ts | 37 + .../src/usagesListBySubscriptionSample.ts | 39 + .../samples/v3-beta/typescript/tsconfig.json | 17 + sdk/search/arm-search/src/lroImpl.ts | 6 +- sdk/search/arm-search/src/models/index.ts | 713 +++++-- sdk/search/arm-search/src/models/mappers.ts | 1778 +++++++++++------ .../arm-search/src/models/parameters.ts | 148 +- .../arm-search/src/operations/adminKeys.ts | 46 +- sdk/search/arm-search/src/operations/index.ts | 1 + .../networkSecurityPerimeterConfigurations.ts | 400 ++++ .../arm-search/src/operations/operations.ts | 20 +- .../operations/privateEndpointConnections.ts | 151 +- .../src/operations/privateLinkResources.ts | 43 +- .../arm-search/src/operations/queryKeys.ts | 107 +- .../arm-search/src/operations/services.ts | 244 ++- .../operations/sharedPrivateLinkResources.ts | 211 +- .../arm-search/src/operations/usages.ts | 49 +- .../src/operationsInterfaces/adminKeys.ts | 16 +- .../src/operationsInterfaces/index.ts | 1 + .../networkSecurityPerimeterConfigurations.ts | 90 + .../src/operationsInterfaces/operations.ts | 2 +- .../privateEndpointConnections.ts | 40 +- .../privateLinkResources.ts | 8 +- .../src/operationsInterfaces/queryKeys.ts | 22 +- .../src/operationsInterfaces/services.ts | 52 +- .../sharedPrivateLinkResources.ts | 48 +- .../src/operationsInterfaces/usages.ts | 6 +- sdk/search/arm-search/src/pagingHelper.ts | 2 +- .../arm-search/src/searchManagementClient.ts | 61 +- 122 files changed, 7185 insertions(+), 1476 deletions(-) create mode 100644 sdk/search/arm-search/samples-dev/networkSecurityPerimeterConfigurationsGetSample.ts create mode 100644 sdk/search/arm-search/samples-dev/networkSecurityPerimeterConfigurationsListByServiceSample.ts create mode 100644 sdk/search/arm-search/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/README.md create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/adminKeysGetSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/adminKeysRegenerateSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsGetSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsListByServiceSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsReconcileSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/operationsListSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/package.json create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsDeleteSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsGetSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsListByServiceSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsUpdateSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/privateLinkResourcesListSupportedSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/queryKeysCreateSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/queryKeysDeleteSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/queryKeysListBySearchServiceSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/sample.env create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/servicesCheckNameAvailabilitySample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/servicesCreateOrUpdateSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/servicesDeleteSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/servicesGetSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/servicesListByResourceGroupSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/servicesListBySubscriptionSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/servicesUpdateSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesCreateOrUpdateSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesDeleteSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesGetSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesListByServiceSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/usageBySubscriptionSkuSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/javascript/usagesListBySubscriptionSample.js create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/README.md create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/package.json create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/sample.env create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/adminKeysGetSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/adminKeysRegenerateSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsGetSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsListByServiceSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsReconcileSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/operationsListSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsGetSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsListByServiceSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsUpdateSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/privateLinkResourcesListSupportedSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysCreateSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysDeleteSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysListBySearchServiceSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/servicesCheckNameAvailabilitySample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/servicesCreateOrUpdateSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/servicesDeleteSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/servicesGetSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/servicesListByResourceGroupSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/servicesListBySubscriptionSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/servicesUpdateSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesCreateOrUpdateSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesDeleteSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesGetSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesListByServiceSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/usageBySubscriptionSkuSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/src/usagesListBySubscriptionSample.ts create mode 100644 sdk/search/arm-search/samples/v3-beta/typescript/tsconfig.json create mode 100644 sdk/search/arm-search/src/operations/networkSecurityPerimeterConfigurations.ts create mode 100644 sdk/search/arm-search/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 0d67a4324cfb..82bbd23ccdf3 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -15272,7 +15272,7 @@ packages: dev: false file:projects/arm-nginx.tgz: - resolution: {integrity: sha512-LoqehVB1afT29IOfLh7Qk5tO0L+Shm6R2NDTuhARtR741dNCcFgJGvcwfG15h9SoMvNE0r9dToFU1gMloGTLsw==, tarball: file:projects/arm-nginx.tgz} + resolution: {integrity: sha512-AvmU9ogVUUk92KHFeSMszUOXtcKhKd6o4499wNqRTZ5wVCARN91GDkrDCOAirTJuxYU5ZrdNOoap192IF2rfMA==, tarball: file:projects/arm-nginx.tgz} name: '@rush-temp/arm-nginx' version: 0.0.0 dependencies: @@ -16322,7 +16322,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-6ntm18pb+N3L70Pe4PWXlBLBrcPDCAVA07DPcRQZo4LbuRUbJW6+XWia/+C6smVm47xLFDt/nJF3Qj3KaXhVgA==, tarball: file:projects/arm-search.tgz} name: '@rush-temp/arm-search' version: 0.0.0 dependencies: @@ -16335,7 +16335,8 @@ packages: chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 - mkdirp: 1.0.4 + esm: 3.2.25 + mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 ts-node: 10.9.2(@types/node@18.19.24)(typescript@5.3.3) diff --git a/sdk/search/arm-search/CHANGELOG.md b/sdk/search/arm-search/CHANGELOG.md index 41926e74cd3e..7c0d9d8b72ad 100644 --- a/sdk/search/arm-search/CHANGELOG.md +++ b/sdk/search/arm-search/CHANGELOG.md @@ -1,5 +1,58 @@ # Release History +## 3.3.0-beta.1 (2024-03-12) + +**Features** + + - Added operation group NetworkSecurityPerimeterConfigurations + - Added Interface NetworkSecurityPerimeterConfiguration + - Added Interface NetworkSecurityPerimeterConfigurationListResult + - Added Interface NetworkSecurityPerimeterConfigurationsGetOptionalParams + - Added Interface NetworkSecurityPerimeterConfigurationsListByServiceNextOptionalParams + - Added Interface NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams + - Added Interface NetworkSecurityPerimeterConfigurationsReconcileHeaders + - Added Interface NetworkSecurityPerimeterConfigurationsReconcileOptionalParams + - Added Interface NSPConfigAccessRule + - Added Interface NSPConfigAccessRuleProperties + - Added Interface NSPConfigAssociation + - Added Interface NSPConfigNetworkSecurityPerimeterRule + - Added Interface NSPConfigPerimeter + - Added Interface NSPConfigProfile + - Added Interface NSPProvisioningIssue + - Added Interface NSPProvisioningIssueProperties + - Added Interface OperationAvailability + - Added Interface OperationLogsSpecification + - Added Interface OperationMetricDimension + - Added Interface OperationMetricsSpecification + - Added Interface OperationProperties + - Added Interface OperationServiceSpecification + - Added Interface ProxyResource + - Added Interface UserAssignedManagedIdentity + - Added Type Alias NetworkSecurityPerimeterConfigurationsGetResponse + - Added Type Alias NetworkSecurityPerimeterConfigurationsListByServiceNextResponse + - Added Type Alias NetworkSecurityPerimeterConfigurationsListByServiceResponse + - Added Type Alias NetworkSecurityPerimeterConfigurationsReconcileResponse + - Added Type Alias SearchBypass + - Added Type Alias SearchDisabledDataExfiltrationOption + - Interface CloudError has a new optional parameter message + - Interface Identity has a new optional parameter userAssignedIdentities + - Interface NetworkRuleSet has a new optional parameter bypass + - Interface Operation has a new optional parameter isDataAction + - Interface Operation has a new optional parameter origin + - Interface Operation has a new optional parameter properties + - Interface SearchService has a new optional parameter disabledDataExfiltrationOptions + - Interface SearchService has a new optional parameter eTag + - Interface SearchServiceUpdate has a new optional parameter disabledDataExfiltrationOptions + - Interface SearchServiceUpdate has a new optional parameter eTag + - Added Enum KnownIdentityType + - Added Enum KnownPublicNetworkAccess + - Added Enum KnownSearchBypass + - Added Enum KnownSearchDisabledDataExfiltrationOption + - Added Enum KnownSharedPrivateLinkResourceProvisioningState + - Added Enum KnownSharedPrivateLinkResourceStatus + - Added Enum KnownSkuName + + ## 3.2.0 (2023-10-09) **Features** diff --git a/sdk/search/arm-search/LICENSE b/sdk/search/arm-search/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/search/arm-search/LICENSE +++ b/sdk/search/arm-search/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/search/arm-search/README.md b/sdk/search/arm-search/README.md index 34902b6166a2..1b4e86b147a2 100644 --- a/sdk/search/arm-search/README.md +++ b/sdk/search/arm-search/README.md @@ -6,7 +6,7 @@ Client that can be used to manage Azure AI Search services and API keys. [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/search/arm-search) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-search) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-search) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-search?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/search/arm-search/_meta.json b/sdk/search/arm-search/_meta.json index 3cb9a904799c..8704ffcb5b3e 100644 --- a/sdk/search/arm-search/_meta.json +++ b/sdk/search/arm-search/_meta.json @@ -1,8 +1,8 @@ { - "commit": "663ea6835c33bca216b63f777227db6a459a06b3", + "commit": "3004d02873a4b583ba6a3966a370f1ba19b5da1d", "readme": "specification/search/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\\search\\resource-manager\\readme.md --use=@autorest/typescript@6.0.9 --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\\search\\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.9" + "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/search/arm-search/assets.json b/sdk/search/arm-search/assets.json index 3eea717ff72e..330c0ed2c3e8 100644 --- a/sdk/search/arm-search/assets.json +++ b/sdk/search/arm-search/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/search/arm-search", - "Tag": "js/search/arm-search_58040c667d" + "Tag": "js/search/arm-search_19f57c5c47" } diff --git a/sdk/search/arm-search/package.json b/sdk/search/arm-search/package.json index 6abbc6f5364f..88672b8f0335 100644 --- a/sdk/search/arm-search/package.json +++ b/sdk/search/arm-search/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for SearchManagementClient.", - "version": "3.2.0", + "version": "3.3.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": [ @@ -29,22 +29,23 @@ "types": "./types/arm-search.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.31.1", - "mkdirp": "^1.0.4", + "mkdirp": "^2.1.2", "typescript": "~5.3.3", "uglify-js": "^3.4.9", "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-search?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/search/arm-search/review/arm-search.api.md b/sdk/search/arm-search/review/arm-search.api.md index f1917eedf83a..1b63508b013d 100644 --- a/sdk/search/arm-search/review/arm-search.api.md +++ b/sdk/search/arm-search/review/arm-search.api.md @@ -65,6 +65,7 @@ export interface CheckNameAvailabilityOutput { // @public export interface CloudError { error?: CloudErrorBody; + message?: string; } // @public @@ -103,16 +104,27 @@ export interface Identity { readonly principalId?: string; readonly tenantId?: string; type: IdentityType; + userAssignedIdentities?: { + [propertyName: string]: UserAssignedManagedIdentity; + }; } // @public -export type IdentityType = "None" | "SystemAssigned"; +export type IdentityType = string; // @public export interface IpRule { value?: string; } +// @public +export enum KnownIdentityType { + None = "None", + SystemAssigned = "SystemAssigned", + SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", + UserAssigned = "UserAssigned" +} + // @public export enum KnownPrivateLinkServiceConnectionProvisioningState { Canceled = "Canceled", @@ -123,6 +135,23 @@ export enum KnownPrivateLinkServiceConnectionProvisioningState { Updating = "Updating" } +// @public +export enum KnownPublicNetworkAccess { + Disabled = "disabled", + Enabled = "enabled" +} + +// @public +export enum KnownSearchBypass { + AzurePortal = "AzurePortal", + None = "None" +} + +// @public +export enum KnownSearchDisabledDataExfiltrationOption { + All = "All" +} + // @public export enum KnownSearchSemanticSearch { Disabled = "disabled", @@ -137,6 +166,34 @@ export enum KnownSharedPrivateLinkResourceAsyncOperationResult { Succeeded = "Succeeded" } +// @public +export enum KnownSharedPrivateLinkResourceProvisioningState { + Deleting = "Deleting", + Failed = "Failed", + Incomplete = "Incomplete", + Succeeded = "Succeeded", + Updating = "Updating" +} + +// @public +export enum KnownSharedPrivateLinkResourceStatus { + Approved = "Approved", + Disconnected = "Disconnected", + Pending = "Pending", + Rejected = "Rejected" +} + +// @public +export enum KnownSkuName { + Basic = "basic", + Free = "free", + Standard = "standard", + Standard2 = "standard2", + Standard3 = "standard3", + StorageOptimizedL1 = "storage_optimized_l1", + StorageOptimizedL2 = "storage_optimized_l2" +} + // @public export enum KnownUnavailableNameReason { AlreadyExists = "AlreadyExists", @@ -151,13 +208,163 @@ export interface ListQueryKeysResult { // @public export interface NetworkRuleSet { + bypass?: SearchBypass; ipRules?: IpRule[]; } +// @public +export interface NetworkSecurityPerimeterConfiguration extends ProxyResource { + networkSecurityPerimeter?: NSPConfigPerimeter; + profile?: NSPConfigProfile; + // (undocumented) + provisioningIssues?: NSPProvisioningIssue[]; + readonly provisioningState?: string; + resourceAssociation?: NSPConfigAssociation; +} + +// @public +export interface NetworkSecurityPerimeterConfigurationListResult { + readonly nextLink?: string; + readonly value?: NetworkSecurityPerimeterConfiguration[]; +} + +// @public +export interface NetworkSecurityPerimeterConfigurations { + beginReconcile(resourceGroupName: string, searchServiceName: string, nspConfigName: string, options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams): Promise, NetworkSecurityPerimeterConfigurationsReconcileResponse>>; + beginReconcileAndWait(resourceGroupName: string, searchServiceName: string, nspConfigName: string, options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams): Promise; + get(resourceGroupName: string, searchServiceName: string, nspConfigName: string, options?: NetworkSecurityPerimeterConfigurationsGetOptionalParams): Promise; + listByService(resourceGroupName: string, searchServiceName: string, options?: NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface NetworkSecurityPerimeterConfigurationsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkSecurityPerimeterConfigurationsGetResponse = NetworkSecurityPerimeterConfiguration; + +// @public +export interface NetworkSecurityPerimeterConfigurationsListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkSecurityPerimeterConfigurationsListByServiceNextResponse = NetworkSecurityPerimeterConfigurationListResult; + +// @public +export interface NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkSecurityPerimeterConfigurationsListByServiceResponse = NetworkSecurityPerimeterConfigurationListResult; + +// @public +export interface NetworkSecurityPerimeterConfigurationsReconcileHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface NetworkSecurityPerimeterConfigurationsReconcileOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NetworkSecurityPerimeterConfigurationsReconcileResponse = NetworkSecurityPerimeterConfigurationsReconcileHeaders; + +// @public +export interface NSPConfigAccessRule { + // (undocumented) + name?: string; + properties?: NSPConfigAccessRuleProperties; +} + +// @public +export interface NSPConfigAccessRuleProperties { + // (undocumented) + addressPrefixes?: string[]; + // (undocumented) + direction?: string; + // (undocumented) + fullyQualifiedDomainNames?: string[]; + // (undocumented) + networkSecurityPerimeters?: NSPConfigNetworkSecurityPerimeterRule[]; + // (undocumented) + subscriptions?: string[]; +} + +// @public +export interface NSPConfigAssociation { + // (undocumented) + accessMode?: string; + // (undocumented) + name?: string; +} + +// @public +export interface NSPConfigNetworkSecurityPerimeterRule { + // (undocumented) + id?: string; + // (undocumented) + location?: string; + // (undocumented) + perimeterGuid?: string; +} + +// @public +export interface NSPConfigPerimeter { + // (undocumented) + id?: string; + // (undocumented) + location?: string; + // (undocumented) + perimeterGuid?: string; +} + +// @public +export interface NSPConfigProfile { + // (undocumented) + accessRules?: NSPConfigAccessRule[]; + // (undocumented) + accessRulesVersion?: string; + // (undocumented) + name?: string; +} + +// @public +export interface NSPProvisioningIssue { + // (undocumented) + name?: string; + properties?: NSPProvisioningIssueProperties; +} + +// @public +export interface NSPProvisioningIssueProperties { + // (undocumented) + description?: string; + // (undocumented) + issueType?: string; + // (undocumented) + severity?: string; + // (undocumented) + suggestedAccessRules?: string[]; + // (undocumented) + suggestedResourceIds?: string[]; +} + // @public export interface Operation { readonly display?: OperationDisplay; + readonly isDataAction?: boolean; readonly name?: string; + readonly origin?: string; + readonly properties?: OperationProperties; +} + +// @public +export interface OperationAvailability { + readonly blobDuration?: string; + readonly timeGrain?: string; } // @public @@ -174,11 +381,46 @@ export interface OperationListResult { readonly value?: Operation[]; } +// @public +export interface OperationLogsSpecification { + readonly blobDuration?: string; + readonly displayName?: string; + readonly name?: string; +} + +// @public +export interface OperationMetricDimension { + readonly displayName?: string; + readonly name?: string; +} + +// @public +export interface OperationMetricsSpecification { + readonly aggregationType?: string; + readonly availabilities?: OperationAvailability[]; + readonly dimensions?: OperationMetricDimension[]; + readonly displayDescription?: string; + readonly displayName?: string; + readonly name?: string; + readonly unit?: string; +} + +// @public +export interface OperationProperties { + readonly serviceSpecification?: OperationServiceSpecification; +} + // @public export interface Operations { list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface OperationServiceSpecification { + readonly logSpecifications?: OperationLogsSpecification[]; + readonly metricSpecifications?: OperationMetricsSpecification[]; +} + // @public export interface OperationsListOptionalParams extends coreClient.OperationOptions { } @@ -306,7 +548,11 @@ export type PrivateLinkServiceConnectionStatus = "Pending" | "Approved" | "Rejec export type ProvisioningState = "succeeded" | "provisioning" | "failed"; // @public -export type PublicNetworkAccess = "enabled" | "disabled"; +export interface ProxyResource extends Resource { +} + +// @public +export type PublicNetworkAccess = string; // @public export interface QueryKey { @@ -378,6 +624,12 @@ export interface Resource { readonly type?: string; } +// @public +export type SearchBypass = string; + +// @public +export type SearchDisabledDataExfiltrationOption = string; + // @public export type SearchEncryptionComplianceStatus = "Compliant" | "NonCompliant"; @@ -394,6 +646,8 @@ export class SearchManagementClient extends coreClient.ServiceClient { // (undocumented) apiVersion: string; // (undocumented) + networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations; + // (undocumented) operations: Operations; // (undocumented) privateEndpointConnections: PrivateEndpointConnections; @@ -430,8 +684,10 @@ export type SearchSemanticSearch = string; // @public export interface SearchService extends TrackedResource { authOptions?: DataPlaneAuthOptions; + disabledDataExfiltrationOptions?: SearchDisabledDataExfiltrationOption[]; disableLocalAuth?: boolean; encryptionWithCmk?: EncryptionWithCmk; + readonly eTag?: string; hostingMode?: HostingMode; identity?: Identity; networkRuleSet?: NetworkRuleSet; @@ -454,13 +710,15 @@ export interface SearchServiceListResult { } // @public -export type SearchServiceStatus = "running" | "provisioning" | "deleting" | "degraded" | "disabled" | "error"; +export type SearchServiceStatus = "running" | "provisioning" | "deleting" | "degraded" | "disabled" | "error" | "stopped"; // @public export interface SearchServiceUpdate extends Resource { authOptions?: DataPlaneAuthOptions; + disabledDataExfiltrationOptions?: SearchDisabledDataExfiltrationOption[]; disableLocalAuth?: boolean; encryptionWithCmk?: EncryptionWithCmk; + readonly eTag?: string; hostingMode?: HostingMode; identity?: Identity; location?: string; @@ -601,7 +859,7 @@ export interface SharedPrivateLinkResourceProperties { } // @public -export type SharedPrivateLinkResourceProvisioningState = "Updating" | "Deleting" | "Failed" | "Succeeded" | "Incomplete"; +export type SharedPrivateLinkResourceProvisioningState = string; // @public export interface SharedPrivateLinkResources { @@ -655,7 +913,7 @@ export interface SharedPrivateLinkResourcesListByServiceOptionalParams extends c export type SharedPrivateLinkResourcesListByServiceResponse = SharedPrivateLinkResourceListResult; // @public -export type SharedPrivateLinkResourceStatus = "Pending" | "Approved" | "Rejected" | "Disconnected"; +export type SharedPrivateLinkResourceStatus = string; // @public export interface Sku { @@ -663,7 +921,7 @@ export interface Sku { } // @public -export type SkuName = "free" | "basic" | "standard" | "standard2" | "standard3" | "storage_optimized_l1" | "storage_optimized_l2"; +export type SkuName = string; // @public export interface TrackedResource extends Resource { @@ -705,6 +963,12 @@ export interface UsagesListBySubscriptionOptionalParams extends coreClient.Opera // @public export type UsagesListBySubscriptionResponse = QuotaUsagesListResult; +// @public +export interface UserAssignedManagedIdentity { + readonly clientId?: string; + readonly principalId?: string; +} + // (No @packageDocumentation comment for this package) ``` diff --git a/sdk/search/arm-search/samples-dev/adminKeysGetSample.ts b/sdk/search/arm-search/samples-dev/adminKeysGetSample.ts index be40c1734259..81733aafebf8 100644 --- a/sdk/search/arm-search/samples-dev/adminKeysGetSample.ts +++ b/sdk/search/arm-search/samples-dev/adminKeysGetSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service. + * This sample demonstrates how to Gets the primary and secondary admin API keys for the specified Azure AI Search service. * - * @summary Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchGetAdminKeys.json + * @summary Gets the primary and secondary admin API keys for the specified Azure AI Search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchGetAdminKeys.json */ async function searchGetAdminKeys() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -28,7 +28,7 @@ async function searchGetAdminKeys() { const client = new SearchManagementClient(credential, subscriptionId); const result = await client.adminKeys.get( resourceGroupName, - searchServiceName + searchServiceName, ); console.log(result); } diff --git a/sdk/search/arm-search/samples-dev/adminKeysRegenerateSample.ts b/sdk/search/arm-search/samples-dev/adminKeysRegenerateSample.ts index 5a929f7d4a13..7bfdcce19d4f 100644 --- a/sdk/search/arm-search/samples-dev/adminKeysRegenerateSample.ts +++ b/sdk/search/arm-search/samples-dev/adminKeysRegenerateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time. * * @summary Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchRegenerateAdminKey.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchRegenerateAdminKey.json */ async function searchRegenerateAdminKey() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function searchRegenerateAdminKey() { const result = await client.adminKeys.regenerate( resourceGroupName, searchServiceName, - keyKind + keyKind, ); console.log(result); } diff --git a/sdk/search/arm-search/samples-dev/networkSecurityPerimeterConfigurationsGetSample.ts b/sdk/search/arm-search/samples-dev/networkSecurityPerimeterConfigurationsGetSample.ts new file mode 100644 index 000000000000..3e90ba68cecc --- /dev/null +++ b/sdk/search/arm-search/samples-dev/networkSecurityPerimeterConfigurationsGetSample.ts @@ -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. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a network security perimeter configuration. + * + * @summary Gets a network security perimeter configuration. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsGet.json + */ +async function getAnNspConfigByName() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const nspConfigName = "00000001-2222-3333-4444-111144444444.assoc1"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.networkSecurityPerimeterConfigurations.get( + resourceGroupName, + searchServiceName, + nspConfigName, + ); + console.log(result); +} + +async function main() { + getAnNspConfigByName(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples-dev/networkSecurityPerimeterConfigurationsListByServiceSample.ts b/sdk/search/arm-search/samples-dev/networkSecurityPerimeterConfigurationsListByServiceSample.ts new file mode 100644 index 000000000000..feeb6bbab14c --- /dev/null +++ b/sdk/search/arm-search/samples-dev/networkSecurityPerimeterConfigurationsListByServiceSample.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 { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a list of network security perimeter configurations for a search service. + * + * @summary Gets a list of network security perimeter configurations for a search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsListByService.json + */ +async function listNspConfigsBySearchService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.networkSecurityPerimeterConfigurations.listByService( + resourceGroupName, + searchServiceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listNspConfigsBySearchService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.ts b/sdk/search/arm-search/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.ts new file mode 100644 index 000000000000..647222db3231 --- /dev/null +++ b/sdk/search/arm-search/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.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 { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Reconcile network security perimeter configuration for the Azure AI Search resource provider. This triggers a manual resync with network security perimeter configurations by ensuring the search service carries the latest configuration. + * + * @summary Reconcile network security perimeter configuration for the Azure AI Search resource provider. This triggers a manual resync with network security perimeter configurations by ensuring the search service carries the latest configuration. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsReconcile.json + */ +async function reconcileNspConfig() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const nspConfigName = "00000001-2222-3333-4444-111144444444.assoc1"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = + await client.networkSecurityPerimeterConfigurations.beginReconcileAndWait( + resourceGroupName, + searchServiceName, + nspConfigName, + ); + console.log(result); +} + +async function main() { + reconcileNspConfig(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples-dev/operationsListSample.ts b/sdk/search/arm-search/samples-dev/operationsListSample.ts index bbe167426caf..2e38e7a1f140 100644 --- a/sdk/search/arm-search/samples-dev/operationsListSample.ts +++ b/sdk/search/arm-search/samples-dev/operationsListSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Lists all of the available REST API operations of the Microsoft.Search provider. * * @summary Lists all of the available REST API operations of the Microsoft.Search provider. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/OperationsList.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListOperations.json */ -async function operationsList() { +async function searchListOperations() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -34,7 +34,7 @@ async function operationsList() { } async function main() { - operationsList(); + searchListOperations(); } main().catch(console.error); diff --git a/sdk/search/arm-search/samples-dev/privateEndpointConnectionsDeleteSample.ts b/sdk/search/arm-search/samples-dev/privateEndpointConnectionsDeleteSample.ts index 0146a22337a7..6d492d97979d 100644 --- a/sdk/search/arm-search/samples-dev/privateEndpointConnectionsDeleteSample.ts +++ b/sdk/search/arm-search/samples-dev/privateEndpointConnectionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Disconnects the private endpoint connection and deletes it from the search service. * * @summary Disconnects the private endpoint connection and deletes it from the search service. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/DeletePrivateEndpointConnection.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/DeletePrivateEndpointConnection.json */ async function privateEndpointConnectionDelete() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function privateEndpointConnectionDelete() { const result = await client.privateEndpointConnections.delete( resourceGroupName, searchServiceName, - privateEndpointConnectionName + privateEndpointConnectionName, ); console.log(result); } diff --git a/sdk/search/arm-search/samples-dev/privateEndpointConnectionsGetSample.ts b/sdk/search/arm-search/samples-dev/privateEndpointConnectionsGetSample.ts index 66d7935ea188..58f44338e4f3 100644 --- a/sdk/search/arm-search/samples-dev/privateEndpointConnectionsGetSample.ts +++ b/sdk/search/arm-search/samples-dev/privateEndpointConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the private endpoint connection to the search service in the given resource group. * * @summary Gets the details of the private endpoint connection to the search service in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/GetPrivateEndpointConnection.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetPrivateEndpointConnection.json */ async function privateEndpointConnectionGet() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function privateEndpointConnectionGet() { const result = await client.privateEndpointConnections.get( resourceGroupName, searchServiceName, - privateEndpointConnectionName + privateEndpointConnectionName, ); console.log(result); } diff --git a/sdk/search/arm-search/samples-dev/privateEndpointConnectionsListByServiceSample.ts b/sdk/search/arm-search/samples-dev/privateEndpointConnectionsListByServiceSample.ts index dd1f1eeee370..287f544b7b6d 100644 --- a/sdk/search/arm-search/samples-dev/privateEndpointConnectionsListByServiceSample.ts +++ b/sdk/search/arm-search/samples-dev/privateEndpointConnectionsListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all private endpoint connections in the given service. * * @summary Gets a list of all private endpoint connections in the given service. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/ListPrivateEndpointConnectionsByService.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListPrivateEndpointConnectionsByService.json */ async function listPrivateEndpointConnectionsByService() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function listPrivateEndpointConnectionsByService() { const resArray = new Array(); for await (let item of client.privateEndpointConnections.listByService( resourceGroupName, - searchServiceName + searchServiceName, )) { resArray.push(item); } diff --git a/sdk/search/arm-search/samples-dev/privateEndpointConnectionsUpdateSample.ts b/sdk/search/arm-search/samples-dev/privateEndpointConnectionsUpdateSample.ts index 4c3edfb49169..de3b80a92213 100644 --- a/sdk/search/arm-search/samples-dev/privateEndpointConnectionsUpdateSample.ts +++ b/sdk/search/arm-search/samples-dev/privateEndpointConnectionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { PrivateEndpointConnection, - SearchManagementClient + SearchManagementClient, } from "@azure/arm-search"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -18,10 +18,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Updates a Private Endpoint connection to the search service in the given resource group. + * This sample demonstrates how to Updates a private endpoint connection to the search service in the given resource group. * - * @summary Updates a Private Endpoint connection to the search service in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/UpdatePrivateEndpointConnection.json + * @summary Updates a private endpoint connection to the search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/UpdatePrivateEndpointConnection.json */ async function privateEndpointConnectionUpdate() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -32,10 +32,10 @@ async function privateEndpointConnectionUpdate() { const privateEndpointConnection: PrivateEndpointConnection = { properties: { privateLinkServiceConnectionState: { - description: "Rejected for some reason", - status: "Rejected" - } - } + description: "Rejected for some reason.", + status: "Rejected", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function privateEndpointConnectionUpdate() { resourceGroupName, searchServiceName, privateEndpointConnectionName, - privateEndpointConnection + privateEndpointConnection, ); console.log(result); } diff --git a/sdk/search/arm-search/samples-dev/privateLinkResourcesListSupportedSample.ts b/sdk/search/arm-search/samples-dev/privateLinkResourcesListSupportedSample.ts index f91762bde24c..ede3faec04e3 100644 --- a/sdk/search/arm-search/samples-dev/privateLinkResourcesListSupportedSample.ts +++ b/sdk/search/arm-search/samples-dev/privateLinkResourcesListSupportedSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all supported private link resource types for the given service. * * @summary Gets a list of all supported private link resource types for the given service. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/ListSupportedPrivateLinkResources.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListSupportedPrivateLinkResources.json */ async function listSupportedPrivateLinkResources() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function listSupportedPrivateLinkResources() { const resArray = new Array(); for await (let item of client.privateLinkResources.listSupported( resourceGroupName, - searchServiceName + searchServiceName, )) { resArray.push(item); } diff --git a/sdk/search/arm-search/samples-dev/queryKeysCreateSample.ts b/sdk/search/arm-search/samples-dev/queryKeysCreateSample.ts index b1d595920d16..ceb045cfdcb7 100644 --- a/sdk/search/arm-search/samples-dev/queryKeysCreateSample.ts +++ b/sdk/search/arm-search/samples-dev/queryKeysCreateSample.ts @@ -18,19 +18,20 @@ dotenv.config(); * This sample demonstrates how to Generates a new query key for the specified search service. You can create up to 50 query keys per service. * * @summary Generates a new query key for the specified search service. You can create up to 50 query keys per service. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateQueryKey.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateQueryKey.json */ async function searchCreateQueryKey() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; const searchServiceName = "mysearchservice"; - const name = "Query key for browser-based clients"; + const name = + "An API key granting read-only access to the documents collection of an index."; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.queryKeys.create( resourceGroupName, searchServiceName, - name + name, ); console.log(result); } diff --git a/sdk/search/arm-search/samples-dev/queryKeysDeleteSample.ts b/sdk/search/arm-search/samples-dev/queryKeysDeleteSample.ts index ffec9ae6fd6d..1bb57af82d39 100644 --- a/sdk/search/arm-search/samples-dev/queryKeysDeleteSample.ts +++ b/sdk/search/arm-search/samples-dev/queryKeysDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it. * * @summary Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchDeleteQueryKey.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchDeleteQueryKey.json */ async function searchDeleteQueryKey() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function searchDeleteQueryKey() { const result = await client.queryKeys.delete( resourceGroupName, searchServiceName, - key + key, ); console.log(result); } diff --git a/sdk/search/arm-search/samples-dev/queryKeysListBySearchServiceSample.ts b/sdk/search/arm-search/samples-dev/queryKeysListBySearchServiceSample.ts index 9bf9b4cc1636..f5f9534d4918 100644 --- a/sdk/search/arm-search/samples-dev/queryKeysListBySearchServiceSample.ts +++ b/sdk/search/arm-search/samples-dev/queryKeysListBySearchServiceSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Returns the list of query API keys for the given Azure Cognitive Search service. + * This sample demonstrates how to Returns the list of query API keys for the given Azure AI Search service. * - * @summary Returns the list of query API keys for the given Azure Cognitive Search service. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchListQueryKeysBySearchService.json + * @summary Returns the list of query API keys for the given Azure AI Search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListQueryKeysBySearchService.json */ async function searchListQueryKeysBySearchService() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function searchListQueryKeysBySearchService() { const resArray = new Array(); for await (let item of client.queryKeys.listBySearchService( resourceGroupName, - searchServiceName + searchServiceName, )) { resArray.push(item); } diff --git a/sdk/search/arm-search/samples-dev/servicesCheckNameAvailabilitySample.ts b/sdk/search/arm-search/samples-dev/servicesCheckNameAvailabilitySample.ts index 2745681c1cfb..4323782dcc95 100644 --- a/sdk/search/arm-search/samples-dev/servicesCheckNameAvailabilitySample.ts +++ b/sdk/search/arm-search/samples-dev/servicesCheckNameAvailabilitySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Checks whether or not the given search service name is available for use. Search service names must be globally unique since they are part of the service URI (https://.search.windows.net). * * @summary Checks whether or not the given search service name is available for use. Search service names must be globally unique since they are part of the service URI (https://.search.windows.net). - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCheckNameAvailability.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCheckNameAvailability.json */ async function searchCheckNameAvailability() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/search/arm-search/samples-dev/servicesCreateOrUpdateSample.ts b/sdk/search/arm-search/samples-dev/servicesCreateOrUpdateSample.ts index aba772befac0..18e9c3ed5b16 100644 --- a/sdk/search/arm-search/samples-dev/servicesCreateOrUpdateSample.ts +++ b/sdk/search/arm-search/samples-dev/servicesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. * * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateOrUpdateService.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateService.json */ async function searchCreateOrUpdateService() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,14 +30,14 @@ async function searchCreateOrUpdateService() { partitionCount: 1, replicaCount: 3, sku: { name: "standard" }, - tags: { appName: "My e-commerce app" } + tags: { appName: "My e-commerce app" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.beginCreateOrUpdateAndWait( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -46,7 +46,7 @@ async function searchCreateOrUpdateService() { * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. * * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateOrUpdateServiceAuthOptions.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceAuthOptions.json */ async function searchCreateOrUpdateServiceAuthOptions() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -54,21 +54,21 @@ async function searchCreateOrUpdateServiceAuthOptions() { const searchServiceName = "mysearchservice"; const service: SearchService = { authOptions: { - aadOrApiKey: { aadAuthFailureMode: "http401WithBearerChallenge" } + aadOrApiKey: { aadAuthFailureMode: "http401WithBearerChallenge" }, }, hostingMode: "default", location: "westus", partitionCount: 1, replicaCount: 3, sku: { name: "standard" }, - tags: { appName: "My e-commerce app" } + tags: { appName: "My e-commerce app" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.beginCreateOrUpdateAndWait( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -77,7 +77,7 @@ async function searchCreateOrUpdateServiceAuthOptions() { * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. * * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateOrUpdateServiceDisableLocalAuth.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceDisableLocalAuth.json */ async function searchCreateOrUpdateServiceDisableLocalAuth() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -90,14 +90,14 @@ async function searchCreateOrUpdateServiceDisableLocalAuth() { partitionCount: 1, replicaCount: 3, sku: { name: "standard" }, - tags: { appName: "My e-commerce app" } + tags: { appName: "My e-commerce app" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.beginCreateOrUpdateAndWait( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -106,7 +106,7 @@ async function searchCreateOrUpdateServiceDisableLocalAuth() { * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. * * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints.json */ async function searchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -119,14 +119,14 @@ async function searchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints() { publicNetworkAccess: "disabled", replicaCount: 3, sku: { name: "standard" }, - tags: { appName: "My e-commerce app" } + tags: { appName: "My e-commerce app" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.beginCreateOrUpdateAndWait( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -135,7 +135,7 @@ async function searchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints() { * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. * * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs.json */ async function searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -145,19 +145,19 @@ async function searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs() { hostingMode: "default", location: "westus", networkRuleSet: { - ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }] + ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }], }, partitionCount: 1, replicaCount: 1, sku: { name: "standard" }, - tags: { appName: "My e-commerce app" } + tags: { appName: "My e-commerce app" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.beginCreateOrUpdateAndWait( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -166,7 +166,39 @@ async function searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs() { * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. * * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateOrUpdateServiceWithCmkEnforcement.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass.json + */ +async function searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchService = { + hostingMode: "default", + location: "westus", + networkRuleSet: { + bypass: "AzurePortal", + ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }], + }, + partitionCount: 1, + replicaCount: 1, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceWithCmkEnforcement.json */ async function searchCreateOrUpdateServiceWithCmkEnforcement() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -179,14 +211,14 @@ async function searchCreateOrUpdateServiceWithCmkEnforcement() { partitionCount: 1, replicaCount: 3, sku: { name: "standard" }, - tags: { appName: "My e-commerce app" } + tags: { appName: "My e-commerce app" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.beginCreateOrUpdateAndWait( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -195,7 +227,36 @@ async function searchCreateOrUpdateServiceWithCmkEnforcement() { * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. * * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateOrUpdateServiceWithIdentity.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceWithDataExfiltration.json + */ +async function searchCreateOrUpdateServiceWithDataExfiltration() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchService = { + disabledDataExfiltrationOptions: ["All"], + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceWithIdentity.json */ async function searchCreateOrUpdateServiceWithIdentity() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -203,19 +264,25 @@ async function searchCreateOrUpdateServiceWithIdentity() { const searchServiceName = "mysearchservice"; const service: SearchService = { hostingMode: "default", - identity: { type: "SystemAssigned" }, + identity: { + type: "SystemAssigned, UserAssigned", + userAssignedIdentities: { + "/subscriptions/00000000000000000000000000000000/resourcegroups/rg1/providers/MicrosoftManagedIdentity/userAssignedIdentities/userMi": + {}, + }, + }, location: "westus", partitionCount: 1, replicaCount: 3, sku: { name: "standard" }, - tags: { appName: "My e-commerce app" } + tags: { appName: "My e-commerce app" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.beginCreateOrUpdateAndWait( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -224,7 +291,7 @@ async function searchCreateOrUpdateServiceWithIdentity() { * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. * * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchCreateOrUpdateWithSemanticSearch.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateWithSemanticSearch.json */ async function searchCreateOrUpdateWithSemanticSearch() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -237,14 +304,14 @@ async function searchCreateOrUpdateWithSemanticSearch() { replicaCount: 3, semanticSearch: "free", sku: { name: "standard" }, - tags: { appName: "My e-commerce app" } + tags: { appName: "My e-commerce app" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.beginCreateOrUpdateAndWait( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -255,7 +322,9 @@ async function main() { searchCreateOrUpdateServiceDisableLocalAuth(); searchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints(); searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs(); + searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass(); searchCreateOrUpdateServiceWithCmkEnforcement(); + searchCreateOrUpdateServiceWithDataExfiltration(); searchCreateOrUpdateServiceWithIdentity(); searchCreateOrUpdateWithSemanticSearch(); } diff --git a/sdk/search/arm-search/samples-dev/servicesDeleteSample.ts b/sdk/search/arm-search/samples-dev/servicesDeleteSample.ts index ea91fc7cea30..934ea94708ed 100644 --- a/sdk/search/arm-search/samples-dev/servicesDeleteSample.ts +++ b/sdk/search/arm-search/samples-dev/servicesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a search service in the given resource group, along with its associated resources. * * @summary Deletes a search service in the given resource group, along with its associated resources. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchDeleteService.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchDeleteService.json */ async function searchDeleteService() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -28,7 +28,7 @@ async function searchDeleteService() { const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.delete( resourceGroupName, - searchServiceName + searchServiceName, ); console.log(result); } diff --git a/sdk/search/arm-search/samples-dev/servicesGetSample.ts b/sdk/search/arm-search/samples-dev/servicesGetSample.ts index ea520af4efc8..a6b102d2f393 100644 --- a/sdk/search/arm-search/samples-dev/servicesGetSample.ts +++ b/sdk/search/arm-search/samples-dev/servicesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the search service with the given name in the given resource group. * * @summary Gets the search service with the given name in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchGetService.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchGetService.json */ async function searchGetService() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -28,7 +28,7 @@ async function searchGetService() { const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.get( resourceGroupName, - searchServiceName + searchServiceName, ); console.log(result); } diff --git a/sdk/search/arm-search/samples-dev/servicesListByResourceGroupSample.ts b/sdk/search/arm-search/samples-dev/servicesListByResourceGroupSample.ts index efd6b2613b0b..d2d98157ef85 100644 --- a/sdk/search/arm-search/samples-dev/servicesListByResourceGroupSample.ts +++ b/sdk/search/arm-search/samples-dev/servicesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all Search services in the given resource group. * * @summary Gets a list of all Search services in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchListServicesByResourceGroup.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListServicesByResourceGroup.json */ async function searchListServicesByResourceGroup() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -27,7 +27,7 @@ async function searchListServicesByResourceGroup() { const client = new SearchManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.services.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/search/arm-search/samples-dev/servicesListBySubscriptionSample.ts b/sdk/search/arm-search/samples-dev/servicesListBySubscriptionSample.ts index f6a638abbb30..c20d277bd4e3 100644 --- a/sdk/search/arm-search/samples-dev/servicesListBySubscriptionSample.ts +++ b/sdk/search/arm-search/samples-dev/servicesListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all Search services in the given subscription. * * @summary Gets a list of all Search services in the given subscription. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchListServicesBySubscription.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListServicesBySubscription.json */ async function searchListServicesBySubscription() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/search/arm-search/samples-dev/servicesUpdateSample.ts b/sdk/search/arm-search/samples-dev/servicesUpdateSample.ts index 9a83e4b2b138..04949fc7d969 100644 --- a/sdk/search/arm-search/samples-dev/servicesUpdateSample.ts +++ b/sdk/search/arm-search/samples-dev/servicesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Updates an existing search service in the given resource group. * * @summary Updates an existing search service in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchUpdateService.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateService.json */ async function searchUpdateService() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -26,14 +26,14 @@ async function searchUpdateService() { const searchServiceName = "mysearchservice"; const service: SearchServiceUpdate = { replicaCount: 2, - tags: { appName: "My e-commerce app", newTag: "Adding a new tag" } + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.update( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -42,7 +42,7 @@ async function searchUpdateService() { * This sample demonstrates how to Updates an existing search service in the given resource group. * * @summary Updates an existing search service in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchUpdateServiceAuthOptions.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceAuthOptions.json */ async function searchUpdateServiceAuthOptions() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -50,17 +50,17 @@ async function searchUpdateServiceAuthOptions() { const searchServiceName = "mysearchservice"; const service: SearchServiceUpdate = { authOptions: { - aadOrApiKey: { aadAuthFailureMode: "http401WithBearerChallenge" } + aadOrApiKey: { aadAuthFailureMode: "http401WithBearerChallenge" }, }, replicaCount: 2, - tags: { appName: "My e-commerce app", newTag: "Adding a new tag" } + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.update( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -69,7 +69,7 @@ async function searchUpdateServiceAuthOptions() { * This sample demonstrates how to Updates an existing search service in the given resource group. * * @summary Updates an existing search service in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchUpdateServiceDisableLocalAuth.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceDisableLocalAuth.json */ async function searchUpdateServiceDisableLocalAuth() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -78,14 +78,14 @@ async function searchUpdateServiceDisableLocalAuth() { const service: SearchServiceUpdate = { disableLocalAuth: true, replicaCount: 2, - tags: { appName: "My e-commerce app", newTag: "Adding a new tag" } + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.update( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -94,7 +94,7 @@ async function searchUpdateServiceDisableLocalAuth() { * This sample demonstrates how to Updates an existing search service in the given resource group. * * @summary Updates an existing search service in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchUpdateServiceToAllowAccessFromPrivateEndpoints.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceToAllowAccessFromPrivateEndpoints.json */ async function searchUpdateServiceToAllowAccessFromPrivateEndpoints() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -103,14 +103,14 @@ async function searchUpdateServiceToAllowAccessFromPrivateEndpoints() { const service: SearchServiceUpdate = { partitionCount: 1, publicNetworkAccess: "disabled", - replicaCount: 1 + replicaCount: 1, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.update( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -119,7 +119,7 @@ async function searchUpdateServiceToAllowAccessFromPrivateEndpoints() { * This sample demonstrates how to Updates an existing search service in the given resource group. * * @summary Updates an existing search service in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchUpdateServiceToAllowAccessFromPublicCustomIPs.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceToAllowAccessFromPublicCustomIPs.json */ async function searchUpdateServiceToAllowAccessFromPublicCustomIPs() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -127,18 +127,18 @@ async function searchUpdateServiceToAllowAccessFromPublicCustomIPs() { const searchServiceName = "mysearchservice"; const service: SearchServiceUpdate = { networkRuleSet: { - ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }] + ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }], }, partitionCount: 1, publicNetworkAccess: "enabled", - replicaCount: 3 + replicaCount: 3, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.update( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -147,7 +147,36 @@ async function searchUpdateServiceToAllowAccessFromPublicCustomIPs() { * This sample demonstrates how to Updates an existing search service in the given resource group. * * @summary Updates an existing search service in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchUpdateServiceToRemoveIdentity.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass.json + */ +async function searchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchServiceUpdate = { + networkRuleSet: { + bypass: "AzurePortal", + ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }], + }, + partitionCount: 1, + publicNetworkAccess: "enabled", + replicaCount: 3, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceToRemoveIdentity.json */ async function searchUpdateServiceToRemoveIdentity() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -155,14 +184,14 @@ async function searchUpdateServiceToRemoveIdentity() { const searchServiceName = "mysearchservice"; const service: SearchServiceUpdate = { identity: { type: "None" }, - sku: { name: "standard" } + sku: { name: "standard" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.update( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -171,7 +200,7 @@ async function searchUpdateServiceToRemoveIdentity() { * This sample demonstrates how to Updates an existing search service in the given resource group. * * @summary Updates an existing search service in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchUpdateServiceWithCmkEnforcement.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceWithCmkEnforcement.json */ async function searchUpdateServiceWithCmkEnforcement() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -180,14 +209,39 @@ async function searchUpdateServiceWithCmkEnforcement() { const service: SearchServiceUpdate = { encryptionWithCmk: { enforcement: "Enabled" }, replicaCount: 2, - tags: { appName: "My e-commerce app", newTag: "Adding a new tag" } + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceWithDataExfiltration.json + */ +async function searchUpdateServiceWithDataExfiltration() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchServiceUpdate = { + disabledDataExfiltrationOptions: ["All"], + replicaCount: 2, + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.update( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -196,7 +250,7 @@ async function searchUpdateServiceWithCmkEnforcement() { * This sample demonstrates how to Updates an existing search service in the given resource group. * * @summary Updates an existing search service in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/SearchUpdateServiceWithSemanticSearch.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceWithSemanticSearch.json */ async function searchUpdateServiceWithSemanticSearch() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -205,14 +259,14 @@ async function searchUpdateServiceWithSemanticSearch() { const service: SearchServiceUpdate = { replicaCount: 2, semanticSearch: "standard", - tags: { appName: "My e-commerce app", newTag: "Adding a new tag" } + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); const result = await client.services.update( resourceGroupName, searchServiceName, - service + service, ); console.log(result); } @@ -223,8 +277,10 @@ async function main() { searchUpdateServiceDisableLocalAuth(); searchUpdateServiceToAllowAccessFromPrivateEndpoints(); searchUpdateServiceToAllowAccessFromPublicCustomIPs(); + searchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass(); searchUpdateServiceToRemoveIdentity(); searchUpdateServiceWithCmkEnforcement(); + searchUpdateServiceWithDataExfiltration(); searchUpdateServiceWithSemanticSearch(); } diff --git a/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesCreateOrUpdateSample.ts b/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesCreateOrUpdateSample.ts index 222107676f69..df6788d5903b 100644 --- a/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesCreateOrUpdateSample.ts +++ b/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { SharedPrivateLinkResource, - SearchManagementClient + SearchManagementClient, } from "@azure/arm-search"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Initiates the creation or update of a shared private link resource managed by the search service in the given resource group. * * @summary Initiates the creation or update of a shared private link resource managed by the search service in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/CreateOrUpdateSharedPrivateLinkResource.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/CreateOrUpdateSharedPrivateLinkResource.json */ async function sharedPrivateLinkResourceCreateOrUpdate() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -34,17 +34,18 @@ async function sharedPrivateLinkResourceCreateOrUpdate() { privateLinkResourceId: "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/storageAccountName", requestMessage: "please approve", - resourceRegion: undefined - } + resourceRegion: undefined, + }, }; const credential = new DefaultAzureCredential(); const client = new SearchManagementClient(credential, subscriptionId); - const result = await client.sharedPrivateLinkResources.beginCreateOrUpdateAndWait( - resourceGroupName, - searchServiceName, - sharedPrivateLinkResourceName, - sharedPrivateLinkResource - ); + const result = + await client.sharedPrivateLinkResources.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + sharedPrivateLinkResourceName, + sharedPrivateLinkResource, + ); console.log(result); } diff --git a/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesDeleteSample.ts b/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesDeleteSample.ts index 17766bbbf78f..20699b031063 100644 --- a/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesDeleteSample.ts +++ b/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Initiates the deletion of the shared private link resource from the search service. * * @summary Initiates the deletion of the shared private link resource from the search service. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/DeleteSharedPrivateLinkResource.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/DeleteSharedPrivateLinkResource.json */ async function sharedPrivateLinkResourceDelete() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function sharedPrivateLinkResourceDelete() { const result = await client.sharedPrivateLinkResources.beginDeleteAndWait( resourceGroupName, searchServiceName, - sharedPrivateLinkResourceName + sharedPrivateLinkResourceName, ); console.log(result); } diff --git a/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesGetSample.ts b/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesGetSample.ts index bda8b185f21a..6f0aa6e28212 100644 --- a/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesGetSample.ts +++ b/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the details of the shared private link resource managed by the search service in the given resource group. * * @summary Gets the details of the shared private link resource managed by the search service in the given resource group. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/GetSharedPrivateLinkResource.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetSharedPrivateLinkResource.json */ async function sharedPrivateLinkResourceGet() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function sharedPrivateLinkResourceGet() { const result = await client.sharedPrivateLinkResources.get( resourceGroupName, searchServiceName, - sharedPrivateLinkResourceName + sharedPrivateLinkResourceName, ); console.log(result); } diff --git a/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesListByServiceSample.ts b/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesListByServiceSample.ts index 2a780830d4a0..2930e326088d 100644 --- a/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesListByServiceSample.ts +++ b/sdk/search/arm-search/samples-dev/sharedPrivateLinkResourcesListByServiceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of all shared private link resources managed by the given service. * * @summary Gets a list of all shared private link resources managed by the given service. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/ListSharedPrivateLinkResourcesByService.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListSharedPrivateLinkResourcesByService.json */ async function listSharedPrivateLinkResourcesByService() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function listSharedPrivateLinkResourcesByService() { const resArray = new Array(); for await (let item of client.sharedPrivateLinkResources.listByService( resourceGroupName, - searchServiceName + searchServiceName, )) { resArray.push(item); } diff --git a/sdk/search/arm-search/samples-dev/usageBySubscriptionSkuSample.ts b/sdk/search/arm-search/samples-dev/usageBySubscriptionSkuSample.ts index d35b8c9a8abd..3f781a83a983 100644 --- a/sdk/search/arm-search/samples-dev/usageBySubscriptionSkuSample.ts +++ b/sdk/search/arm-search/samples-dev/usageBySubscriptionSkuSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the quota usage for a search sku in the given subscription. * * @summary Gets the quota usage for a search sku in the given subscription. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/GetQuotaUsage.json + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetQuotaUsage.json */ async function getQuotaUsage() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/search/arm-search/samples-dev/usagesListBySubscriptionSample.ts b/sdk/search/arm-search/samples-dev/usagesListBySubscriptionSample.ts index d60fb477938e..f58911eefd8a 100644 --- a/sdk/search/arm-search/samples-dev/usagesListBySubscriptionSample.ts +++ b/sdk/search/arm-search/samples-dev/usagesListBySubscriptionSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Gets a list of all Search quota usages in the given subscription. + * This sample demonstrates how to Get a list of all Azure AI Search quota usages across the subscription. * - * @summary Gets a list of all Search quota usages in the given subscription. - * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2023-11-01/examples/GetQuotaUsagesList.json + * @summary Get a list of all Azure AI Search quota usages across the subscription. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetQuotaUsagesList.json */ async function getQuotaUsagesList() { const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/README.md b/sdk/search/arm-search/samples/v3-beta/javascript/README.md new file mode 100644 index 000000000000..9b24f28acb6a --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/README.md @@ -0,0 +1,102 @@ +# client library samples for JavaScript (Beta) + +These sample programs show how to use the JavaScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [adminKeysGetSample.js][adminkeysgetsample] | Gets the primary and secondary admin API keys for the specified Azure AI Search service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchGetAdminKeys.json | +| [adminKeysRegenerateSample.js][adminkeysregeneratesample] | Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchRegenerateAdminKey.json | +| [networkSecurityPerimeterConfigurationsGetSample.js][networksecurityperimeterconfigurationsgetsample] | Gets a network security perimeter configuration. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsGet.json | +| [networkSecurityPerimeterConfigurationsListByServiceSample.js][networksecurityperimeterconfigurationslistbyservicesample] | Gets a list of network security perimeter configurations for a search service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsListByService.json | +| [networkSecurityPerimeterConfigurationsReconcileSample.js][networksecurityperimeterconfigurationsreconcilesample] | Reconcile network security perimeter configuration for the Azure AI Search resource provider. This triggers a manual resync with network security perimeter configurations by ensuring the search service carries the latest configuration. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsReconcile.json | +| [operationsListSample.js][operationslistsample] | Lists all of the available REST API operations of the Microsoft.Search provider. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListOperations.json | +| [privateEndpointConnectionsDeleteSample.js][privateendpointconnectionsdeletesample] | Disconnects the private endpoint connection and deletes it from the search service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/DeletePrivateEndpointConnection.json | +| [privateEndpointConnectionsGetSample.js][privateendpointconnectionsgetsample] | Gets the details of the private endpoint connection to the search service in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetPrivateEndpointConnection.json | +| [privateEndpointConnectionsListByServiceSample.js][privateendpointconnectionslistbyservicesample] | Gets a list of all private endpoint connections in the given service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListPrivateEndpointConnectionsByService.json | +| [privateEndpointConnectionsUpdateSample.js][privateendpointconnectionsupdatesample] | Updates a private endpoint connection to the search service in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/UpdatePrivateEndpointConnection.json | +| [privateLinkResourcesListSupportedSample.js][privatelinkresourceslistsupportedsample] | Gets a list of all supported private link resource types for the given service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListSupportedPrivateLinkResources.json | +| [queryKeysCreateSample.js][querykeyscreatesample] | Generates a new query key for the specified search service. You can create up to 50 query keys per service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateQueryKey.json | +| [queryKeysDeleteSample.js][querykeysdeletesample] | Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchDeleteQueryKey.json | +| [queryKeysListBySearchServiceSample.js][querykeyslistbysearchservicesample] | Returns the list of query API keys for the given Azure AI Search service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListQueryKeysBySearchService.json | +| [servicesCheckNameAvailabilitySample.js][serviceschecknameavailabilitysample] | Checks whether or not the given search service name is available for use. Search service names must be globally unique since they are part of the service URI (https://.search.windows.net). x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCheckNameAvailability.json | +| [servicesCreateOrUpdateSample.js][servicescreateorupdatesample] | Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateService.json | +| [servicesDeleteSample.js][servicesdeletesample] | Deletes a search service in the given resource group, along with its associated resources. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchDeleteService.json | +| [servicesGetSample.js][servicesgetsample] | Gets the search service with the given name in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchGetService.json | +| [servicesListByResourceGroupSample.js][serviceslistbyresourcegroupsample] | Gets a list of all Search services in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListServicesByResourceGroup.json | +| [servicesListBySubscriptionSample.js][serviceslistbysubscriptionsample] | Gets a list of all Search services in the given subscription. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListServicesBySubscription.json | +| [servicesUpdateSample.js][servicesupdatesample] | Updates an existing search service in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateService.json | +| [sharedPrivateLinkResourcesCreateOrUpdateSample.js][sharedprivatelinkresourcescreateorupdatesample] | Initiates the creation or update of a shared private link resource managed by the search service in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/CreateOrUpdateSharedPrivateLinkResource.json | +| [sharedPrivateLinkResourcesDeleteSample.js][sharedprivatelinkresourcesdeletesample] | Initiates the deletion of the shared private link resource from the search service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/DeleteSharedPrivateLinkResource.json | +| [sharedPrivateLinkResourcesGetSample.js][sharedprivatelinkresourcesgetsample] | Gets the details of the shared private link resource managed by the search service in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetSharedPrivateLinkResource.json | +| [sharedPrivateLinkResourcesListByServiceSample.js][sharedprivatelinkresourceslistbyservicesample] | Gets a list of all shared private link resources managed by the given service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListSharedPrivateLinkResourcesByService.json | +| [usageBySubscriptionSkuSample.js][usagebysubscriptionskusample] | Gets the quota usage for a search sku in the given subscription. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetQuotaUsage.json | +| [usagesListBySubscriptionSample.js][usageslistbysubscriptionsample] | Get a list of all Azure AI Search quota usages across the subscription. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetQuotaUsagesList.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. 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. + +3. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node adminKeysGetSample.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 SEARCH_SUBSCRIPTION_ID="" SEARCH_RESOURCE_GROUP="" node adminKeysGetSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[adminkeysgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/adminKeysGetSample.js +[adminkeysregeneratesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/adminKeysRegenerateSample.js +[networksecurityperimeterconfigurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsGetSample.js +[networksecurityperimeterconfigurationslistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsListByServiceSample.js +[networksecurityperimeterconfigurationsreconcilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsReconcileSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/operationsListSample.js +[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsDeleteSample.js +[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsGetSample.js +[privateendpointconnectionslistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsListByServiceSample.js +[privateendpointconnectionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsUpdateSample.js +[privatelinkresourceslistsupportedsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/privateLinkResourcesListSupportedSample.js +[querykeyscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/queryKeysCreateSample.js +[querykeysdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/queryKeysDeleteSample.js +[querykeyslistbysearchservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/queryKeysListBySearchServiceSample.js +[serviceschecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/servicesCheckNameAvailabilitySample.js +[servicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/servicesCreateOrUpdateSample.js +[servicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/servicesDeleteSample.js +[servicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/servicesGetSample.js +[serviceslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/servicesListByResourceGroupSample.js +[serviceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/servicesListBySubscriptionSample.js +[servicesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/servicesUpdateSample.js +[sharedprivatelinkresourcescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesCreateOrUpdateSample.js +[sharedprivatelinkresourcesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesDeleteSample.js +[sharedprivatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesGetSample.js +[sharedprivatelinkresourceslistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesListByServiceSample.js +[usagebysubscriptionskusample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/usageBySubscriptionSkuSample.js +[usageslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/javascript/usagesListBySubscriptionSample.js +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-search?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/search/arm-search/README.md diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/adminKeysGetSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/adminKeysGetSample.js new file mode 100644 index 000000000000..01c2b855d737 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/adminKeysGetSample.js @@ -0,0 +1,35 @@ +/* + * 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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the primary and secondary admin API keys for the specified Azure AI Search service. + * + * @summary Gets the primary and secondary admin API keys for the specified Azure AI Search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchGetAdminKeys.json + */ +async function searchGetAdminKeys() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.adminKeys.get(resourceGroupName, searchServiceName); + console.log(result); +} + +async function main() { + searchGetAdminKeys(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/adminKeysRegenerateSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/adminKeysRegenerateSample.js new file mode 100644 index 000000000000..2188a3c69757 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/adminKeysRegenerateSample.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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time. + * + * @summary Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchRegenerateAdminKey.json + */ +async function searchRegenerateAdminKey() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const keyKind = "primary"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.adminKeys.regenerate(resourceGroupName, searchServiceName, keyKind); + console.log(result); +} + +async function main() { + searchRegenerateAdminKey(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsGetSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsGetSample.js new file mode 100644 index 000000000000..9f7e5141028f --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsGetSample.js @@ -0,0 +1,40 @@ +/* + * 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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a network security perimeter configuration. + * + * @summary Gets a network security perimeter configuration. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsGet.json + */ +async function getAnNspConfigByName() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const nspConfigName = "00000001-2222-3333-4444-111144444444.assoc1"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.networkSecurityPerimeterConfigurations.get( + resourceGroupName, + searchServiceName, + nspConfigName, + ); + console.log(result); +} + +async function main() { + getAnNspConfigByName(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsListByServiceSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsListByServiceSample.js new file mode 100644 index 000000000000..f59095f3b83f --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsListByServiceSample.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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a list of network security perimeter configurations for a search service. + * + * @summary Gets a list of network security perimeter configurations for a search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsListByService.json + */ +async function listNspConfigsBySearchService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.networkSecurityPerimeterConfigurations.listByService( + resourceGroupName, + searchServiceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listNspConfigsBySearchService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsReconcileSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsReconcileSample.js new file mode 100644 index 000000000000..8b31491f14f7 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/networkSecurityPerimeterConfigurationsReconcileSample.js @@ -0,0 +1,40 @@ +/* + * 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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Reconcile network security perimeter configuration for the Azure AI Search resource provider. This triggers a manual resync with network security perimeter configurations by ensuring the search service carries the latest configuration. + * + * @summary Reconcile network security perimeter configuration for the Azure AI Search resource provider. This triggers a manual resync with network security perimeter configurations by ensuring the search service carries the latest configuration. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsReconcile.json + */ +async function reconcileNspConfig() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const nspConfigName = "00000001-2222-3333-4444-111144444444.assoc1"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.networkSecurityPerimeterConfigurations.beginReconcileAndWait( + resourceGroupName, + searchServiceName, + nspConfigName, + ); + console.log(result); +} + +async function main() { + reconcileNspConfig(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/operationsListSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/operationsListSample.js new file mode 100644 index 000000000000..231481dd3afd --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/operationsListSample.js @@ -0,0 +1,37 @@ +/* + * 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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists all of the available REST API operations of the Microsoft.Search provider. + * + * @summary Lists all of the available REST API operations of the Microsoft.Search provider. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListOperations.json + */ +async function searchListOperations() { + const subscriptionId = + process.env["SEARCH_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + searchListOperations(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/package.json b/sdk/search/arm-search/samples/v3-beta/javascript/package.json new file mode 100644 index 000000000000..2ee5a56f34b7 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/package.json @@ -0,0 +1,32 @@ +{ + "name": "@azure-samples/arm-search-js-beta", + "private": true, + "version": "1.0.0", + "description": " client library samples for JavaScript (Beta)", + "engines": { + "node": ">=18.0.0" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/search/arm-search" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/search/arm-search", + "dependencies": { + "@azure/arm-search": "next", + "dotenv": "latest", + "@azure/identity": "^4.0.1" + } +} diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsDeleteSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsDeleteSample.js new file mode 100644 index 000000000000..e1e3043195c8 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsDeleteSample.js @@ -0,0 +1,40 @@ +/* + * 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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Disconnects the private endpoint connection and deletes it from the search service. + * + * @summary Disconnects the private endpoint connection and deletes it from the search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/DeletePrivateEndpointConnection.json + */ +async function privateEndpointConnectionDelete() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const privateEndpointConnectionName = "testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.delete( + resourceGroupName, + searchServiceName, + privateEndpointConnectionName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionDelete(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsGetSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsGetSample.js new file mode 100644 index 000000000000..55263e1ea487 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsGetSample.js @@ -0,0 +1,40 @@ +/* + * 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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the details of the private endpoint connection to the search service in the given resource group. + * + * @summary Gets the details of the private endpoint connection to the search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetPrivateEndpointConnection.json + */ +async function privateEndpointConnectionGet() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const privateEndpointConnectionName = "testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.get( + resourceGroupName, + searchServiceName, + privateEndpointConnectionName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionGet(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsListByServiceSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsListByServiceSample.js new file mode 100644 index 000000000000..a6d286a9bf18 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsListByServiceSample.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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a list of all private endpoint connections in the given service. + * + * @summary Gets a list of all private endpoint connections in the given service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListPrivateEndpointConnectionsByService.json + */ +async function listPrivateEndpointConnectionsByService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.privateEndpointConnections.listByService( + resourceGroupName, + searchServiceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listPrivateEndpointConnectionsByService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsUpdateSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsUpdateSample.js new file mode 100644 index 000000000000..637bd5cea08f --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/privateEndpointConnectionsUpdateSample.js @@ -0,0 +1,49 @@ +/* + * 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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Updates a private endpoint connection to the search service in the given resource group. + * + * @summary Updates a private endpoint connection to the search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/UpdatePrivateEndpointConnection.json + */ +async function privateEndpointConnectionUpdate() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const privateEndpointConnectionName = "testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546"; + const privateEndpointConnection = { + properties: { + privateLinkServiceConnectionState: { + description: "Rejected for some reason.", + status: "Rejected", + }, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.update( + resourceGroupName, + searchServiceName, + privateEndpointConnectionName, + privateEndpointConnection, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionUpdate(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/privateLinkResourcesListSupportedSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/privateLinkResourcesListSupportedSample.js new file mode 100644 index 000000000000..b15f71c1ec26 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/privateLinkResourcesListSupportedSample.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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a list of all supported private link resource types for the given service. + * + * @summary Gets a list of all supported private link resource types for the given service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListSupportedPrivateLinkResources.json + */ +async function listSupportedPrivateLinkResources() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.privateLinkResources.listSupported( + resourceGroupName, + searchServiceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listSupportedPrivateLinkResources(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/queryKeysCreateSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/queryKeysCreateSample.js new file mode 100644 index 000000000000..0b8459c27207 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/queryKeysCreateSample.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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Generates a new query key for the specified search service. You can create up to 50 query keys per service. + * + * @summary Generates a new query key for the specified search service. You can create up to 50 query keys per service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateQueryKey.json + */ +async function searchCreateQueryKey() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const name = "An API key granting read-only access to the documents collection of an index."; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.queryKeys.create(resourceGroupName, searchServiceName, name); + console.log(result); +} + +async function main() { + searchCreateQueryKey(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/queryKeysDeleteSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/queryKeysDeleteSample.js new file mode 100644 index 000000000000..91f9471c14a8 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/queryKeysDeleteSample.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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it. + * + * @summary Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchDeleteQueryKey.json + */ +async function searchDeleteQueryKey() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const key = ""; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.queryKeys.delete(resourceGroupName, searchServiceName, key); + console.log(result); +} + +async function main() { + searchDeleteQueryKey(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/queryKeysListBySearchServiceSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/queryKeysListBySearchServiceSample.js new file mode 100644 index 000000000000..96429be50e9c --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/queryKeysListBySearchServiceSample.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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Returns the list of query API keys for the given Azure AI Search service. + * + * @summary Returns the list of query API keys for the given Azure AI Search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListQueryKeysBySearchService.json + */ +async function searchListQueryKeysBySearchService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.queryKeys.listBySearchService( + resourceGroupName, + searchServiceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + searchListQueryKeysBySearchService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/sample.env b/sdk/search/arm-search/samples/v3-beta/javascript/sample.env new file mode 100644 index 000000000000..672847a3fea0 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/sample.env @@ -0,0 +1,4 @@ +# App registration secret for AAD authentication +AZURE_CLIENT_SECRET= +AZURE_CLIENT_ID= +AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/servicesCheckNameAvailabilitySample.js b/sdk/search/arm-search/samples/v3-beta/javascript/servicesCheckNameAvailabilitySample.js new file mode 100644 index 000000000000..a15fbbe68292 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/servicesCheckNameAvailabilitySample.js @@ -0,0 +1,34 @@ +/* + * 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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Checks whether or not the given search service name is available for use. Search service names must be globally unique since they are part of the service URI (https://.search.windows.net). + * + * @summary Checks whether or not the given search service name is available for use. Search service names must be globally unique since they are part of the service URI (https://.search.windows.net). + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCheckNameAvailability.json + */ +async function searchCheckNameAvailability() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const name = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.checkNameAvailability(name); + console.log(result); +} + +async function main() { + searchCheckNameAvailability(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/servicesCreateOrUpdateSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/servicesCreateOrUpdateSample.js new file mode 100644 index 000000000000..0586ee5ed7e4 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/servicesCreateOrUpdateSample.js @@ -0,0 +1,330 @@ +/* + * 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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateService.json + */ +async function searchCreateOrUpdateService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceAuthOptions.json + */ +async function searchCreateOrUpdateServiceAuthOptions() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + authOptions: { + aadOrApiKey: { aadAuthFailureMode: "http401WithBearerChallenge" }, + }, + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceDisableLocalAuth.json + */ +async function searchCreateOrUpdateServiceDisableLocalAuth() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + disableLocalAuth: true, + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints.json + */ +async function searchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + hostingMode: "default", + location: "westus", + partitionCount: 1, + publicNetworkAccess: "disabled", + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs.json + */ +async function searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + hostingMode: "default", + location: "westus", + networkRuleSet: { + ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }], + }, + partitionCount: 1, + replicaCount: 1, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass.json + */ +async function searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + hostingMode: "default", + location: "westus", + networkRuleSet: { + bypass: "AzurePortal", + ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }], + }, + partitionCount: 1, + replicaCount: 1, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceWithCmkEnforcement.json + */ +async function searchCreateOrUpdateServiceWithCmkEnforcement() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + encryptionWithCmk: { enforcement: "Enabled" }, + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceWithDataExfiltration.json + */ +async function searchCreateOrUpdateServiceWithDataExfiltration() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + disabledDataExfiltrationOptions: ["All"], + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceWithIdentity.json + */ +async function searchCreateOrUpdateServiceWithIdentity() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + hostingMode: "default", + identity: { + type: "SystemAssigned, UserAssigned", + userAssignedIdentities: { + "/subscriptions/00000000000000000000000000000000/resourcegroups/rg1/providers/MicrosoftManagedIdentity/userAssignedIdentities/userMi": + {}, + }, + }, + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateWithSemanticSearch.json + */ +async function searchCreateOrUpdateWithSemanticSearch() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + semanticSearch: "free", + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +async function main() { + searchCreateOrUpdateService(); + searchCreateOrUpdateServiceAuthOptions(); + searchCreateOrUpdateServiceDisableLocalAuth(); + searchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints(); + searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs(); + searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass(); + searchCreateOrUpdateServiceWithCmkEnforcement(); + searchCreateOrUpdateServiceWithDataExfiltration(); + searchCreateOrUpdateServiceWithIdentity(); + searchCreateOrUpdateWithSemanticSearch(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/servicesDeleteSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/servicesDeleteSample.js new file mode 100644 index 000000000000..eb91fbbb59e0 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/servicesDeleteSample.js @@ -0,0 +1,35 @@ +/* + * 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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes a search service in the given resource group, along with its associated resources. + * + * @summary Deletes a search service in the given resource group, along with its associated resources. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchDeleteService.json + */ +async function searchDeleteService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.delete(resourceGroupName, searchServiceName); + console.log(result); +} + +async function main() { + searchDeleteService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/servicesGetSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/servicesGetSample.js new file mode 100644 index 000000000000..11993ebbb11a --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/servicesGetSample.js @@ -0,0 +1,35 @@ +/* + * 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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the search service with the given name in the given resource group. + * + * @summary Gets the search service with the given name in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchGetService.json + */ +async function searchGetService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.get(resourceGroupName, searchServiceName); + console.log(result); +} + +async function main() { + searchGetService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/servicesListByResourceGroupSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/servicesListByResourceGroupSample.js new file mode 100644 index 000000000000..9b71d08b27cc --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/servicesListByResourceGroupSample.js @@ -0,0 +1,37 @@ +/* + * 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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a list of all Search services in the given resource group. + * + * @summary Gets a list of all Search services in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListServicesByResourceGroup.json + */ +async function searchListServicesByResourceGroup() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.services.listByResourceGroup(resourceGroupName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + searchListServicesByResourceGroup(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/servicesListBySubscriptionSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/servicesListBySubscriptionSample.js new file mode 100644 index 000000000000..39658e5fc05e --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/servicesListBySubscriptionSample.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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a list of all Search services in the given subscription. + * + * @summary Gets a list of all Search services in the given subscription. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListServicesBySubscription.json + */ +async function searchListServicesBySubscription() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.services.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + searchListServicesBySubscription(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/servicesUpdateSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/servicesUpdateSample.js new file mode 100644 index 000000000000..046ce643d6aa --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/servicesUpdateSample.js @@ -0,0 +1,245 @@ +/* + * 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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateService.json + */ +async function searchUpdateService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + replicaCount: 2, + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update(resourceGroupName, searchServiceName, service); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceAuthOptions.json + */ +async function searchUpdateServiceAuthOptions() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + authOptions: { + aadOrApiKey: { aadAuthFailureMode: "http401WithBearerChallenge" }, + }, + replicaCount: 2, + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update(resourceGroupName, searchServiceName, service); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceDisableLocalAuth.json + */ +async function searchUpdateServiceDisableLocalAuth() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + disableLocalAuth: true, + replicaCount: 2, + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update(resourceGroupName, searchServiceName, service); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceToAllowAccessFromPrivateEndpoints.json + */ +async function searchUpdateServiceToAllowAccessFromPrivateEndpoints() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + partitionCount: 1, + publicNetworkAccess: "disabled", + replicaCount: 1, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update(resourceGroupName, searchServiceName, service); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceToAllowAccessFromPublicCustomIPs.json + */ +async function searchUpdateServiceToAllowAccessFromPublicCustomIPs() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + networkRuleSet: { + ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }], + }, + partitionCount: 1, + publicNetworkAccess: "enabled", + replicaCount: 3, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update(resourceGroupName, searchServiceName, service); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass.json + */ +async function searchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + networkRuleSet: { + bypass: "AzurePortal", + ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }], + }, + partitionCount: 1, + publicNetworkAccess: "enabled", + replicaCount: 3, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update(resourceGroupName, searchServiceName, service); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceToRemoveIdentity.json + */ +async function searchUpdateServiceToRemoveIdentity() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + identity: { type: "None" }, + sku: { name: "standard" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update(resourceGroupName, searchServiceName, service); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceWithCmkEnforcement.json + */ +async function searchUpdateServiceWithCmkEnforcement() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + encryptionWithCmk: { enforcement: "Enabled" }, + replicaCount: 2, + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update(resourceGroupName, searchServiceName, service); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceWithDataExfiltration.json + */ +async function searchUpdateServiceWithDataExfiltration() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + disabledDataExfiltrationOptions: ["All"], + replicaCount: 2, + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update(resourceGroupName, searchServiceName, service); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceWithSemanticSearch.json + */ +async function searchUpdateServiceWithSemanticSearch() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service = { + replicaCount: 2, + semanticSearch: "standard", + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update(resourceGroupName, searchServiceName, service); + console.log(result); +} + +async function main() { + searchUpdateService(); + searchUpdateServiceAuthOptions(); + searchUpdateServiceDisableLocalAuth(); + searchUpdateServiceToAllowAccessFromPrivateEndpoints(); + searchUpdateServiceToAllowAccessFromPublicCustomIPs(); + searchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass(); + searchUpdateServiceToRemoveIdentity(); + searchUpdateServiceWithCmkEnforcement(); + searchUpdateServiceWithDataExfiltration(); + searchUpdateServiceWithSemanticSearch(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesCreateOrUpdateSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesCreateOrUpdateSample.js new file mode 100644 index 000000000000..640164c7347f --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesCreateOrUpdateSample.js @@ -0,0 +1,50 @@ +/* + * 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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Initiates the creation or update of a shared private link resource managed by the search service in the given resource group. + * + * @summary Initiates the creation or update of a shared private link resource managed by the search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/CreateOrUpdateSharedPrivateLinkResource.json + */ +async function sharedPrivateLinkResourceCreateOrUpdate() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const sharedPrivateLinkResourceName = "testResource"; + const sharedPrivateLinkResource = { + properties: { + groupId: "blob", + privateLinkResourceId: + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/storageAccountName", + requestMessage: "please approve", + resourceRegion: undefined, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.sharedPrivateLinkResources.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + sharedPrivateLinkResourceName, + sharedPrivateLinkResource, + ); + console.log(result); +} + +async function main() { + sharedPrivateLinkResourceCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesDeleteSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesDeleteSample.js new file mode 100644 index 000000000000..b3d7d6301b0a --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesDeleteSample.js @@ -0,0 +1,40 @@ +/* + * 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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Initiates the deletion of the shared private link resource from the search service. + * + * @summary Initiates the deletion of the shared private link resource from the search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/DeleteSharedPrivateLinkResource.json + */ +async function sharedPrivateLinkResourceDelete() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const sharedPrivateLinkResourceName = "testResource"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.sharedPrivateLinkResources.beginDeleteAndWait( + resourceGroupName, + searchServiceName, + sharedPrivateLinkResourceName, + ); + console.log(result); +} + +async function main() { + sharedPrivateLinkResourceDelete(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesGetSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesGetSample.js new file mode 100644 index 000000000000..2cfbc0b88b82 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesGetSample.js @@ -0,0 +1,40 @@ +/* + * 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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the details of the shared private link resource managed by the search service in the given resource group. + * + * @summary Gets the details of the shared private link resource managed by the search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetSharedPrivateLinkResource.json + */ +async function sharedPrivateLinkResourceGet() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const sharedPrivateLinkResourceName = "testResource"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.sharedPrivateLinkResources.get( + resourceGroupName, + searchServiceName, + sharedPrivateLinkResourceName, + ); + console.log(result); +} + +async function main() { + sharedPrivateLinkResourceGet(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesListByServiceSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesListByServiceSample.js new file mode 100644 index 000000000000..0d31b345639f --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/sharedPrivateLinkResourcesListByServiceSample.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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a list of all shared private link resources managed by the given service. + * + * @summary Gets a list of all shared private link resources managed by the given service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListSharedPrivateLinkResourcesByService.json + */ +async function listSharedPrivateLinkResourcesByService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.sharedPrivateLinkResources.listByService( + resourceGroupName, + searchServiceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listSharedPrivateLinkResourcesByService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/usageBySubscriptionSkuSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/usageBySubscriptionSkuSample.js new file mode 100644 index 000000000000..aa940b8698b0 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/usageBySubscriptionSkuSample.js @@ -0,0 +1,35 @@ +/* + * 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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the quota usage for a search sku in the given subscription. + * + * @summary Gets the quota usage for a search sku in the given subscription. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetQuotaUsage.json + */ +async function getQuotaUsage() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const location = "westus"; + const skuName = "free"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.usageBySubscriptionSku(location, skuName); + console.log(result); +} + +async function main() { + getQuotaUsage(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/javascript/usagesListBySubscriptionSample.js b/sdk/search/arm-search/samples/v3-beta/javascript/usagesListBySubscriptionSample.js new file mode 100644 index 000000000000..e4b6054ced52 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/javascript/usagesListBySubscriptionSample.js @@ -0,0 +1,37 @@ +/* + * 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 { SearchManagementClient } = require("@azure/arm-search"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get a list of all Azure AI Search quota usages across the subscription. + * + * @summary Get a list of all Azure AI Search quota usages across the subscription. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetQuotaUsagesList.json + */ +async function getQuotaUsagesList() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const location = "westus"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.usages.listBySubscription(location)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + getQuotaUsagesList(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/README.md b/sdk/search/arm-search/samples/v3-beta/typescript/README.md new file mode 100644 index 000000000000..c57256d5b101 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/README.md @@ -0,0 +1,115 @@ +# client library samples for TypeScript (Beta) + +These sample programs show how to use the TypeScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [adminKeysGetSample.ts][adminkeysgetsample] | Gets the primary and secondary admin API keys for the specified Azure AI Search service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchGetAdminKeys.json | +| [adminKeysRegenerateSample.ts][adminkeysregeneratesample] | Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchRegenerateAdminKey.json | +| [networkSecurityPerimeterConfigurationsGetSample.ts][networksecurityperimeterconfigurationsgetsample] | Gets a network security perimeter configuration. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsGet.json | +| [networkSecurityPerimeterConfigurationsListByServiceSample.ts][networksecurityperimeterconfigurationslistbyservicesample] | Gets a list of network security perimeter configurations for a search service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsListByService.json | +| [networkSecurityPerimeterConfigurationsReconcileSample.ts][networksecurityperimeterconfigurationsreconcilesample] | Reconcile network security perimeter configuration for the Azure AI Search resource provider. This triggers a manual resync with network security perimeter configurations by ensuring the search service carries the latest configuration. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsReconcile.json | +| [operationsListSample.ts][operationslistsample] | Lists all of the available REST API operations of the Microsoft.Search provider. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListOperations.json | +| [privateEndpointConnectionsDeleteSample.ts][privateendpointconnectionsdeletesample] | Disconnects the private endpoint connection and deletes it from the search service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/DeletePrivateEndpointConnection.json | +| [privateEndpointConnectionsGetSample.ts][privateendpointconnectionsgetsample] | Gets the details of the private endpoint connection to the search service in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetPrivateEndpointConnection.json | +| [privateEndpointConnectionsListByServiceSample.ts][privateendpointconnectionslistbyservicesample] | Gets a list of all private endpoint connections in the given service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListPrivateEndpointConnectionsByService.json | +| [privateEndpointConnectionsUpdateSample.ts][privateendpointconnectionsupdatesample] | Updates a private endpoint connection to the search service in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/UpdatePrivateEndpointConnection.json | +| [privateLinkResourcesListSupportedSample.ts][privatelinkresourceslistsupportedsample] | Gets a list of all supported private link resource types for the given service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListSupportedPrivateLinkResources.json | +| [queryKeysCreateSample.ts][querykeyscreatesample] | Generates a new query key for the specified search service. You can create up to 50 query keys per service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateQueryKey.json | +| [queryKeysDeleteSample.ts][querykeysdeletesample] | Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchDeleteQueryKey.json | +| [queryKeysListBySearchServiceSample.ts][querykeyslistbysearchservicesample] | Returns the list of query API keys for the given Azure AI Search service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListQueryKeysBySearchService.json | +| [servicesCheckNameAvailabilitySample.ts][serviceschecknameavailabilitysample] | Checks whether or not the given search service name is available for use. Search service names must be globally unique since they are part of the service URI (https://.search.windows.net). x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCheckNameAvailability.json | +| [servicesCreateOrUpdateSample.ts][servicescreateorupdatesample] | Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateService.json | +| [servicesDeleteSample.ts][servicesdeletesample] | Deletes a search service in the given resource group, along with its associated resources. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchDeleteService.json | +| [servicesGetSample.ts][servicesgetsample] | Gets the search service with the given name in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchGetService.json | +| [servicesListByResourceGroupSample.ts][serviceslistbyresourcegroupsample] | Gets a list of all Search services in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListServicesByResourceGroup.json | +| [servicesListBySubscriptionSample.ts][serviceslistbysubscriptionsample] | Gets a list of all Search services in the given subscription. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListServicesBySubscription.json | +| [servicesUpdateSample.ts][servicesupdatesample] | Updates an existing search service in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateService.json | +| [sharedPrivateLinkResourcesCreateOrUpdateSample.ts][sharedprivatelinkresourcescreateorupdatesample] | Initiates the creation or update of a shared private link resource managed by the search service in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/CreateOrUpdateSharedPrivateLinkResource.json | +| [sharedPrivateLinkResourcesDeleteSample.ts][sharedprivatelinkresourcesdeletesample] | Initiates the deletion of the shared private link resource from the search service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/DeleteSharedPrivateLinkResource.json | +| [sharedPrivateLinkResourcesGetSample.ts][sharedprivatelinkresourcesgetsample] | Gets the details of the shared private link resource managed by the search service in the given resource group. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetSharedPrivateLinkResource.json | +| [sharedPrivateLinkResourcesListByServiceSample.ts][sharedprivatelinkresourceslistbyservicesample] | Gets a list of all shared private link resources managed by the given service. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListSharedPrivateLinkResourcesByService.json | +| [usageBySubscriptionSkuSample.ts][usagebysubscriptionskusample] | Gets the quota usage for a search sku in the given subscription. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetQuotaUsage.json | +| [usagesListBySubscriptionSample.ts][usageslistbysubscriptionsample] | Get a list of all Azure AI Search quota usages across the subscription. x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetQuotaUsagesList.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +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: + +```bash +npm install -g typescript +``` + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Compile the samples: + +```bash +npm run build +``` + +3. 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. + +4. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node dist/adminKeysGetSample.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 SEARCH_SUBSCRIPTION_ID="" SEARCH_RESOURCE_GROUP="" node dist/adminKeysGetSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[adminkeysgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/adminKeysGetSample.ts +[adminkeysregeneratesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/adminKeysRegenerateSample.ts +[networksecurityperimeterconfigurationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsGetSample.ts +[networksecurityperimeterconfigurationslistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsListByServiceSample.ts +[networksecurityperimeterconfigurationsreconcilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsReconcileSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/operationsListSample.ts +[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts +[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsGetSample.ts +[privateendpointconnectionslistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsListByServiceSample.ts +[privateendpointconnectionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsUpdateSample.ts +[privatelinkresourceslistsupportedsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/privateLinkResourcesListSupportedSample.ts +[querykeyscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysCreateSample.ts +[querykeysdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysDeleteSample.ts +[querykeyslistbysearchservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysListBySearchServiceSample.ts +[serviceschecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesCheckNameAvailabilitySample.ts +[servicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesCreateOrUpdateSample.ts +[servicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesDeleteSample.ts +[servicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesGetSample.ts +[serviceslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesListByResourceGroupSample.ts +[serviceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesListBySubscriptionSample.ts +[servicesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesUpdateSample.ts +[sharedprivatelinkresourcescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesCreateOrUpdateSample.ts +[sharedprivatelinkresourcesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesDeleteSample.ts +[sharedprivatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesGetSample.ts +[sharedprivatelinkresourceslistbyservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesListByServiceSample.ts +[usagebysubscriptionskusample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/usageBySubscriptionSkuSample.ts +[usageslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/arm-search/samples/v3-beta/typescript/src/usagesListBySubscriptionSample.ts +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-search?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/search/arm-search/README.md +[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/package.json b/sdk/search/arm-search/samples/v3-beta/typescript/package.json new file mode 100644 index 000000000000..c148413f633f --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/package.json @@ -0,0 +1,41 @@ +{ + "name": "@azure-samples/arm-search-ts-beta", + "private": true, + "version": "1.0.0", + "description": " client library samples for TypeScript (Beta)", + "engines": { + "node": ">=18.0.0" + }, + "scripts": { + "build": "tsc", + "prebuild": "rimraf dist/" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/search/arm-search" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/search/arm-search", + "dependencies": { + "@azure/arm-search": "next", + "dotenv": "latest", + "@azure/identity": "^4.0.1" + }, + "devDependencies": { + "@types/node": "^18.0.0", + "typescript": "~5.3.3", + "rimraf": "latest" + } +} diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/sample.env b/sdk/search/arm-search/samples/v3-beta/typescript/sample.env new file mode 100644 index 000000000000..672847a3fea0 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/sample.env @@ -0,0 +1,4 @@ +# App registration secret for AAD authentication +AZURE_CLIENT_SECRET= +AZURE_CLIENT_ID= +AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/adminKeysGetSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/adminKeysGetSample.ts new file mode 100644 index 000000000000..81733aafebf8 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/adminKeysGetSample.ts @@ -0,0 +1,40 @@ +/* + * 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 { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the primary and secondary admin API keys for the specified Azure AI Search service. + * + * @summary Gets the primary and secondary admin API keys for the specified Azure AI Search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchGetAdminKeys.json + */ +async function searchGetAdminKeys() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.adminKeys.get( + resourceGroupName, + searchServiceName, + ); + console.log(result); +} + +async function main() { + searchGetAdminKeys(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/adminKeysRegenerateSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/adminKeysRegenerateSample.ts new file mode 100644 index 000000000000..7bfdcce19d4f --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/adminKeysRegenerateSample.ts @@ -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. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time. + * + * @summary Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchRegenerateAdminKey.json + */ +async function searchRegenerateAdminKey() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const keyKind = "primary"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.adminKeys.regenerate( + resourceGroupName, + searchServiceName, + keyKind, + ); + console.log(result); +} + +async function main() { + searchRegenerateAdminKey(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsGetSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsGetSample.ts new file mode 100644 index 000000000000..3e90ba68cecc --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsGetSample.ts @@ -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. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a network security perimeter configuration. + * + * @summary Gets a network security perimeter configuration. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsGet.json + */ +async function getAnNspConfigByName() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const nspConfigName = "00000001-2222-3333-4444-111144444444.assoc1"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.networkSecurityPerimeterConfigurations.get( + resourceGroupName, + searchServiceName, + nspConfigName, + ); + console.log(result); +} + +async function main() { + getAnNspConfigByName(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsListByServiceSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsListByServiceSample.ts new file mode 100644 index 000000000000..feeb6bbab14c --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsListByServiceSample.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 { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a list of network security perimeter configurations for a search service. + * + * @summary Gets a list of network security perimeter configurations for a search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsListByService.json + */ +async function listNspConfigsBySearchService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.networkSecurityPerimeterConfigurations.listByService( + resourceGroupName, + searchServiceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listNspConfigsBySearchService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsReconcileSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsReconcileSample.ts new file mode 100644 index 000000000000..647222db3231 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/networkSecurityPerimeterConfigurationsReconcileSample.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 { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Reconcile network security perimeter configuration for the Azure AI Search resource provider. This triggers a manual resync with network security perimeter configurations by ensuring the search service carries the latest configuration. + * + * @summary Reconcile network security perimeter configuration for the Azure AI Search resource provider. This triggers a manual resync with network security perimeter configurations by ensuring the search service carries the latest configuration. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/NetworkSecurityPerimeterConfigurationsReconcile.json + */ +async function reconcileNspConfig() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const nspConfigName = "00000001-2222-3333-4444-111144444444.assoc1"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = + await client.networkSecurityPerimeterConfigurations.beginReconcileAndWait( + resourceGroupName, + searchServiceName, + nspConfigName, + ); + console.log(result); +} + +async function main() { + reconcileNspConfig(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/operationsListSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/operationsListSample.ts new file mode 100644 index 000000000000..2e38e7a1f140 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/operationsListSample.ts @@ -0,0 +1,40 @@ +/* + * 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 { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists all of the available REST API operations of the Microsoft.Search provider. + * + * @summary Lists all of the available REST API operations of the Microsoft.Search provider. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListOperations.json + */ +async function searchListOperations() { + const subscriptionId = + process.env["SEARCH_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + searchListOperations(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts new file mode 100644 index 000000000000..6d492d97979d --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsDeleteSample.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 { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Disconnects the private endpoint connection and deletes it from the search service. + * + * @summary Disconnects the private endpoint connection and deletes it from the search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/DeletePrivateEndpointConnection.json + */ +async function privateEndpointConnectionDelete() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const privateEndpointConnectionName = + "testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.delete( + resourceGroupName, + searchServiceName, + privateEndpointConnectionName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionDelete(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsGetSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsGetSample.ts new file mode 100644 index 000000000000..58f44338e4f3 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsGetSample.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 { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the details of the private endpoint connection to the search service in the given resource group. + * + * @summary Gets the details of the private endpoint connection to the search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetPrivateEndpointConnection.json + */ +async function privateEndpointConnectionGet() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const privateEndpointConnectionName = + "testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.get( + resourceGroupName, + searchServiceName, + privateEndpointConnectionName, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionGet(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsListByServiceSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsListByServiceSample.ts new file mode 100644 index 000000000000..287f544b7b6d --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsListByServiceSample.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 { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a list of all private endpoint connections in the given service. + * + * @summary Gets a list of all private endpoint connections in the given service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListPrivateEndpointConnectionsByService.json + */ +async function listPrivateEndpointConnectionsByService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.privateEndpointConnections.listByService( + resourceGroupName, + searchServiceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listPrivateEndpointConnectionsByService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsUpdateSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsUpdateSample.ts new file mode 100644 index 000000000000..de3b80a92213 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/privateEndpointConnectionsUpdateSample.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 { + PrivateEndpointConnection, + SearchManagementClient, +} from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Updates a private endpoint connection to the search service in the given resource group. + * + * @summary Updates a private endpoint connection to the search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/UpdatePrivateEndpointConnection.json + */ +async function privateEndpointConnectionUpdate() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const privateEndpointConnectionName = + "testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546"; + const privateEndpointConnection: PrivateEndpointConnection = { + properties: { + privateLinkServiceConnectionState: { + description: "Rejected for some reason.", + status: "Rejected", + }, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnections.update( + resourceGroupName, + searchServiceName, + privateEndpointConnectionName, + privateEndpointConnection, + ); + console.log(result); +} + +async function main() { + privateEndpointConnectionUpdate(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/privateLinkResourcesListSupportedSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/privateLinkResourcesListSupportedSample.ts new file mode 100644 index 000000000000..ede3faec04e3 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/privateLinkResourcesListSupportedSample.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 { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a list of all supported private link resource types for the given service. + * + * @summary Gets a list of all supported private link resource types for the given service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListSupportedPrivateLinkResources.json + */ +async function listSupportedPrivateLinkResources() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.privateLinkResources.listSupported( + resourceGroupName, + searchServiceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listSupportedPrivateLinkResources(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysCreateSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysCreateSample.ts new file mode 100644 index 000000000000..ceb045cfdcb7 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysCreateSample.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 { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Generates a new query key for the specified search service. You can create up to 50 query keys per service. + * + * @summary Generates a new query key for the specified search service. You can create up to 50 query keys per service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateQueryKey.json + */ +async function searchCreateQueryKey() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const name = + "An API key granting read-only access to the documents collection of an index."; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.queryKeys.create( + resourceGroupName, + searchServiceName, + name, + ); + console.log(result); +} + +async function main() { + searchCreateQueryKey(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysDeleteSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysDeleteSample.ts new file mode 100644 index 000000000000..1bb57af82d39 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysDeleteSample.ts @@ -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. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it. + * + * @summary Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchDeleteQueryKey.json + */ +async function searchDeleteQueryKey() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const key = ""; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.queryKeys.delete( + resourceGroupName, + searchServiceName, + key, + ); + console.log(result); +} + +async function main() { + searchDeleteQueryKey(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysListBySearchServiceSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysListBySearchServiceSample.ts new file mode 100644 index 000000000000..f5f9534d4918 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/queryKeysListBySearchServiceSample.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 { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Returns the list of query API keys for the given Azure AI Search service. + * + * @summary Returns the list of query API keys for the given Azure AI Search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListQueryKeysBySearchService.json + */ +async function searchListQueryKeysBySearchService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.queryKeys.listBySearchService( + resourceGroupName, + searchServiceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + searchListQueryKeysBySearchService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesCheckNameAvailabilitySample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesCheckNameAvailabilitySample.ts new file mode 100644 index 000000000000..4323782dcc95 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesCheckNameAvailabilitySample.ts @@ -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. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Checks whether or not the given search service name is available for use. Search service names must be globally unique since they are part of the service URI (https://.search.windows.net). + * + * @summary Checks whether or not the given search service name is available for use. Search service names must be globally unique since they are part of the service URI (https://.search.windows.net). + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCheckNameAvailability.json + */ +async function searchCheckNameAvailability() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const name = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.checkNameAvailability(name); + console.log(result); +} + +async function main() { + searchCheckNameAvailability(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesCreateOrUpdateSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesCreateOrUpdateSample.ts new file mode 100644 index 000000000000..18e9c3ed5b16 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesCreateOrUpdateSample.ts @@ -0,0 +1,332 @@ +/* + * 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 { SearchService, SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateService.json + */ +async function searchCreateOrUpdateService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchService = { + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceAuthOptions.json + */ +async function searchCreateOrUpdateServiceAuthOptions() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchService = { + authOptions: { + aadOrApiKey: { aadAuthFailureMode: "http401WithBearerChallenge" }, + }, + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceDisableLocalAuth.json + */ +async function searchCreateOrUpdateServiceDisableLocalAuth() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchService = { + disableLocalAuth: true, + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints.json + */ +async function searchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchService = { + hostingMode: "default", + location: "westus", + partitionCount: 1, + publicNetworkAccess: "disabled", + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs.json + */ +async function searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchService = { + hostingMode: "default", + location: "westus", + networkRuleSet: { + ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }], + }, + partitionCount: 1, + replicaCount: 1, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass.json + */ +async function searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchService = { + hostingMode: "default", + location: "westus", + networkRuleSet: { + bypass: "AzurePortal", + ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }], + }, + partitionCount: 1, + replicaCount: 1, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceWithCmkEnforcement.json + */ +async function searchCreateOrUpdateServiceWithCmkEnforcement() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchService = { + encryptionWithCmk: { enforcement: "Enabled" }, + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceWithDataExfiltration.json + */ +async function searchCreateOrUpdateServiceWithDataExfiltration() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchService = { + disabledDataExfiltrationOptions: ["All"], + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateServiceWithIdentity.json + */ +async function searchCreateOrUpdateServiceWithIdentity() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchService = { + hostingMode: "default", + identity: { + type: "SystemAssigned, UserAssigned", + userAssignedIdentities: { + "/subscriptions/00000000000000000000000000000000/resourcegroups/rg1/providers/MicrosoftManagedIdentity/userAssignedIdentities/userMi": + {}, + }, + }, + location: "westus", + partitionCount: 1, + replicaCount: 3, + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * + * @summary Creates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchCreateOrUpdateWithSemanticSearch.json + */ +async function searchCreateOrUpdateWithSemanticSearch() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchService = { + hostingMode: "default", + location: "westus", + partitionCount: 1, + replicaCount: 3, + semanticSearch: "free", + sku: { name: "standard" }, + tags: { appName: "My e-commerce app" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +async function main() { + searchCreateOrUpdateService(); + searchCreateOrUpdateServiceAuthOptions(); + searchCreateOrUpdateServiceDisableLocalAuth(); + searchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints(); + searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs(); + searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass(); + searchCreateOrUpdateServiceWithCmkEnforcement(); + searchCreateOrUpdateServiceWithDataExfiltration(); + searchCreateOrUpdateServiceWithIdentity(); + searchCreateOrUpdateWithSemanticSearch(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesDeleteSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesDeleteSample.ts new file mode 100644 index 000000000000..934ea94708ed --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesDeleteSample.ts @@ -0,0 +1,40 @@ +/* + * 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 { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a search service in the given resource group, along with its associated resources. + * + * @summary Deletes a search service in the given resource group, along with its associated resources. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchDeleteService.json + */ +async function searchDeleteService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.delete( + resourceGroupName, + searchServiceName, + ); + console.log(result); +} + +async function main() { + searchDeleteService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesGetSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesGetSample.ts new file mode 100644 index 000000000000..a6b102d2f393 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesGetSample.ts @@ -0,0 +1,40 @@ +/* + * 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 { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the search service with the given name in the given resource group. + * + * @summary Gets the search service with the given name in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchGetService.json + */ +async function searchGetService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.get( + resourceGroupName, + searchServiceName, + ); + console.log(result); +} + +async function main() { + searchGetService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesListByResourceGroupSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesListByResourceGroupSample.ts new file mode 100644 index 000000000000..d2d98157ef85 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesListByResourceGroupSample.ts @@ -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. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a list of all Search services in the given resource group. + * + * @summary Gets a list of all Search services in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListServicesByResourceGroup.json + */ +async function searchListServicesByResourceGroup() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.services.listByResourceGroup( + resourceGroupName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + searchListServicesByResourceGroup(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesListBySubscriptionSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesListBySubscriptionSample.ts new file mode 100644 index 000000000000..c20d277bd4e3 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesListBySubscriptionSample.ts @@ -0,0 +1,38 @@ +/* + * 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 { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a list of all Search services in the given subscription. + * + * @summary Gets a list of all Search services in the given subscription. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchListServicesBySubscription.json + */ +async function searchListServicesBySubscription() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.services.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + searchListServicesBySubscription(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesUpdateSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesUpdateSample.ts new file mode 100644 index 000000000000..04949fc7d969 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/servicesUpdateSample.ts @@ -0,0 +1,287 @@ +/* + * 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 { SearchServiceUpdate, SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateService.json + */ +async function searchUpdateService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchServiceUpdate = { + replicaCount: 2, + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceAuthOptions.json + */ +async function searchUpdateServiceAuthOptions() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchServiceUpdate = { + authOptions: { + aadOrApiKey: { aadAuthFailureMode: "http401WithBearerChallenge" }, + }, + replicaCount: 2, + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceDisableLocalAuth.json + */ +async function searchUpdateServiceDisableLocalAuth() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchServiceUpdate = { + disableLocalAuth: true, + replicaCount: 2, + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceToAllowAccessFromPrivateEndpoints.json + */ +async function searchUpdateServiceToAllowAccessFromPrivateEndpoints() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchServiceUpdate = { + partitionCount: 1, + publicNetworkAccess: "disabled", + replicaCount: 1, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceToAllowAccessFromPublicCustomIPs.json + */ +async function searchUpdateServiceToAllowAccessFromPublicCustomIPs() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchServiceUpdate = { + networkRuleSet: { + ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }], + }, + partitionCount: 1, + publicNetworkAccess: "enabled", + replicaCount: 3, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass.json + */ +async function searchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchServiceUpdate = { + networkRuleSet: { + bypass: "AzurePortal", + ipRules: [{ value: "123.4.5.6" }, { value: "123.4.6.0/18" }], + }, + partitionCount: 1, + publicNetworkAccess: "enabled", + replicaCount: 3, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceToRemoveIdentity.json + */ +async function searchUpdateServiceToRemoveIdentity() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchServiceUpdate = { + identity: { type: "None" }, + sku: { name: "standard" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceWithCmkEnforcement.json + */ +async function searchUpdateServiceWithCmkEnforcement() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchServiceUpdate = { + encryptionWithCmk: { enforcement: "Enabled" }, + replicaCount: 2, + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceWithDataExfiltration.json + */ +async function searchUpdateServiceWithDataExfiltration() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchServiceUpdate = { + disabledDataExfiltrationOptions: ["All"], + replicaCount: 2, + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Updates an existing search service in the given resource group. + * + * @summary Updates an existing search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/SearchUpdateServiceWithSemanticSearch.json + */ +async function searchUpdateServiceWithSemanticSearch() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const service: SearchServiceUpdate = { + replicaCount: 2, + semanticSearch: "standard", + tags: { appName: "My e-commerce app", newTag: "Adding a new tag" }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.services.update( + resourceGroupName, + searchServiceName, + service, + ); + console.log(result); +} + +async function main() { + searchUpdateService(); + searchUpdateServiceAuthOptions(); + searchUpdateServiceDisableLocalAuth(); + searchUpdateServiceToAllowAccessFromPrivateEndpoints(); + searchUpdateServiceToAllowAccessFromPublicCustomIPs(); + searchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass(); + searchUpdateServiceToRemoveIdentity(); + searchUpdateServiceWithCmkEnforcement(); + searchUpdateServiceWithDataExfiltration(); + searchUpdateServiceWithSemanticSearch(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesCreateOrUpdateSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesCreateOrUpdateSample.ts new file mode 100644 index 000000000000..df6788d5903b --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesCreateOrUpdateSample.ts @@ -0,0 +1,56 @@ +/* + * 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 { + SharedPrivateLinkResource, + SearchManagementClient, +} from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Initiates the creation or update of a shared private link resource managed by the search service in the given resource group. + * + * @summary Initiates the creation or update of a shared private link resource managed by the search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/CreateOrUpdateSharedPrivateLinkResource.json + */ +async function sharedPrivateLinkResourceCreateOrUpdate() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const sharedPrivateLinkResourceName = "testResource"; + const sharedPrivateLinkResource: SharedPrivateLinkResource = { + properties: { + groupId: "blob", + privateLinkResourceId: + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/storageAccountName", + requestMessage: "please approve", + resourceRegion: undefined, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = + await client.sharedPrivateLinkResources.beginCreateOrUpdateAndWait( + resourceGroupName, + searchServiceName, + sharedPrivateLinkResourceName, + sharedPrivateLinkResource, + ); + console.log(result); +} + +async function main() { + sharedPrivateLinkResourceCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesDeleteSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesDeleteSample.ts new file mode 100644 index 000000000000..20699b031063 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesDeleteSample.ts @@ -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. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Initiates the deletion of the shared private link resource from the search service. + * + * @summary Initiates the deletion of the shared private link resource from the search service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/DeleteSharedPrivateLinkResource.json + */ +async function sharedPrivateLinkResourceDelete() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const sharedPrivateLinkResourceName = "testResource"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.sharedPrivateLinkResources.beginDeleteAndWait( + resourceGroupName, + searchServiceName, + sharedPrivateLinkResourceName, + ); + console.log(result); +} + +async function main() { + sharedPrivateLinkResourceDelete(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesGetSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesGetSample.ts new file mode 100644 index 000000000000..6f0aa6e28212 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesGetSample.ts @@ -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. +import { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the details of the shared private link resource managed by the search service in the given resource group. + * + * @summary Gets the details of the shared private link resource managed by the search service in the given resource group. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetSharedPrivateLinkResource.json + */ +async function sharedPrivateLinkResourceGet() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const sharedPrivateLinkResourceName = "testResource"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.sharedPrivateLinkResources.get( + resourceGroupName, + searchServiceName, + sharedPrivateLinkResourceName, + ); + console.log(result); +} + +async function main() { + sharedPrivateLinkResourceGet(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesListByServiceSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesListByServiceSample.ts new file mode 100644 index 000000000000..2930e326088d --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/sharedPrivateLinkResourcesListByServiceSample.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 { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a list of all shared private link resources managed by the given service. + * + * @summary Gets a list of all shared private link resources managed by the given service. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/ListSharedPrivateLinkResourcesByService.json + */ +async function listSharedPrivateLinkResourcesByService() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["SEARCH_RESOURCE_GROUP"] || "rg1"; + const searchServiceName = "mysearchservice"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.sharedPrivateLinkResources.listByService( + resourceGroupName, + searchServiceName, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listSharedPrivateLinkResourcesByService(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/usageBySubscriptionSkuSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/usageBySubscriptionSkuSample.ts new file mode 100644 index 000000000000..3f781a83a983 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/usageBySubscriptionSkuSample.ts @@ -0,0 +1,37 @@ +/* + * 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 { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the quota usage for a search sku in the given subscription. + * + * @summary Gets the quota usage for a search sku in the given subscription. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetQuotaUsage.json + */ +async function getQuotaUsage() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const location = "westus"; + const skuName = "free"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const result = await client.usageBySubscriptionSku(location, skuName); + console.log(result); +} + +async function main() { + getQuotaUsage(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/src/usagesListBySubscriptionSample.ts b/sdk/search/arm-search/samples/v3-beta/typescript/src/usagesListBySubscriptionSample.ts new file mode 100644 index 000000000000..f58911eefd8a --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/src/usagesListBySubscriptionSample.ts @@ -0,0 +1,39 @@ +/* + * 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 { SearchManagementClient } from "@azure/arm-search"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get a list of all Azure AI Search quota usages across the subscription. + * + * @summary Get a list of all Azure AI Search quota usages across the subscription. + * x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2024-03-01-preview/examples/GetQuotaUsagesList.json + */ +async function getQuotaUsagesList() { + const subscriptionId = process.env["SEARCH_SUBSCRIPTION_ID"] || "subid"; + const location = "westus"; + const credential = new DefaultAzureCredential(); + const client = new SearchManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.usages.listBySubscription(location)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + getQuotaUsagesList(); +} + +main().catch(console.error); diff --git a/sdk/search/arm-search/samples/v3-beta/typescript/tsconfig.json b/sdk/search/arm-search/samples/v3-beta/typescript/tsconfig.json new file mode 100644 index 000000000000..e26ce2a6d8f7 --- /dev/null +++ b/sdk/search/arm-search/samples/v3-beta/typescript/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "commonjs", + "moduleResolution": "node", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "alwaysStrict": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src/**.ts" + ] +} diff --git a/sdk/search/arm-search/src/lroImpl.ts b/sdk/search/arm-search/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/search/arm-search/src/lroImpl.ts +++ b/sdk/search/arm-search/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/search/arm-search/src/models/index.ts b/sdk/search/arm-search/src/models/index.ts index cd80f5fe1313..318cd6464f2b 100644 --- a/sdk/search/arm-search/src/models/index.ts +++ b/sdk/search/arm-search/src/models/index.ts @@ -8,10 +8,10 @@ import * as coreClient from "@azure/core-client"; -/** The result of the request to list REST API operations. It contains a list of operations and a URL to get the next set of results. */ +/** The result of the request to list REST API operations. It contains a list of operations and a URL to get the next set of results. */ export interface OperationListResult { /** - * The list of operations supported by the resource provider. + * The list of operations by Azure AI Search, some supported by the resource provider and others by data plane APIs. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: Operation[]; @@ -34,6 +34,21 @@ export interface Operation { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly display?: OperationDisplay; + /** + * Describes if the specified operation is a data plane API operation. Operations where this value is not true are supported directly by the resource provider. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isDataAction?: boolean; + /** + * Describes which originating entities are allowed to invoke this operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly origin?: string; + /** + * Describes additional properties for this operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly properties?: OperationProperties; } /** The object that describes the operation. */ @@ -60,10 +75,121 @@ export interface OperationDisplay { readonly description?: string; } +/** Describes additional properties for this operation. */ +export interface OperationProperties { + /** + * Specifications of the service for this operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly serviceSpecification?: OperationServiceSpecification; +} + +/** Specifications of the service for this operation. */ +export interface OperationServiceSpecification { + /** + * Specifications of metrics for this operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly metricSpecifications?: OperationMetricsSpecification[]; + /** + * Specifications of logs for this operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly logSpecifications?: OperationLogsSpecification[]; +} + +/** Specifications of one type of metric for this operation. */ +export interface OperationMetricsSpecification { + /** + * The name of the metric specification. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The display name of the metric specification. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly displayName?: string; + /** + * The display description of the metric specification. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly displayDescription?: string; + /** + * The unit for the metric specification. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly unit?: string; + /** + * The type of aggregation for the metric specification. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly aggregationType?: string; + /** + * Dimensions for the metric specification. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly dimensions?: OperationMetricDimension[]; + /** + * Availabilities for the metric specification. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly availabilities?: OperationAvailability[]; +} + +/** Describes a particular dimension for the metric specification. */ +export interface OperationMetricDimension { + /** + * The name of the dimension. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The display name of the dimension. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly displayName?: string; +} + +/** Describes a particular availability for the metric specification. */ +export interface OperationAvailability { + /** + * The time grain for the dimension. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly timeGrain?: string; + /** + * The blob duration for the dimension. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly blobDuration?: string; +} + +/** Specifications of one type of log for this operation. */ +export interface OperationLogsSpecification { + /** + * The name of the log specification. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The display name of the log specification. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly displayName?: string; + /** + * The blob duration for the log specification. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly blobDuration?: string; +} + /** Contains information about an API error. */ export interface CloudError { /** Describes a particular API error with an error code and a message. */ error?: CloudErrorBody; + /** A brief description of the error that hints at what went wrong (for details/debugging information refer to the 'error.message' property). */ + message?: string; } /** Describes a particular API error with an error code and a message. */ @@ -78,7 +204,7 @@ export interface CloudErrorBody { details?: CloudErrorBody[]; } -/** Response containing the primary and secondary admin API keys for a given Azure Cognitive Search service. */ +/** Response containing the primary and secondary admin API keys for a given Azure AI Search service. */ export interface AdminKeyResult { /** * The primary admin API key of the search service. @@ -92,10 +218,10 @@ export interface AdminKeyResult { readonly secondaryKey?: string; } -/** Describes an API key for a given Azure Cognitive Search service that has permissions for query operations only. */ +/** Describes an API key for a given Azure AI Search service that conveys read-only permissions on the docs collection of an index. */ export interface QueryKey { /** - * The name of the query API key; may be empty. + * The name of the query API key. Query names are optional, but assigning a name can help you remember how it's used. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; @@ -106,10 +232,10 @@ export interface QueryKey { readonly key?: string; } -/** Response containing the query API keys for a given Azure Cognitive Search service. */ +/** Response containing the query API keys for a given Azure AI Search service. */ export interface ListQueryKeysResult { /** - * The query keys for the Azure Cognitive Search service. + * The query keys for the Azure AI Search service. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: QueryKey[]; @@ -120,64 +246,66 @@ export interface ListQueryKeysResult { readonly nextLink?: string; } -/** Network specific rules that determine how the Azure Cognitive Search service may be reached. */ +/** Network specific rules that determine how the Azure AI Search service may be reached. */ export interface NetworkRuleSet { /** A list of IP restriction rules that defines the inbound network(s) with allowing access to the search service endpoint. At the meantime, all other public IP networks are blocked by the firewall. These restriction rules are applied only when the 'publicNetworkAccess' of the search service is 'enabled'; otherwise, traffic over public interface is not allowed even with any public IP rules, and private endpoint connections would be the exclusive access method. */ ipRules?: IpRule[]; + /** Possible origins of inbound traffic that can bypass the rules defined in the 'ipRules' section. */ + bypass?: SearchBypass; } -/** The IP restriction rule of the Azure Cognitive Search service. */ +/** The IP restriction rule of the Azure AI Search service. */ export interface IpRule { /** Value corresponding to a single IPv4 address (eg., 123.1.2.3) or an IP range in CIDR format (eg., 123.1.2.3/24) to be allowed. */ value?: string; } -/** Describes a policy that determines how resources within the search service are to be encrypted with Customer Managed Keys. */ +/** Describes a policy that determines how resources within the search service are to be encrypted with customer managed keys. */ export interface EncryptionWithCmk { - /** Describes how a search service should enforce having one or more non customer encrypted resources. */ + /** Describes how a search service should enforce compliance if it finds objects that aren't encrypted with the customer-managed key. */ enforcement?: SearchEncryptionWithCmk; /** - * Describes whether the search service is compliant or not with respect to having non customer encrypted resources. If a service has more than one non customer encrypted resource and 'Enforcement' is 'enabled' then the service will be marked as 'nonCompliant'. + * Returns the status of search service compliance with respect to non-CMK-encrypted objects. If a service has more than one unencrypted object, and enforcement is enabled, the service is marked as noncompliant. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly encryptionComplianceStatus?: SearchEncryptionComplianceStatus; } -/** Defines the options for how the data plane API of a Search service authenticates requests. This cannot be set if 'disableLocalAuth' is set to true. */ +/** Defines the options for how the search service authenticates a data plane request. This cannot be set if 'disableLocalAuth' is set to true. */ export interface DataPlaneAuthOptions { - /** Indicates that only the API key needs to be used for authentication. */ + /** Indicates that only the API key can be used for authentication. */ apiKeyOnly?: Record; - /** Indicates that either the API key or an access token from Azure Active Directory can be used for authentication. */ + /** Indicates that either the API key or an access token from a Microsoft Entra ID tenant can be used for authentication. */ aadOrApiKey?: DataPlaneAadOrApiKeyAuthOption; } -/** Indicates that either the API key or an access token from Azure Active Directory can be used for authentication. */ +/** Indicates that either the API key or an access token from a Microsoft Entra ID tenant can be used for authentication. */ export interface DataPlaneAadOrApiKeyAuthOption { - /** Describes what response the data plane API of a Search service would send for requests that failed authentication. */ + /** Describes what response the data plane API of a search service would send for requests that failed authentication. */ aadAuthFailureMode?: AadAuthFailureMode; } -/** Describes the properties of an existing Private Endpoint connection to the Azure Cognitive Search service. */ +/** Describes the properties of an existing private endpoint connection to the search service. */ export interface PrivateEndpointConnectionProperties { /** The private endpoint resource from Microsoft.Network provider. */ privateEndpoint?: PrivateEndpointConnectionPropertiesPrivateEndpoint; - /** Describes the current state of an existing Private Link Service connection to the Azure Private Endpoint. */ + /** Describes the current state of an existing Azure Private Link service connection to the private endpoint. */ privateLinkServiceConnectionState?: PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState; - /** The group id from the provider of resource the private link service connection is for. */ + /** The group ID of the Azure resource for which the private link service is for. */ groupId?: string; - /** The provisioning state of the private link service connection. Can be Updating, Deleting, Failed, Succeeded, or Incomplete */ + /** The provisioning state of the private link service connection. Valid values are Updating, Deleting, Failed, Succeeded, Incomplete, or Canceled. */ provisioningState?: PrivateLinkServiceConnectionProvisioningState; } /** The private endpoint resource from Microsoft.Network provider. */ export interface PrivateEndpointConnectionPropertiesPrivateEndpoint { - /** The resource id of the private endpoint resource from Microsoft.Network provider. */ + /** The resource ID of the private endpoint resource from Microsoft.Network provider. */ id?: string; } -/** Describes the current state of an existing Private Link Service connection to the Azure Private Endpoint. */ +/** Describes the current state of an existing Azure Private Link service connection to the private endpoint. */ export interface PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState { - /** Status of the the private link service connection. Can be Pending, Approved, Rejected, or Disconnected. */ + /** Status of the the private link service connection. Valid values are Pending, Approved, Rejected, or Disconnected. */ status?: PrivateLinkServiceConnectionStatus; /** The description for the private link service connection state. */ description?: string; @@ -204,29 +332,29 @@ export interface Resource { readonly type?: string; } -/** Describes the properties of an existing Shared Private Link Resource managed by the Azure Cognitive Search service. */ +/** Describes the properties of an existing shared private link resource managed by the Azure AI Search service. */ export interface SharedPrivateLinkResourceProperties { - /** The resource id of the resource the shared private link resource is for. */ + /** The resource ID of the resource the shared private link resource is for. */ privateLinkResourceId?: string; - /** The group id from the provider of resource the shared private link resource is for. */ + /** The group ID from the provider of resource the shared private link resource is for. */ groupId?: string; - /** The request message for requesting approval of the shared private link resource. */ + /** The message for requesting approval of the shared private link resource. */ requestMessage?: string; - /** Optional. Can be used to specify the Azure Resource Manager location of the resource to which a shared private link is to be created. This is only required for those resources whose DNS configuration are regional (such as Azure Kubernetes Service). */ + /** Optional. Can be used to specify the Azure Resource Manager location of the resource for which a shared private link is being created. This is only required for those resources whose DNS configuration are regional (such as Azure Kubernetes Service). */ resourceRegion?: string; - /** Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected. */ + /** Status of the shared private link resource. Valid values are Pending, Approved, Rejected or Disconnected. */ status?: SharedPrivateLinkResourceStatus; - /** The provisioning state of the shared private link resource. Can be Updating, Deleting, Failed, Succeeded or Incomplete. */ + /** The provisioning state of the shared private link resource. Valid values are Updating, Deleting, Failed, Succeeded or Incomplete. */ provisioningState?: SharedPrivateLinkResourceProvisioningState; } -/** Defines the SKU of an Azure Cognitive Search Service, which determines price tier and capacity limits. */ +/** Defines the SKU of a search service, which determines billing rate and capacity limits. */ export interface Sku { /** The SKU of the search service. Valid values include: 'free': Shared service. 'basic': Dedicated service with up to 3 replicas. 'standard': Dedicated service with up to 12 partitions and 12 replicas. 'standard2': Similar to standard, but with more capacity per search unit. 'standard3': The largest Standard offering with up to 12 partitions and 12 replicas (or up to 3 partitions with more indexes if you also set the hostingMode property to 'highDensity'). 'storage_optimized_l1': Supports 1TB per partition, up to 12 partitions. 'storage_optimized_l2': Supports 2TB per partition, up to 12 partitions.' */ name?: SkuName; } -/** Identity for the resource. */ +/** Details about the search service identity. A null value indicates that the search service has no identity assigned. */ export interface Identity { /** * The principal ID of the system-assigned identity of the search service. @@ -238,14 +366,32 @@ export interface Identity { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly tenantId?: string; - /** The identity type. */ + /** The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an identity created by the system and a set of user assigned identities. The type 'None' will remove all identities from the service. */ type: IdentityType; + /** The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource IDs in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ + userAssignedIdentities?: { + [propertyName: string]: UserAssignedManagedIdentity; + }; +} + +/** The details of the user assigned managed identity assigned to the search service. */ +export interface UserAssignedManagedIdentity { + /** + * The principal ID of user assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The client ID of user assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly clientId?: string; } -/** Response containing a list of Azure Cognitive Search services. */ +/** Response containing a list of Azure AI Search services. */ export interface SearchServiceListResult { /** - * The list of Search services. + * The list of search services. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: SearchService[]; @@ -265,7 +411,7 @@ export interface PrivateLinkResourcesResult { readonly value?: PrivateLinkResource[]; } -/** Describes the properties of a supported private link resource for the Azure Cognitive Search service. For a given API version, this represents the 'supported' groupIds when creating a shared private link resource. */ +/** Describes the properties of a supported private link resource for the Azure AI Search service. For a given API version, this represents the 'supported' groupIds when creating a shared private link resource. */ export interface PrivateLinkResourceProperties { /** * The group ID of the private link resource. @@ -283,49 +429,49 @@ export interface PrivateLinkResourceProperties { */ readonly requiredZoneNames?: string[]; /** - * The list of resources that are onboarded to private link service, that are supported by Azure Cognitive Search. + * The list of resources that are onboarded to private link service, that are supported by Azure AI Search. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly shareablePrivateLinkResourceTypes?: ShareablePrivateLinkResourceType[]; } -/** Describes an resource type that has been onboarded to private link service, supported by Azure Cognitive Search. */ +/** Describes an resource type that has been onboarded to private link service, supported by Azure AI Search. */ export interface ShareablePrivateLinkResourceType { /** - * The name of the resource type that has been onboarded to private link service, supported by Azure Cognitive Search. + * The name of the resource type that has been onboarded to private link service, supported by Azure AI Search. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * Describes the properties of a resource type that has been onboarded to private link service, supported by Azure Cognitive Search. + * Describes the properties of a resource type that has been onboarded to private link service, supported by Azure AI Search. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly properties?: ShareablePrivateLinkResourceProperties; } -/** Describes the properties of a resource type that has been onboarded to private link service, supported by Azure Cognitive Search. */ +/** Describes the properties of a resource type that has been onboarded to private link service, supported by Azure AI Search. */ export interface ShareablePrivateLinkResourceProperties { /** - * The resource provider type for the resource that has been onboarded to private link service, supported by Azure Cognitive Search. + * The resource provider type for the resource that has been onboarded to private link service, supported by Azure AI Search. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: string; /** - * The resource provider group id for the resource that has been onboarded to private link service, supported by Azure Cognitive Search. + * The resource provider group id for the resource that has been onboarded to private link service, supported by Azure AI Search. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly groupId?: string; /** - * The description of the resource type that has been onboarded to private link service, supported by Azure Cognitive Search. + * The description of the resource type that has been onboarded to private link service, supported by Azure AI Search. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly description?: string; } -/** Response containing a list of Private Endpoint connections. */ +/** Response containing a list of private endpoint connections. */ export interface PrivateEndpointConnectionListResult { /** - * The list of Private Endpoint connections. + * The list of private endpoint connections. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: PrivateEndpointConnection[]; @@ -336,10 +482,10 @@ export interface PrivateEndpointConnectionListResult { readonly nextLink?: string; } -/** Response containing a list of Shared Private Link Resources. */ +/** Response containing a list of shared private link resources. */ export interface SharedPrivateLinkResourceListResult { /** - * The list of Shared Private Link Resources. + * The list of shared private link resources. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: SharedPrivateLinkResource[]; @@ -374,10 +520,10 @@ export interface CheckNameAvailabilityOutput { readonly message?: string; } -/** Response containing the quota usage information for all the supported skus of Azure Cognitive Search service. */ +/** Response containing the quota usage information for all the supported SKUs of Azure AI Search. */ export interface QuotaUsagesListResult { /** - * The quota usages for the SKUs supported by Azure Cognitive Search. + * The quota usages for the SKUs supported by Azure AI Search. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly value?: QuotaUsageResult[]; @@ -388,46 +534,119 @@ export interface QuotaUsagesListResult { readonly nextLink?: string; } -/** Describes the quota usage for a particular sku supported by Azure Cognitive Search. */ +/** Describes the quota usage for a particular SKU. */ export interface QuotaUsageResult { - /** The resource id of the quota usage sku endpoint for Microsoft.Search provider. */ + /** The resource ID of the quota usage SKU endpoint for Microsoft.Search provider. */ id?: string; - /** The unit of measurement for the search sku. */ + /** The unit of measurement for the search SKU. */ unit?: string; - /** The currently used up value for the particular search sku. */ + /** The currently used up value for the particular search SKU. */ currentValue?: number; - /** The quota limit for the particular search sku. */ + /** The quota limit for the particular search SKU. */ limit?: number; /** - * The name of the sku supported by Azure Cognitive Search. + * The name of the SKU supported by Azure AI Search. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: QuotaUsageResultName; } -/** The name of the sku supported by Azure Cognitive Search. */ +/** The name of the SKU supported by Azure AI Search. */ export interface QuotaUsageResultName { - /** The sku name supported by Azure Cognitive Search. */ + /** The SKU name supported by Azure AI Search. */ value?: string; - /** The localized string value for the sku supported by Azure Cognitive Search. */ + /** The localized string value for the SKU name. */ localizedValue?: string; } -/** The details of a long running asynchronous shared private link resource operation */ +/** A list of network security perimeter configurations for a server. */ +export interface NetworkSecurityPerimeterConfigurationListResult { + /** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: NetworkSecurityPerimeterConfiguration[]; + /** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** The perimeter for a network security perimeter configuration. */ +export interface NSPConfigPerimeter { + id?: string; + perimeterGuid?: string; + location?: string; +} + +/** The resource association for the network security perimeter. */ +export interface NSPConfigAssociation { + name?: string; + accessMode?: string; +} + +/** The profile for a network security perimeter configuration. */ +export interface NSPConfigProfile { + name?: string; + accessRulesVersion?: string; + accessRules?: NSPConfigAccessRule[]; +} + +/** An access rule for a network security perimeter configuration. */ +export interface NSPConfigAccessRule { + name?: string; + /** The properties for the access rules in a network security perimeter configuration. */ + properties?: NSPConfigAccessRuleProperties; +} + +/** The properties for the access rules in a network security perimeter configuration. */ +export interface NSPConfigAccessRuleProperties { + direction?: string; + addressPrefixes?: string[]; + fullyQualifiedDomainNames?: string[]; + subscriptions?: string[]; + networkSecurityPerimeters?: NSPConfigNetworkSecurityPerimeterRule[]; +} + +/** The network security perimeter properties present in a configuration rule. */ +export interface NSPConfigNetworkSecurityPerimeterRule { + id?: string; + perimeterGuid?: string; + location?: string; +} + +/** An object to describe any issues with provisioning network security perimeters to a search service. */ +export interface NSPProvisioningIssue { + name?: string; + /** The properties to describe any issues with provisioning network security perimeters to a search service. */ + properties?: NSPProvisioningIssueProperties; +} + +/** The properties to describe any issues with provisioning network security perimeters to a search service. */ +export interface NSPProvisioningIssueProperties { + issueType?: string; + severity?: string; + description?: string; + suggestedResourceIds?: string[]; + suggestedAccessRules?: string[]; +} + +/** The details of a long running asynchronous shared private link resource operation. */ export interface AsyncOperationResult { /** The current status of the long running asynchronous shared private link resource operation. */ status?: SharedPrivateLinkResourceAsyncOperationResult; } -/** Describes an existing Private Endpoint connection to the Azure Cognitive Search service. */ +/** Describes an existing private endpoint connection to the Azure AI Search service. */ export interface PrivateEndpointConnection extends Resource { - /** Describes the properties of an existing Private Endpoint connection to the Azure Cognitive Search service. */ + /** Describes the properties of an existing private endpoint connection to the Azure AI Search service. */ properties?: PrivateEndpointConnectionProperties; } -/** Describes a Shared Private Link Resource managed by the Azure Cognitive Search service. */ +/** Describes a shared private link resource managed by the Azure AI Search service. */ export interface SharedPrivateLinkResource extends Resource { - /** Describes the properties of a Shared Private Link Resource managed by the Azure Cognitive Search service. */ + /** Describes the properties of a shared private link resource managed by the Azure AI Search service. */ properties?: SharedPrivateLinkResourceProperties; } @@ -439,15 +658,15 @@ export interface TrackedResource extends Resource { location: string; } -/** The parameters used to update an Azure Cognitive Search service. */ +/** The parameters used to update an Azure AI Search service. */ export interface SearchServiceUpdate extends Resource { - /** The SKU of the Search Service, which determines price tier and capacity limits. This property is required when creating a new Search Service. */ + /** The SKU of the search service, which determines price tier and capacity limits. This property is required when creating a new search service. */ sku?: Sku; - /** The geographic location of the resource. This must be one of the supported and registered Azure Geo Regions (for example, West US, East US, Southeast Asia, and so forth). This property is required when creating a new resource. */ + /** The geographic location of the resource. This must be one of the supported and registered Azure geo regions (for example, West US, East US, Southeast Asia, and so forth). This property is required when creating a new resource. */ location?: string; /** Tags to help categorize the resource in the Azure portal. */ tags?: { [propertyName: string]: string }; - /** The identity of the resource. */ + /** Details about the search service identity. A null value indicates that the search service has no identity assigned. */ identity?: Identity; /** The number of replicas in the search service. If specified, it must be a value between 1 and 12 inclusive for standard SKUs or between 1 and 3 inclusive for basic SKU. */ replicaCount?: number; @@ -458,7 +677,7 @@ export interface SearchServiceUpdate extends Resource { /** This value can be set to 'enabled' to avoid breaking changes on existing customer resources and templates. If set to 'disabled', traffic over public interface is not allowed, and private endpoint connections would be the exclusive access method. */ publicNetworkAccess?: PublicNetworkAccess; /** - * The status of the search service. Possible values include: 'running': The search service is running and no provisioning operations are underway. 'provisioning': The search service is being provisioned or scaled up or down. 'deleting': The search service is being deleted. 'degraded': The search service is degraded. This can occur when the underlying search units are not healthy. The search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The search service is disabled. In this state, the service will reject all API requests. 'error': The search service is in an error state. If your service is in the degraded, disabled, or error states, it means the Azure Cognitive Search team is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. + * The status of the search service. Possible values include: 'running': The search service is running and no provisioning operations are underway. 'provisioning': The search service is being provisioned or scaled up or down. 'deleting': The search service is being deleted. 'degraded': The search service is degraded. This can occur when the underlying search units are not healthy. The search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The search service is disabled. In this state, the service will reject all API requests. 'error': The search service is in an error state. 'stopped': The search service is in a subscription that's disabled. If your service is in the degraded, disabled, or error states, it means the Azure AI Search team is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: SearchServiceStatus; @@ -472,40 +691,50 @@ export interface SearchServiceUpdate extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; - /** Network specific rules that determine how the Azure Cognitive Search service may be reached. */ + /** Network specific rules that determine how the Azure AI Search service may be reached. */ networkRuleSet?: NetworkRuleSet; + /** A list of data exfiltration scenarios that are explicitly disallowed for the search service. Currently, the only supported value is 'All' to disable all possible data export scenarios with more fine grained controls planned for the future. */ + disabledDataExfiltrationOptions?: SearchDisabledDataExfiltrationOption[]; /** Specifies any policy regarding encryption of resources (such as indexes) using customer manager keys within a search service. */ encryptionWithCmk?: EncryptionWithCmk; /** When set to true, calls to the search service will not be permitted to utilize API keys for authentication. This cannot be set to true if 'dataPlaneAuthOptions' are defined. */ disableLocalAuth?: boolean; /** Defines the options for how the data plane API of a search service authenticates requests. This cannot be set if 'disableLocalAuth' is set to true. */ authOptions?: DataPlaneAuthOptions; + /** Sets options that control the availability of semantic search. This configuration is only possible for certain Azure AI Search SKUs in certain locations. */ + semanticSearch?: SearchSemanticSearch; /** - * The list of private endpoint connections to the Azure Cognitive Search service. + * The list of private endpoint connections to the Azure AI Search service. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly privateEndpointConnections?: PrivateEndpointConnection[]; - /** Sets options that control the availability of semantic search. This configuration is only possible for certain Azure Cognitive Search SKUs in certain locations. */ - semanticSearch?: SearchSemanticSearch; /** - * The list of shared private link resources managed by the Azure Cognitive Search service. + * The list of shared private link resources managed by the Azure AI Search service. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly sharedPrivateLinkResources?: SharedPrivateLinkResource[]; + /** + * A system generated property representing the service's etag that can be for optimistic concurrency control during updates. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly eTag?: string; } -/** Describes a supported private link resource for the Azure Cognitive Search service. */ +/** Describes a supported private link resource for the Azure AI Search service. */ export interface PrivateLinkResource extends Resource { /** - * Describes the properties of a supported private link resource for the Azure Cognitive Search service. + * Describes the properties of a supported private link resource for the Azure AI Search service. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly properties?: PrivateLinkResourceProperties; } -/** Describes an Azure Cognitive Search service and its current state. */ +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends Resource {} + +/** Describes an Azure AI Search service and its current state. */ export interface SearchService extends TrackedResource { - /** The SKU of the Search Service, which determines price tier and capacity limits. This property is required when creating a new Search Service. */ + /** The SKU of the search service, which determines price tier and capacity limits. This property is required when creating a new search service. */ sku?: Sku; /** The identity of the resource. */ identity?: Identity; @@ -518,7 +747,7 @@ export interface SearchService extends TrackedResource { /** This value can be set to 'enabled' to avoid breaking changes on existing customer resources and templates. If set to 'disabled', traffic over public interface is not allowed, and private endpoint connections would be the exclusive access method. */ publicNetworkAccess?: PublicNetworkAccess; /** - * The status of the search service. Possible values include: 'running': The search service is running and no provisioning operations are underway. 'provisioning': The search service is being provisioned or scaled up or down. 'deleting': The search service is being deleted. 'degraded': The search service is degraded. This can occur when the underlying search units are not healthy. The search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The search service is disabled. In this state, the service will reject all API requests. 'error': The search service is in an error state. If your service is in the degraded, disabled, or error states, it means the Azure Cognitive Search team is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. + * The status of the search service. Possible values include: 'running': The search service is running and no provisioning operations are underway. 'provisioning': The search service is being provisioned or scaled up or down. 'deleting': The search service is being deleted. 'degraded': The search service is degraded. This can occur when the underlying search units are not healthy. The search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The search service is disabled. In this state, the service will reject all API requests. 'error': The search service is in an error state. 'stopped': The search service is in a subscription that's disabled. If your service is in the degraded, disabled, or error states, it means the Azure AI Search team is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: SearchServiceStatus; @@ -532,26 +761,51 @@ export interface SearchService extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; - /** Network specific rules that determine how the Azure Cognitive Search service may be reached. */ + /** Network specific rules that determine how the Azure AI Search service may be reached. */ networkRuleSet?: NetworkRuleSet; + /** A list of data exfiltration scenarios that are explicitly disallowed for the search service. Currently, the only supported value is 'All' to disable all possible data export scenarios with more fine grained controls planned for the future. */ + disabledDataExfiltrationOptions?: SearchDisabledDataExfiltrationOption[]; /** Specifies any policy regarding encryption of resources (such as indexes) using customer manager keys within a search service. */ encryptionWithCmk?: EncryptionWithCmk; /** When set to true, calls to the search service will not be permitted to utilize API keys for authentication. This cannot be set to true if 'dataPlaneAuthOptions' are defined. */ disableLocalAuth?: boolean; /** Defines the options for how the data plane API of a search service authenticates requests. This cannot be set if 'disableLocalAuth' is set to true. */ authOptions?: DataPlaneAuthOptions; + /** Sets options that control the availability of semantic search. This configuration is only possible for certain Azure AI Search SKUs in certain locations. */ + semanticSearch?: SearchSemanticSearch; /** - * The list of private endpoint connections to the Azure Cognitive Search service. + * The list of private endpoint connections to the Azure AI Search service. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly privateEndpointConnections?: PrivateEndpointConnection[]; - /** Sets options that control the availability of semantic search. This configuration is only possible for certain Azure Cognitive Search SKUs in certain locations. */ - semanticSearch?: SearchSemanticSearch; /** - * The list of shared private link resources managed by the Azure Cognitive Search service. + * The list of shared private link resources managed by the Azure AI Search service. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly sharedPrivateLinkResources?: SharedPrivateLinkResource[]; + /** + * A system generated property representing the service's etag that can be for optimistic concurrency control during updates. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly eTag?: string; +} + +/** Network security perimeter configuration for a server. */ +export interface NetworkSecurityPerimeterConfiguration extends ProxyResource { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly provisioningState?: string; + /** The perimeter for a network security perimeter configuration. */ + networkSecurityPerimeter?: NSPConfigPerimeter; + /** The resource association for the network security perimeter. */ + resourceAssociation?: NSPConfigAssociation; + /** The profile for a network security perimeter configuration. */ + profile?: NSPConfigProfile; + provisioningIssues?: NSPProvisioningIssue[]; +} + +/** Defines headers for NetworkSecurityPerimeterConfigurations_reconcile operation. */ +export interface NetworkSecurityPerimeterConfigurationsReconcileHeaders { + location?: string; } /** Parameter group */ @@ -560,6 +814,78 @@ export interface SearchManagementRequestOptions { clientRequestId?: string; } +/** Known values of {@link PublicNetworkAccess} that the service accepts. */ +export enum KnownPublicNetworkAccess { + /** The search service is accessible from traffic originating from the public internet. */ + Enabled = "enabled", + /** The search service is not accessible from traffic originating from the public internet. Access is only permitted over approved private endpoint connections. */ + Disabled = "disabled", +} + +/** + * Defines values for PublicNetworkAccess. \ + * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **enabled**: The search service is accessible from traffic originating from the public internet. \ + * **disabled**: The search service is not accessible from traffic originating from the public internet. Access is only permitted over approved private endpoint connections. + */ +export type PublicNetworkAccess = string; + +/** Known values of {@link SearchBypass} that the service accepts. */ +export enum KnownSearchBypass { + /** Indicates that no origin can bypass the rules defined in the 'ipRules' section. This is the default. */ + None = "None", + /** Indicates that requests originating from the Azure portal can bypass the rules defined in the 'ipRules' section. */ + AzurePortal = "AzurePortal", +} + +/** + * Defines values for SearchBypass. \ + * {@link KnownSearchBypass} can be used interchangeably with SearchBypass, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: Indicates that no origin can bypass the rules defined in the 'ipRules' section. This is the default. \ + * **AzurePortal**: Indicates that requests originating from the Azure portal can bypass the rules defined in the 'ipRules' section. + */ +export type SearchBypass = string; + +/** Known values of {@link SearchDisabledDataExfiltrationOption} that the service accepts. */ +export enum KnownSearchDisabledDataExfiltrationOption { + /** Indicates that all data exfiltration scenarios are disabled. */ + All = "All", +} + +/** + * Defines values for SearchDisabledDataExfiltrationOption. \ + * {@link KnownSearchDisabledDataExfiltrationOption} can be used interchangeably with SearchDisabledDataExfiltrationOption, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **All**: Indicates that all data exfiltration scenarios are disabled. + */ +export type SearchDisabledDataExfiltrationOption = string; + +/** Known values of {@link SearchSemanticSearch} that the service accepts. */ +export enum KnownSearchSemanticSearch { + /** Indicates that semantic reranker is disabled for the search service. This is the default. */ + Disabled = "disabled", + /** Enables semantic reranker on a search service and indicates that it is to be used within the limits of the free plan. The free plan would cap the volume of semantic ranking requests and is offered at no extra charge. This is the default for newly provisioned search services. */ + Free = "free", + /** Enables semantic reranker on a search service as a billable feature, with higher throughput and volume of semantically reranked queries. */ + Standard = "standard", +} + +/** + * Defines values for SearchSemanticSearch. \ + * {@link KnownSearchSemanticSearch} can be used interchangeably with SearchSemanticSearch, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **disabled**: Indicates that semantic reranker is disabled for the search service. This is the default. \ + * **free**: Enables semantic reranker on a search service and indicates that it is to be used within the limits of the free plan. The free plan would cap the volume of semantic ranking requests and is offered at no extra charge. This is the default for newly provisioned search services. \ + * **standard**: Enables semantic reranker on a search service as a billable feature, with higher throughput and volume of semantically reranked queries. + */ +export type SearchSemanticSearch = string; + /** Known values of {@link PrivateLinkServiceConnectionProvisioningState} that the service accepts. */ export enum KnownPrivateLinkServiceConnectionProvisioningState { /** The private link service connection is in the process of being created along with other resources for it to be fully functional. */ @@ -572,8 +898,8 @@ export enum KnownPrivateLinkServiceConnectionProvisioningState { Succeeded = "Succeeded", /** Provisioning request for the private link service connection resource has been accepted but the process of creation has not commenced yet. */ Incomplete = "Incomplete", - /** Provisioning request for the private link service connection resource has been canceled */ - Canceled = "Canceled" + /** Provisioning request for the private link service connection resource has been canceled. */ + Canceled = "Canceled", } /** @@ -586,37 +912,124 @@ export enum KnownPrivateLinkServiceConnectionProvisioningState { * **Failed**: The private link service connection has failed to be provisioned or deleted. \ * **Succeeded**: The private link service connection has finished provisioning and is ready for approval. \ * **Incomplete**: Provisioning request for the private link service connection resource has been accepted but the process of creation has not commenced yet. \ - * **Canceled**: Provisioning request for the private link service connection resource has been canceled + * **Canceled**: Provisioning request for the private link service connection resource has been canceled. */ export type PrivateLinkServiceConnectionProvisioningState = string; -/** Known values of {@link SearchSemanticSearch} that the service accepts. */ -export enum KnownSearchSemanticSearch { - /** Indicates that semantic search is disabled for the search service. */ - Disabled = "disabled", - /** Enables semantic search on a search service and indicates that it is to be used within the limits of the free tier. This would cap the volume of semantic search requests and is offered at no extra charge. This is the default for newly provisioned search services. */ +/** Known values of {@link SharedPrivateLinkResourceStatus} that the service accepts. */ +export enum KnownSharedPrivateLinkResourceStatus { + /** The shared private link resource has been created and is pending approval. */ + Pending = "Pending", + /** The shared private link resource is approved and is ready for use. */ + Approved = "Approved", + /** The shared private link resource has been rejected and cannot be used. */ + Rejected = "Rejected", + /** The shared private link resource has been removed from the service. */ + Disconnected = "Disconnected", +} + +/** + * Defines values for SharedPrivateLinkResourceStatus. \ + * {@link KnownSharedPrivateLinkResourceStatus} can be used interchangeably with SharedPrivateLinkResourceStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Pending**: The shared private link resource has been created and is pending approval. \ + * **Approved**: The shared private link resource is approved and is ready for use. \ + * **Rejected**: The shared private link resource has been rejected and cannot be used. \ + * **Disconnected**: The shared private link resource has been removed from the service. + */ +export type SharedPrivateLinkResourceStatus = string; + +/** Known values of {@link SharedPrivateLinkResourceProvisioningState} that the service accepts. */ +export enum KnownSharedPrivateLinkResourceProvisioningState { + /** The shared private link resource is in the process of being created along with other resources for it to be fully functional. */ + Updating = "Updating", + /** The shared private link resource is in the process of being deleted. */ + Deleting = "Deleting", + /** The shared private link resource has failed to be provisioned or deleted. */ + Failed = "Failed", + /** The shared private link resource has finished provisioning and is ready for approval. */ + Succeeded = "Succeeded", + /** Provisioning request for the shared private link resource has been accepted but the process of creation has not commenced yet. */ + Incomplete = "Incomplete", +} + +/** + * Defines values for SharedPrivateLinkResourceProvisioningState. \ + * {@link KnownSharedPrivateLinkResourceProvisioningState} can be used interchangeably with SharedPrivateLinkResourceProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Updating**: The shared private link resource is in the process of being created along with other resources for it to be fully functional. \ + * **Deleting**: The shared private link resource is in the process of being deleted. \ + * **Failed**: The shared private link resource has failed to be provisioned or deleted. \ + * **Succeeded**: The shared private link resource has finished provisioning and is ready for approval. \ + * **Incomplete**: Provisioning request for the shared private link resource has been accepted but the process of creation has not commenced yet. + */ +export type SharedPrivateLinkResourceProvisioningState = string; + +/** Known values of {@link SkuName} that the service accepts. */ +export enum KnownSkuName { + /** Free tier, with no SLA guarantees and a subset of the features offered on billable tiers. */ Free = "free", - /** Enables semantic search on a search service as a billable feature, with higher throughput and volume of semantic search queries. */ - Standard = "standard" + /** Billable tier for a dedicated service having up to 3 replicas. */ + Basic = "basic", + /** Billable tier for a dedicated service having up to 12 partitions and 12 replicas. */ + Standard = "standard", + /** Similar to 'standard', but with more capacity per search unit. */ + Standard2 = "standard2", + /** The largest Standard offering with up to 12 partitions and 12 replicas (or up to 3 partitions with more indexes if you also set the hostingMode property to 'highDensity'). */ + Standard3 = "standard3", + /** Billable tier for a dedicated service that supports 1TB per partition, up to 12 partitions. */ + StorageOptimizedL1 = "storage_optimized_l1", + /** Billable tier for a dedicated service that supports 2TB per partition, up to 12 partitions. */ + StorageOptimizedL2 = "storage_optimized_l2", } /** - * Defines values for SearchSemanticSearch. \ - * {@link KnownSearchSemanticSearch} can be used interchangeably with SearchSemanticSearch, + * Defines values for SkuName. \ + * {@link KnownSkuName} can be used interchangeably with SkuName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **disabled**: Indicates that semantic search is disabled for the search service. \ - * **free**: Enables semantic search on a search service and indicates that it is to be used within the limits of the free tier. This would cap the volume of semantic search requests and is offered at no extra charge. This is the default for newly provisioned search services. \ - * **standard**: Enables semantic search on a search service as a billable feature, with higher throughput and volume of semantic search queries. + * **free**: Free tier, with no SLA guarantees and a subset of the features offered on billable tiers. \ + * **basic**: Billable tier for a dedicated service having up to 3 replicas. \ + * **standard**: Billable tier for a dedicated service having up to 12 partitions and 12 replicas. \ + * **standard2**: Similar to 'standard', but with more capacity per search unit. \ + * **standard3**: The largest Standard offering with up to 12 partitions and 12 replicas (or up to 3 partitions with more indexes if you also set the hostingMode property to 'highDensity'). \ + * **storage_optimized_l1**: Billable tier for a dedicated service that supports 1TB per partition, up to 12 partitions. \ + * **storage_optimized_l2**: Billable tier for a dedicated service that supports 2TB per partition, up to 12 partitions. */ -export type SearchSemanticSearch = string; +export type SkuName = string; + +/** Known values of {@link IdentityType} that the service accepts. */ +export enum KnownIdentityType { + /** Indicates that any identity associated with the search service needs to be removed. */ + None = "None", + /** Indicates that system-assigned identity for the search service will be enabled. */ + SystemAssigned = "SystemAssigned", + /** Indicates that one or more user assigned identities will be assigned to the search service. */ + UserAssigned = "UserAssigned", + /** Indicates that system-assigned identity for the search service will be enabled along with the assignment of one or more user assigned identities. */ + SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", +} + +/** + * Defines values for IdentityType. \ + * {@link KnownIdentityType} can be used interchangeably with IdentityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: Indicates that any identity associated with the search service needs to be removed. \ + * **SystemAssigned**: Indicates that system-assigned identity for the search service will be enabled. \ + * **UserAssigned**: Indicates that one or more user assigned identities will be assigned to the search service. \ + * **SystemAssigned, UserAssigned**: Indicates that system-assigned identity for the search service will be enabled along with the assignment of one or more user assigned identities. + */ +export type IdentityType = string; /** Known values of {@link UnavailableNameReason} that the service accepts. */ export enum KnownUnavailableNameReason { - /** The search service name does not match naming requirements. */ + /** The search service name doesn't match naming requirements. */ Invalid = "Invalid", /** The search service name is already assigned to a different search service. */ - AlreadyExists = "AlreadyExists" + AlreadyExists = "AlreadyExists", } /** @@ -624,7 +1037,7 @@ export enum KnownUnavailableNameReason { * {@link KnownUnavailableNameReason} can be used interchangeably with UnavailableNameReason, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Invalid**: The search service name does not match naming requirements. \ + * **Invalid**: The search service name doesn't match naming requirements. \ * **AlreadyExists**: The search service name is already assigned to a different search service. */ export type UnavailableNameReason = string; @@ -636,7 +1049,7 @@ export enum KnownSharedPrivateLinkResourceAsyncOperationResult { /** Succeeded */ Succeeded = "Succeeded", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -653,8 +1066,6 @@ export type SharedPrivateLinkResourceAsyncOperationResult = string; export type AdminKeyKind = "primary" | "secondary"; /** Defines values for HostingMode. */ export type HostingMode = "default" | "highDensity"; -/** Defines values for PublicNetworkAccess. */ -export type PublicNetworkAccess = "enabled" | "disabled"; /** Defines values for SearchServiceStatus. */ export type SearchServiceStatus = | "running" @@ -662,7 +1073,8 @@ export type SearchServiceStatus = | "deleting" | "degraded" | "disabled" - | "error"; + | "error" + | "stopped"; /** Defines values for ProvisioningState. */ export type ProvisioningState = "succeeded" | "provisioning" | "failed"; /** Defines values for SearchEncryptionWithCmk. */ @@ -677,30 +1089,6 @@ export type PrivateLinkServiceConnectionStatus = | "Approved" | "Rejected" | "Disconnected"; -/** Defines values for SharedPrivateLinkResourceStatus. */ -export type SharedPrivateLinkResourceStatus = - | "Pending" - | "Approved" - | "Rejected" - | "Disconnected"; -/** Defines values for SharedPrivateLinkResourceProvisioningState. */ -export type SharedPrivateLinkResourceProvisioningState = - | "Updating" - | "Deleting" - | "Failed" - | "Succeeded" - | "Incomplete"; -/** Defines values for SkuName. */ -export type SkuName = - | "free" - | "basic" - | "standard" - | "standard2" - | "standard3" - | "storage_optimized_l1" - | "storage_optimized_l2"; -/** Defines values for IdentityType. */ -export type IdentityType = "None" | "SystemAssigned"; /** Optional parameters. */ export interface OperationsListOptionalParams @@ -864,7 +1252,8 @@ export interface PrivateLinkResourcesListSupportedOptionalParams } /** Contains response data for the listSupported operation. */ -export type PrivateLinkResourcesListSupportedResponse = PrivateLinkResourcesResult; +export type PrivateLinkResourcesListSupportedResponse = + PrivateLinkResourcesResult; /** Optional parameters. */ export interface PrivateEndpointConnectionsUpdateOptionalParams @@ -874,7 +1263,8 @@ export interface PrivateEndpointConnectionsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type PrivateEndpointConnectionsUpdateResponse = PrivateEndpointConnection; +export type PrivateEndpointConnectionsUpdateResponse = + PrivateEndpointConnection; /** Optional parameters. */ export interface PrivateEndpointConnectionsGetOptionalParams @@ -894,7 +1284,8 @@ export interface PrivateEndpointConnectionsDeleteOptionalParams } /** Contains response data for the delete operation. */ -export type PrivateEndpointConnectionsDeleteResponse = PrivateEndpointConnection; +export type PrivateEndpointConnectionsDeleteResponse = + PrivateEndpointConnection; /** Optional parameters. */ export interface PrivateEndpointConnectionsListByServiceOptionalParams @@ -904,7 +1295,8 @@ export interface PrivateEndpointConnectionsListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type PrivateEndpointConnectionsListByServiceResponse = PrivateEndpointConnectionListResult; +export type PrivateEndpointConnectionsListByServiceResponse = + PrivateEndpointConnectionListResult; /** Optional parameters. */ export interface PrivateEndpointConnectionsListByServiceNextOptionalParams @@ -914,7 +1306,8 @@ export interface PrivateEndpointConnectionsListByServiceNextOptionalParams } /** Contains response data for the listByServiceNext operation. */ -export type PrivateEndpointConnectionsListByServiceNextResponse = PrivateEndpointConnectionListResult; +export type PrivateEndpointConnectionsListByServiceNextResponse = + PrivateEndpointConnectionListResult; /** Optional parameters. */ export interface SharedPrivateLinkResourcesCreateOrUpdateOptionalParams @@ -928,7 +1321,8 @@ export interface SharedPrivateLinkResourcesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type SharedPrivateLinkResourcesCreateOrUpdateResponse = SharedPrivateLinkResource; +export type SharedPrivateLinkResourcesCreateOrUpdateResponse = + SharedPrivateLinkResource; /** Optional parameters. */ export interface SharedPrivateLinkResourcesGetOptionalParams @@ -959,7 +1353,8 @@ export interface SharedPrivateLinkResourcesListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type SharedPrivateLinkResourcesListByServiceResponse = SharedPrivateLinkResourceListResult; +export type SharedPrivateLinkResourcesListByServiceResponse = + SharedPrivateLinkResourceListResult; /** Optional parameters. */ export interface SharedPrivateLinkResourcesListByServiceNextOptionalParams @@ -969,7 +1364,8 @@ export interface SharedPrivateLinkResourcesListByServiceNextOptionalParams } /** Contains response data for the listByServiceNext operation. */ -export type SharedPrivateLinkResourcesListByServiceNextResponse = SharedPrivateLinkResourceListResult; +export type SharedPrivateLinkResourcesListByServiceNextResponse = + SharedPrivateLinkResourceListResult; /** Optional parameters. */ export interface UsagesListBySubscriptionOptionalParams @@ -1001,6 +1397,43 @@ export interface UsageBySubscriptionSkuOptionalParams /** Contains response data for the usageBySubscriptionSku operation. */ export type UsageBySubscriptionSkuResponse = QuotaUsageResult; +/** Optional parameters. */ +export interface NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByService operation. */ +export type NetworkSecurityPerimeterConfigurationsListByServiceResponse = + NetworkSecurityPerimeterConfigurationListResult; + +/** Optional parameters. */ +export interface NetworkSecurityPerimeterConfigurationsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type NetworkSecurityPerimeterConfigurationsGetResponse = + NetworkSecurityPerimeterConfiguration; + +/** Optional parameters. */ +export interface NetworkSecurityPerimeterConfigurationsReconcileOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the reconcile operation. */ +export type NetworkSecurityPerimeterConfigurationsReconcileResponse = + NetworkSecurityPerimeterConfigurationsReconcileHeaders; + +/** Optional parameters. */ +export interface NetworkSecurityPerimeterConfigurationsListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type NetworkSecurityPerimeterConfigurationsListByServiceNextResponse = + NetworkSecurityPerimeterConfigurationListResult; + /** Optional parameters. */ export interface SearchManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/search/arm-search/src/models/mappers.ts b/sdk/search/arm-search/src/models/mappers.ts index 0c50cefe47f2..8210568d8670 100644 --- a/sdk/search/arm-search/src/models/mappers.ts +++ b/sdk/search/arm-search/src/models/mappers.ts @@ -21,20 +21,20 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } + className: "Operation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -46,18 +46,40 @@ export const Operation: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } - } - } - } + className: "OperationDisplay", + }, + }, + isDataAction: { + serializedName: "isDataAction", + readOnly: true, + nullable: true, + type: { + name: "Boolean", + }, + }, + origin: { + serializedName: "origin", + readOnly: true, + type: { + name: "String", + }, + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "OperationProperties", + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -69,32 +91,229 @@ export const OperationDisplay: coreClient.CompositeMapper = { serializedName: "provider", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const OperationProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationProperties", + modelProperties: { + serviceSpecification: { + serializedName: "serviceSpecification", + type: { + name: "Composite", + className: "OperationServiceSpecification", + }, + }, + }, + }, +}; + +export const OperationServiceSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationServiceSpecification", + modelProperties: { + metricSpecifications: { + serializedName: "metricSpecifications", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationMetricsSpecification", + }, + }, + }, + }, + logSpecifications: { + serializedName: "logSpecifications", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationLogsSpecification", + }, + }, + }, + }, + }, + }, +}; + +export const OperationMetricsSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationMetricsSpecification", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + displayName: { + serializedName: "displayName", + readOnly: true, + type: { + name: "String", + }, + }, + displayDescription: { + serializedName: "displayDescription", + readOnly: true, + type: { + name: "String", + }, + }, + unit: { + serializedName: "unit", + readOnly: true, + type: { + name: "String", + }, + }, + aggregationType: { + serializedName: "aggregationType", + readOnly: true, + type: { + name: "String", + }, + }, + dimensions: { + serializedName: "dimensions", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationMetricDimension", + }, + }, + }, + }, + availabilities: { + serializedName: "availabilities", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationAvailability", + }, + }, + }, + }, + }, + }, +}; + +export const OperationMetricDimension: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationMetricDimension", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + displayName: { + serializedName: "displayName", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const OperationAvailability: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationAvailability", + modelProperties: { + timeGrain: { + serializedName: "timeGrain", + readOnly: true, + type: { + name: "String", + }, + }, + blobDuration: { + serializedName: "blobDuration", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const OperationLogsSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationLogsSpecification", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + displayName: { + serializedName: "displayName", + readOnly: true, + type: { + name: "String", + }, + }, + blobDuration: { + serializedName: "blobDuration", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, }; export const CloudError: coreClient.CompositeMapper = { @@ -106,11 +325,17 @@ export const CloudError: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "CloudErrorBody" - } - } - } - } + className: "CloudErrorBody", + }, + }, + message: { + serializedName: "message", + type: { + name: "String", + }, + }, + }, + }, }; export const CloudErrorBody: coreClient.CompositeMapper = { @@ -121,20 +346,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", @@ -143,13 +368,13 @@ export const CloudErrorBody: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudErrorBody" - } - } - } - } - } - } + className: "CloudErrorBody", + }, + }, + }, + }, + }, + }, }; export const AdminKeyResult: coreClient.CompositeMapper = { @@ -161,18 +386,18 @@ export const AdminKeyResult: coreClient.CompositeMapper = { serializedName: "primaryKey", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, secondaryKey: { serializedName: "secondaryKey", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const QueryKey: coreClient.CompositeMapper = { @@ -184,18 +409,18 @@ export const QueryKey: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, key: { serializedName: "key", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ListQueryKeysResult: coreClient.CompositeMapper = { @@ -211,20 +436,20 @@ export const ListQueryKeysResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "QueryKey" - } - } - } + className: "QueryKey", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NetworkRuleSet: coreClient.CompositeMapper = { @@ -239,13 +464,19 @@ export const NetworkRuleSet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IpRule" - } - } - } - } - } - } + className: "IpRule", + }, + }, + }, + }, + bypass: { + serializedName: "bypass", + type: { + name: "String", + }, + }, + }, + }, }; export const IpRule: coreClient.CompositeMapper = { @@ -256,11 +487,11 @@ export const IpRule: coreClient.CompositeMapper = { value: { serializedName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EncryptionWithCmk: coreClient.CompositeMapper = { @@ -272,19 +503,19 @@ export const EncryptionWithCmk: coreClient.CompositeMapper = { serializedName: "enforcement", type: { name: "Enum", - allowedValues: ["Disabled", "Enabled", "Unspecified"] - } + allowedValues: ["Disabled", "Enabled", "Unspecified"], + }, }, encryptionComplianceStatus: { serializedName: "encryptionComplianceStatus", readOnly: true, type: { name: "Enum", - allowedValues: ["Compliant", "NonCompliant"] - } - } - } - } + allowedValues: ["Compliant", "NonCompliant"], + }, + }, + }, + }, }; export const DataPlaneAuthOptions: coreClient.CompositeMapper = { @@ -296,18 +527,18 @@ export const DataPlaneAuthOptions: coreClient.CompositeMapper = { serializedName: "apiKeyOnly", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, aadOrApiKey: { serializedName: "aadOrApiKey", type: { name: "Composite", - className: "DataPlaneAadOrApiKeyAuthOption" - } - } - } - } + className: "DataPlaneAadOrApiKeyAuthOption", + }, + }, + }, + }, }; export const DataPlaneAadOrApiKeyAuthOption: coreClient.CompositeMapper = { @@ -319,11 +550,11 @@ export const DataPlaneAadOrApiKeyAuthOption: coreClient.CompositeMapper = { serializedName: "aadAuthFailureMode", type: { name: "Enum", - allowedValues: ["http403", "http401WithBearerChallenge"] - } - } - } - } + allowedValues: ["http403", "http401WithBearerChallenge"], + }, + }, + }, + }, }; export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { @@ -335,77 +566,79 @@ export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { serializedName: "privateEndpoint", type: { name: "Composite", - className: "PrivateEndpointConnectionPropertiesPrivateEndpoint" - } + className: "PrivateEndpointConnectionPropertiesPrivateEndpoint", + }, }, privateLinkServiceConnectionState: { serializedName: "privateLinkServiceConnectionState", type: { name: "Composite", className: - "PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState" - } + "PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState", + }, }, groupId: { serializedName: "groupId", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", type: { - name: "String" - } - } - } - } -}; - -export const PrivateEndpointConnectionPropertiesPrivateEndpoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnectionPropertiesPrivateEndpoint", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: - "PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState", - modelProperties: { - status: { - serializedName: "status", - type: { - name: "Enum", - allowedValues: ["Pending", "Approved", "Rejected", "Disconnected"] - } +export const PrivateEndpointConnectionPropertiesPrivateEndpoint: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PrivateEndpointConnectionPropertiesPrivateEndpoint", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, }, - description: { - serializedName: "description", - type: { - name: "String" - } + }, + }; + +export const PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: + "PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "Enum", + allowedValues: ["Pending", "Approved", "Rejected", "Disconnected"], + }, + }, + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + actionsRequired: { + defaultValue: "None", + serializedName: "actionsRequired", + type: { + name: "String", + }, + }, }, - actionsRequired: { - defaultValue: "None", - serializedName: "actionsRequired", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const Resource: coreClient.CompositeMapper = { type: { @@ -416,25 +649,25 @@ 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", + }, + }, + }, + }, }; export const SharedPrivateLinkResourceProperties: coreClient.CompositeMapper = { @@ -445,49 +678,41 @@ export const SharedPrivateLinkResourceProperties: coreClient.CompositeMapper = { privateLinkResourceId: { serializedName: "privateLinkResourceId", type: { - name: "String" - } + name: "String", + }, }, groupId: { serializedName: "groupId", type: { - name: "String" - } + name: "String", + }, }, requestMessage: { serializedName: "requestMessage", type: { - name: "String" - } + name: "String", + }, }, resourceRegion: { serializedName: "resourceRegion", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", type: { - name: "Enum", - allowedValues: ["Pending", "Approved", "Rejected", "Disconnected"] - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", type: { - name: "Enum", - allowedValues: [ - "Updating", - "Deleting", - "Failed", - "Succeeded", - "Incomplete" - ] - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Sku: coreClient.CompositeMapper = { @@ -498,20 +723,11 @@ export const Sku: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "Enum", - allowedValues: [ - "free", - "basic", - "standard", - "standard2", - "standard3", - "storage_optimized_l1", - "storage_optimized_l2" - ] - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Identity: coreClient.CompositeMapper = { @@ -523,26 +739,60 @@ export const Identity: 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: ["None", "SystemAssigned"] - } - } - } - } + name: "String", + }, + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "UserAssignedManagedIdentity", + }, + }, + }, + }, + }, + }, +}; + +export const UserAssignedManagedIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserAssignedManagedIdentity", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "String", + }, + }, + clientId: { + serializedName: "clientId", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, }; export const SearchServiceListResult: coreClient.CompositeMapper = { @@ -558,20 +808,20 @@ export const SearchServiceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchService" - } - } - } + className: "SearchService", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkResourcesResult: coreClient.CompositeMapper = { @@ -587,13 +837,13 @@ export const PrivateLinkResourcesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" - } - } - } - } - } - } + className: "PrivateLinkResource", + }, + }, + }, + }, + }, + }, }; export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { @@ -605,8 +855,8 @@ export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { serializedName: "groupId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, requiredMembers: { serializedName: "requiredMembers", @@ -615,10 +865,10 @@ export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, requiredZoneNames: { serializedName: "requiredZoneNames", @@ -627,10 +877,10 @@ export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, shareablePrivateLinkResourceTypes: { serializedName: "shareablePrivateLinkResourceTypes", @@ -640,267 +890,560 @@ export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ShareablePrivateLinkResourceType" - } - } - } - } - } - } + className: "ShareablePrivateLinkResourceType", + }, + }, + }, + }, + }, + }, +}; + +export const ShareablePrivateLinkResourceType: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ShareablePrivateLinkResourceType", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ShareablePrivateLinkResourceProperties", + }, + }, + }, + }, +}; + +export const ShareablePrivateLinkResourceProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ShareablePrivateLinkResourceProperties", + modelProperties: { + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + groupId: { + serializedName: "groupId", + readOnly: true, + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const SharedPrivateLinkResourceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SharedPrivateLinkResourceListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedPrivateLinkResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const CheckNameAvailabilityInput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CheckNameAvailabilityInput", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + typeParam: { + defaultValue: "searchServices", + isConstant: true, + serializedName: "type", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const CheckNameAvailabilityOutput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CheckNameAvailabilityOutput", + modelProperties: { + isNameAvailable: { + serializedName: "nameAvailable", + readOnly: true, + type: { + name: "Boolean", + }, + }, + reason: { + serializedName: "reason", + readOnly: true, + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const QuotaUsagesListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QuotaUsagesListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QuotaUsageResult", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const QuotaUsageResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QuotaUsageResult", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + unit: { + serializedName: "unit", + type: { + name: "String", + }, + }, + currentValue: { + serializedName: "currentValue", + type: { + name: "Number", + }, + }, + limit: { + serializedName: "limit", + type: { + name: "Number", + }, + }, + name: { + serializedName: "name", + type: { + name: "Composite", + className: "QuotaUsageResultName", + }, + }, + }, + }, +}; + +export const QuotaUsageResultName: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QuotaUsageResultName", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "String", + }, + }, + localizedValue: { + serializedName: "localizedValue", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const NetworkSecurityPerimeterConfigurationListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfigurationListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfiguration", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const NSPConfigPerimeter: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPConfigPerimeter", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + perimeterGuid: { + serializedName: "perimeterGuid", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const NSPConfigAssociation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPConfigAssociation", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + accessMode: { + serializedName: "accessMode", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const NSPConfigProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NSPConfigProfile", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + accessRulesVersion: { + serializedName: "accessRulesVersion", + type: { + name: "String", + }, + }, + accessRules: { + serializedName: "accessRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NSPConfigAccessRule", + }, + }, + }, + }, + }, + }, }; -export const ShareablePrivateLinkResourceType: coreClient.CompositeMapper = { +export const NSPConfigAccessRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ShareablePrivateLinkResourceType", + className: "NSPConfigAccessRule", modelProperties: { name: { serializedName: "name", - readOnly: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "ShareablePrivateLinkResourceProperties" - } - } - } - } + className: "NSPConfigAccessRuleProperties", + }, + }, + }, + }, }; -export const ShareablePrivateLinkResourceProperties: coreClient.CompositeMapper = { +export const NSPConfigAccessRuleProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ShareablePrivateLinkResourceProperties", + className: "NSPConfigAccessRuleProperties", modelProperties: { - type: { - serializedName: "type", - readOnly: true, + direction: { + serializedName: "direction", type: { - name: "String" - } + name: "String", + }, }, - groupId: { - serializedName: "groupId", - readOnly: true, + addressPrefixes: { + serializedName: "addressPrefixes", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - description: { - serializedName: "description", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnectionListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + fullyQualifiedDomainNames: { + serializedName: "fullyQualifiedDomainNames", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + name: "String", + }, + }, + }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + subscriptions: { + serializedName: "subscriptions", type: { - name: "String" - } - } - } - } -}; - -export const SharedPrivateLinkResourceListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SharedPrivateLinkResourceListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + networkSecurityPerimeters: { + serializedName: "networkSecurityPerimeters", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SharedPrivateLinkResource" - } - } - } + className: "NSPConfigNetworkSecurityPerimeterRule", + }, + }, + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const CheckNameAvailabilityInput: coreClient.CompositeMapper = { +export const NSPConfigNetworkSecurityPerimeterRule: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NSPConfigNetworkSecurityPerimeterRule", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + perimeterGuid: { + serializedName: "perimeterGuid", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const NSPProvisioningIssue: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CheckNameAvailabilityInput", + className: "NSPProvisioningIssue", modelProperties: { name: { serializedName: "name", - required: true, type: { - name: "String" - } + name: "String", + }, }, - typeParam: { - defaultValue: "searchServices", - isConstant: true, - serializedName: "type", + properties: { + serializedName: "properties", type: { - name: "String" - } - } - } - } + name: "Composite", + className: "NSPProvisioningIssueProperties", + }, + }, + }, + }, }; -export const CheckNameAvailabilityOutput: coreClient.CompositeMapper = { +export const NSPProvisioningIssueProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CheckNameAvailabilityOutput", + className: "NSPProvisioningIssueProperties", modelProperties: { - isNameAvailable: { - serializedName: "nameAvailable", - readOnly: true, + issueType: { + serializedName: "issueType", type: { - name: "Boolean" - } + name: "String", + }, }, - reason: { - serializedName: "reason", - readOnly: true, + severity: { + serializedName: "severity", type: { - name: "String" - } + name: "String", + }, }, - message: { - serializedName: "message", - readOnly: true, + description: { + serializedName: "description", type: { - name: "String" - } - } - } - } -}; - -export const QuotaUsagesListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "QuotaUsagesListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + name: "String", + }, + }, + suggestedResourceIds: { + serializedName: "suggestedResourceIds", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "QuotaUsageResult" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const QuotaUsageResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "QuotaUsageResult", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - unit: { - serializedName: "unit", - type: { - name: "String" - } - }, - currentValue: { - serializedName: "currentValue", - type: { - name: "Number" - } - }, - limit: { - serializedName: "limit", - type: { - name: "Number" - } + name: "String", + }, + }, + }, }, - name: { - serializedName: "name", - type: { - name: "Composite", - className: "QuotaUsageResultName" - } - } - } - } -}; - -export const QuotaUsageResultName: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "QuotaUsageResultName", - modelProperties: { - value: { - serializedName: "value", + suggestedAccessRules: { + serializedName: "suggestedAccessRules", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - localizedValue: { - serializedName: "localizedValue", - type: { - name: "String" - } - } - } - } + }, + }, }; export const AsyncOperationResult: coreClient.CompositeMapper = { @@ -911,11 +1454,11 @@ export const AsyncOperationResult: coreClient.CompositeMapper = { status: { serializedName: "status", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpointConnection: coreClient.CompositeMapper = { @@ -928,11 +1471,11 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "PrivateEndpointConnectionProperties" - } - } - } - } + className: "PrivateEndpointConnectionProperties", + }, + }, + }, + }, }; export const SharedPrivateLinkResource: coreClient.CompositeMapper = { @@ -945,11 +1488,11 @@ export const SharedPrivateLinkResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "SharedPrivateLinkResourceProperties" - } - } - } - } + className: "SharedPrivateLinkResourceProperties", + }, + }, + }, + }, }; export const TrackedResource: coreClient.CompositeMapper = { @@ -962,18 +1505,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 SearchServiceUpdate: coreClient.CompositeMapper = { @@ -986,66 +1529,65 @@ export const SearchServiceUpdate: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, location: { serializedName: "location", 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: "Identity" - } + className: "Identity", + }, }, replicaCount: { defaultValue: 1, constraints: { InclusiveMaximum: 12, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.replicaCount", type: { - name: "Number" - } + name: "Number", + }, }, partitionCount: { defaultValue: 1, constraints: { InclusiveMaximum: 12, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.partitionCount", type: { - name: "Number" - } + name: "Number", + }, }, hostingMode: { defaultValue: "default", serializedName: "properties.hostingMode", type: { name: "Enum", - allowedValues: ["default", "highDensity"] - } + allowedValues: ["default", "highDensity"], + }, }, publicNetworkAccess: { defaultValue: "enabled", serializedName: "properties.publicNetworkAccess", type: { - name: "Enum", - allowedValues: ["enabled", "disabled"] - } + name: "String", + }, }, status: { serializedName: "properties.status", @@ -1058,52 +1600,71 @@ export const SearchServiceUpdate: coreClient.CompositeMapper = { "deleting", "degraded", "disabled", - "error" - ] - } + "error", + "stopped", + ], + }, }, statusDetails: { serializedName: "properties.statusDetails", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { name: "Enum", - allowedValues: ["succeeded", "provisioning", "failed"] - } + allowedValues: ["succeeded", "provisioning", "failed"], + }, }, networkRuleSet: { serializedName: "properties.networkRuleSet", type: { name: "Composite", - className: "NetworkRuleSet" - } + className: "NetworkRuleSet", + }, + }, + disabledDataExfiltrationOptions: { + serializedName: "properties.disabledDataExfiltrationOptions", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, encryptionWithCmk: { serializedName: "properties.encryptionWithCmk", type: { name: "Composite", - className: "EncryptionWithCmk" - } + className: "EncryptionWithCmk", + }, }, disableLocalAuth: { serializedName: "properties.disableLocalAuth", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, authOptions: { serializedName: "properties.authOptions", type: { name: "Composite", - className: "DataPlaneAuthOptions" - } + className: "DataPlaneAuthOptions", + }, + }, + semanticSearch: { + serializedName: "properties.semanticSearch", + nullable: true, + type: { + name: "String", + }, }, privateEndpointConnections: { serializedName: "properties.privateEndpointConnections", @@ -1113,17 +1674,10 @@ export const SearchServiceUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } - }, - semanticSearch: { - serializedName: "properties.semanticSearch", - nullable: true, - type: { - name: "String" - } + className: "PrivateEndpointConnection", + }, + }, + }, }, sharedPrivateLinkResources: { serializedName: "properties.sharedPrivateLinkResources", @@ -1133,13 +1687,20 @@ export const SearchServiceUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SharedPrivateLinkResource" - } - } - } - } - } - } + className: "SharedPrivateLinkResource", + }, + }, + }, + }, + eTag: { + serializedName: "properties.eTag", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, }; export const PrivateLinkResource: coreClient.CompositeMapper = { @@ -1152,11 +1713,21 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "PrivateLinkResourceProperties" - } - } - } - } + className: "PrivateLinkResourceProperties", + }, + }, + }, + }, +}; + +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties, + }, + }, }; export const SearchService: coreClient.CompositeMapper = { @@ -1169,53 +1740,52 @@ export const SearchService: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "Identity" - } + className: "Identity", + }, }, replicaCount: { defaultValue: 1, constraints: { InclusiveMaximum: 12, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.replicaCount", type: { - name: "Number" - } + name: "Number", + }, }, partitionCount: { defaultValue: 1, constraints: { InclusiveMaximum: 12, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.partitionCount", type: { - name: "Number" - } + name: "Number", + }, }, hostingMode: { defaultValue: "default", serializedName: "properties.hostingMode", type: { name: "Enum", - allowedValues: ["default", "highDensity"] - } + allowedValues: ["default", "highDensity"], + }, }, publicNetworkAccess: { defaultValue: "enabled", serializedName: "properties.publicNetworkAccess", type: { - name: "Enum", - allowedValues: ["enabled", "disabled"] - } + name: "String", + }, }, status: { serializedName: "properties.status", @@ -1228,52 +1798,71 @@ export const SearchService: coreClient.CompositeMapper = { "deleting", "degraded", "disabled", - "error" - ] - } + "error", + "stopped", + ], + }, }, statusDetails: { serializedName: "properties.statusDetails", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { name: "Enum", - allowedValues: ["succeeded", "provisioning", "failed"] - } + allowedValues: ["succeeded", "provisioning", "failed"], + }, }, networkRuleSet: { serializedName: "properties.networkRuleSet", type: { name: "Composite", - className: "NetworkRuleSet" - } + className: "NetworkRuleSet", + }, + }, + disabledDataExfiltrationOptions: { + serializedName: "properties.disabledDataExfiltrationOptions", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, encryptionWithCmk: { serializedName: "properties.encryptionWithCmk", type: { name: "Composite", - className: "EncryptionWithCmk" - } + className: "EncryptionWithCmk", + }, }, disableLocalAuth: { serializedName: "properties.disableLocalAuth", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, authOptions: { serializedName: "properties.authOptions", type: { name: "Composite", - className: "DataPlaneAuthOptions" - } + className: "DataPlaneAuthOptions", + }, + }, + semanticSearch: { + serializedName: "properties.semanticSearch", + nullable: true, + type: { + name: "String", + }, }, privateEndpointConnections: { serializedName: "properties.privateEndpointConnections", @@ -1283,17 +1872,10 @@ export const SearchService: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } - }, - semanticSearch: { - serializedName: "properties.semanticSearch", - nullable: true, - type: { - name: "String" - } + className: "PrivateEndpointConnection", + }, + }, + }, }, sharedPrivateLinkResources: { serializedName: "properties.sharedPrivateLinkResources", @@ -1303,11 +1885,85 @@ export const SearchService: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SharedPrivateLinkResource" - } - } - } - } - } - } + className: "SharedPrivateLinkResource", + }, + }, + }, + }, + eTag: { + serializedName: "properties.eTag", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, }; + +export const NetworkSecurityPerimeterConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfiguration", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + networkSecurityPerimeter: { + serializedName: "properties.networkSecurityPerimeter", + type: { + name: "Composite", + className: "NSPConfigPerimeter", + }, + }, + resourceAssociation: { + serializedName: "properties.resourceAssociation", + type: { + name: "Composite", + className: "NSPConfigAssociation", + }, + }, + profile: { + serializedName: "properties.profile", + type: { + name: "Composite", + className: "NSPConfigProfile", + }, + }, + provisioningIssues: { + serializedName: "properties.provisioningIssues", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NSPProvisioningIssue", + }, + }, + }, + }, + }, + }, + }; + +export const NetworkSecurityPerimeterConfigurationsReconcileHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfigurationsReconcileHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; diff --git a/sdk/search/arm-search/src/models/parameters.ts b/sdk/search/arm-search/src/models/parameters.ts index b9f3c5a22729..c8d0e4f50a30 100644 --- a/sdk/search/arm-search/src/models/parameters.ts +++ b/sdk/search/arm-search/src/models/parameters.ts @@ -9,14 +9,14 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { SearchService as SearchServiceMapper, SearchServiceUpdate as SearchServiceUpdateMapper, CheckNameAvailabilityInput as CheckNameAvailabilityInputMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, - SharedPrivateLinkResource as SharedPrivateLinkResourceMapper + SharedPrivateLinkResource as SharedPrivateLinkResourceMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -26,9 +26,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -37,22 +37,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-11-01", + defaultValue: "2024-03-01-preview", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceGroupName: OperationURLParameter = { @@ -61,34 +61,37 @@ export const resourceGroupName: OperationURLParameter = { serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const searchServiceName: OperationURLParameter = { parameterPath: "searchServiceName", mapper: { + constraints: { + Pattern: new RegExp("^(?=.{2,60}$)[a-z0-9][a-z0-9]+(-[a-z0-9]+)*$"), + }, serializedName: "searchServiceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const clientRequestId: OperationParameter = { parameterPath: [ "options", "searchManagementRequestOptions", - "clientRequestId" + "clientRequestId", ], mapper: { serializedName: "x-ms-client-request-id", type: { - name: "Uuid" - } - } + name: "Uuid", + }, + }, }; export const subscriptionId: OperationURLParameter = { @@ -97,9 +100,9 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const keyKind: OperationURLParameter = { @@ -109,9 +112,9 @@ export const keyKind: OperationURLParameter = { required: true, type: { name: "Enum", - allowedValues: ["primary", "secondary"] - } - } + allowedValues: ["primary", "secondary"], + }, + }, }; export const name: OperationURLParameter = { @@ -120,9 +123,9 @@ export const name: OperationURLParameter = { serializedName: "name", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const key: OperationURLParameter = { @@ -131,9 +134,9 @@ export const key: OperationURLParameter = { serializedName: "key", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -142,10 +145,10 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const contentType: OperationParameter = { @@ -155,34 +158,45 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const service: OperationParameter = { parameterPath: "service", - mapper: SearchServiceMapper + mapper: SearchServiceMapper, +}; + +export const searchServiceName1: OperationURLParameter = { + parameterPath: "searchServiceName", + mapper: { + serializedName: "searchServiceName", + required: true, + type: { + name: "String", + }, + }, }; export const service1: OperationParameter = { parameterPath: "service", - mapper: SearchServiceUpdateMapper + mapper: SearchServiceUpdateMapper, }; export const name1: OperationParameter = { parameterPath: "name", - mapper: CheckNameAvailabilityInputMapper + mapper: CheckNameAvailabilityInputMapper, }; export const typeParam: OperationParameter = { parameterPath: "typeParam", - mapper: CheckNameAvailabilityInputMapper + mapper: CheckNameAvailabilityInputMapper, }; export const privateEndpointConnection: OperationParameter = { parameterPath: "privateEndpointConnection", - mapper: PrivateEndpointConnectionMapper + mapper: PrivateEndpointConnectionMapper, }; export const privateEndpointConnectionName: OperationURLParameter = { @@ -191,14 +205,14 @@ export const privateEndpointConnectionName: OperationURLParameter = { serializedName: "privateEndpointConnectionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const sharedPrivateLinkResource: OperationParameter = { parameterPath: "sharedPrivateLinkResource", - mapper: SharedPrivateLinkResourceMapper + mapper: SharedPrivateLinkResourceMapper, }; export const sharedPrivateLinkResourceName: OperationURLParameter = { @@ -207,9 +221,9 @@ export const sharedPrivateLinkResourceName: OperationURLParameter = { serializedName: "sharedPrivateLinkResourceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const location: OperationURLParameter = { @@ -218,9 +232,9 @@ export const location: OperationURLParameter = { serializedName: "location", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const skuName: OperationURLParameter = { @@ -229,7 +243,25 @@ export const skuName: OperationURLParameter = { serializedName: "skuName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, +}; + +export const nspConfigName: OperationURLParameter = { + parameterPath: "nspConfigName", + mapper: { + constraints: { + Pattern: new RegExp( + "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}\\.[a-z][a-z0-9]*$", + ), + MaxLength: 100, + MinLength: 38, + }, + serializedName: "nspConfigName", + required: true, + type: { + name: "String", + }, + }, }; diff --git a/sdk/search/arm-search/src/operations/adminKeys.ts b/sdk/search/arm-search/src/operations/adminKeys.ts index 4c0578328d81..9cd6560886d3 100644 --- a/sdk/search/arm-search/src/operations/adminKeys.ts +++ b/sdk/search/arm-search/src/operations/adminKeys.ts @@ -16,7 +16,7 @@ import { AdminKeysGetResponse, AdminKeyKind, AdminKeysRegenerateOptionalParams, - AdminKeysRegenerateResponse + AdminKeysRegenerateResponse, } from "../models"; /** Class containing AdminKeys operations. */ @@ -32,21 +32,21 @@ export class AdminKeysImpl implements AdminKeys { } /** - * Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service. + * Gets the primary and secondary admin API keys for the specified Azure AI Search service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ get( resourceGroupName: string, searchServiceName: string, - options?: AdminKeysGetOptionalParams + options?: AdminKeysGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -55,8 +55,8 @@ export class AdminKeysImpl implements AdminKeys { * time. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param keyKind Specifies which key to regenerate. Valid values include 'primary' and 'secondary'. * @param options The options parameters. */ @@ -64,11 +64,11 @@ export class AdminKeysImpl implements AdminKeys { resourceGroupName: string, searchServiceName: string, keyKind: AdminKeyKind, - options?: AdminKeysRegenerateOptionalParams + options?: AdminKeysRegenerateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, keyKind, options }, - regenerateOperationSpec + regenerateOperationSpec, ); } } @@ -76,38 +76,36 @@ export class AdminKeysImpl implements AdminKeys { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listAdminKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listAdminKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AdminKeyResult + bodyMapper: Mappers.AdminKeyResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.searchServiceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const regenerateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/regenerateAdminKey/{keyKind}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/regenerateAdminKey/{keyKind}", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AdminKeyResult + bodyMapper: Mappers.AdminKeyResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -115,8 +113,8 @@ const regenerateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.searchServiceName, Parameters.subscriptionId, - Parameters.keyKind + Parameters.keyKind, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; diff --git a/sdk/search/arm-search/src/operations/index.ts b/sdk/search/arm-search/src/operations/index.ts index f60f5a357ae2..e8c3c318ae97 100644 --- a/sdk/search/arm-search/src/operations/index.ts +++ b/sdk/search/arm-search/src/operations/index.ts @@ -14,3 +14,4 @@ export * from "./privateLinkResources"; export * from "./privateEndpointConnections"; export * from "./sharedPrivateLinkResources"; export * from "./usages"; +export * from "./networkSecurityPerimeterConfigurations"; diff --git a/sdk/search/arm-search/src/operations/networkSecurityPerimeterConfigurations.ts b/sdk/search/arm-search/src/operations/networkSecurityPerimeterConfigurations.ts new file mode 100644 index 000000000000..3e0763a32861 --- /dev/null +++ b/sdk/search/arm-search/src/operations/networkSecurityPerimeterConfigurations.ts @@ -0,0 +1,400 @@ +/* + * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { NetworkSecurityPerimeterConfigurations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SearchManagementClient } from "../searchManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + NetworkSecurityPerimeterConfiguration, + NetworkSecurityPerimeterConfigurationsListByServiceNextOptionalParams, + NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams, + NetworkSecurityPerimeterConfigurationsListByServiceResponse, + NetworkSecurityPerimeterConfigurationsGetOptionalParams, + NetworkSecurityPerimeterConfigurationsGetResponse, + NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, + NetworkSecurityPerimeterConfigurationsReconcileResponse, + NetworkSecurityPerimeterConfigurationsListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing NetworkSecurityPerimeterConfigurations operations. */ +export class NetworkSecurityPerimeterConfigurationsImpl + implements NetworkSecurityPerimeterConfigurations +{ + private readonly client: SearchManagementClient; + + /** + * Initialize a new instance of the class NetworkSecurityPerimeterConfigurations class. + * @param client Reference to the service client + */ + constructor(client: SearchManagementClient) { + this.client = client; + } + + /** + * Gets a list of network security perimeter configurations for a search service. + * @param resourceGroupName The name of the resource group within the current subscription. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + searchServiceName: string, + options?: NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + searchServiceName, + 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.listByServicePagingPage( + resourceGroupName, + searchServiceName, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + searchServiceName: string, + options?: NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: NetworkSecurityPerimeterConfigurationsListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + searchServiceName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + searchServiceName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + searchServiceName: string, + options?: NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + searchServiceName, + options, + )) { + yield* page; + } + } + + /** + * Gets a list of network security perimeter configurations for a search service. + * @param resourceGroupName The name of the resource group within the current subscription. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + searchServiceName: string, + options?: NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, searchServiceName, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets a network security perimeter configuration. + * @param resourceGroupName The name of the resource group within the current subscription. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param nspConfigName The network security configuration name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + searchServiceName: string, + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, searchServiceName, nspConfigName, options }, + getOperationSpec, + ); + } + + /** + * Reconcile network security perimeter configuration for the Azure AI Search resource provider. This + * triggers a manual resync with network security perimeter configurations by ensuring the search + * service carries the latest configuration. + * @param resourceGroupName The name of the resource group within the current subscription. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param nspConfigName The network security configuration name. + * @param options The options parameters. + */ + async beginReconcile( + resourceGroupName: string, + searchServiceName: string, + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NetworkSecurityPerimeterConfigurationsReconcileResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, searchServiceName, nspConfigName, options }, + spec: reconcileOperationSpec, + }); + const poller = await createHttpPoller< + NetworkSecurityPerimeterConfigurationsReconcileResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Reconcile network security perimeter configuration for the Azure AI Search resource provider. This + * triggers a manual resync with network security perimeter configurations by ensuring the search + * service carries the latest configuration. + * @param resourceGroupName The name of the resource group within the current subscription. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param nspConfigName The network security configuration name. + * @param options The options parameters. + */ + async beginReconcileAndWait( + resourceGroupName: string, + searchServiceName: string, + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, + ): Promise { + const poller = await this.beginReconcile( + resourceGroupName, + searchServiceName, + nspConfigName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group within the current subscription. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + searchServiceName: string, + nextLink: string, + options?: NetworkSecurityPerimeterConfigurationsListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, searchServiceName, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/networkSecurityPerimeterConfigurations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.searchServiceName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/networkSecurityPerimeterConfigurations/{nspConfigName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.searchServiceName, + Parameters.subscriptionId, + Parameters.nspConfigName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const reconcileOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/networkSecurityPerimeterConfigurations/{nspConfigName}/reconcile", + httpMethod: "POST", + responses: { + 200: { + headersMapper: + Mappers.NetworkSecurityPerimeterConfigurationsReconcileHeaders, + }, + 201: { + headersMapper: + Mappers.NetworkSecurityPerimeterConfigurationsReconcileHeaders, + }, + 202: { + headersMapper: + Mappers.NetworkSecurityPerimeterConfigurationsReconcileHeaders, + }, + 204: { + headersMapper: + Mappers.NetworkSecurityPerimeterConfigurationsReconcileHeaders, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.searchServiceName, + Parameters.subscriptionId, + Parameters.nspConfigName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.searchServiceName, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/search/arm-search/src/operations/operations.ts b/sdk/search/arm-search/src/operations/operations.ts index 97a24c9dc8f7..6db09f807116 100644 --- a/sdk/search/arm-search/src/operations/operations.ts +++ b/sdk/search/arm-search/src/operations/operations.ts @@ -15,7 +15,7 @@ import { SearchManagementClient } from "../searchManagementClient"; import { Operation, 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.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/search/arm-search/src/operations/privateEndpointConnections.ts b/sdk/search/arm-search/src/operations/privateEndpointConnections.ts index 0763faabb0f6..0455cc061eac 100644 --- a/sdk/search/arm-search/src/operations/privateEndpointConnections.ts +++ b/sdk/search/arm-search/src/operations/privateEndpointConnections.ts @@ -24,13 +24,14 @@ import { PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsDeleteOptionalParams, PrivateEndpointConnectionsDeleteResponse, - PrivateEndpointConnectionsListByServiceNextResponse + PrivateEndpointConnectionsListByServiceNextResponse, } from "../models"; /// /** Class containing PrivateEndpointConnections operations. */ export class PrivateEndpointConnectionsImpl - implements PrivateEndpointConnections { + implements PrivateEndpointConnections +{ private readonly client: SearchManagementClient; /** @@ -45,19 +46,19 @@ export class PrivateEndpointConnectionsImpl * Gets a list of all private endpoint connections in the given service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ public listByService( resourceGroupName: string, searchServiceName: string, - options?: PrivateEndpointConnectionsListByServiceOptionalParams + options?: PrivateEndpointConnectionsListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, searchServiceName, - options + options, ); return { next() { @@ -74,9 +75,9 @@ export class PrivateEndpointConnectionsImpl resourceGroupName, searchServiceName, options, - settings + settings, ); - } + }, }; } @@ -84,7 +85,7 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, searchServiceName: string, options?: PrivateEndpointConnectionsListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateEndpointConnectionsListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -92,7 +93,7 @@ export class PrivateEndpointConnectionsImpl result = await this._listByService( resourceGroupName, searchServiceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -104,7 +105,7 @@ export class PrivateEndpointConnectionsImpl resourceGroupName, searchServiceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -116,25 +117,25 @@ export class PrivateEndpointConnectionsImpl private async *listByServicePagingAll( resourceGroupName: string, searchServiceName: string, - options?: PrivateEndpointConnectionsListByServiceOptionalParams + options?: PrivateEndpointConnectionsListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, searchServiceName, - options + options, )) { yield* page; } } /** - * Updates a Private Endpoint connection to the search service in the given resource group. + * Updates a private endpoint connection to the search service in the given resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. - * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure - * Cognitive Search service with the specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure AI + * Search service with the specified resource group. * @param privateEndpointConnection The definition of the private endpoint connection to update. * @param options The options parameters. */ @@ -143,7 +144,7 @@ export class PrivateEndpointConnectionsImpl searchServiceName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsUpdateOptionalParams + options?: PrivateEndpointConnectionsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -151,9 +152,9 @@ export class PrivateEndpointConnectionsImpl searchServiceName, privateEndpointConnectionName, privateEndpointConnection, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -162,26 +163,26 @@ export class PrivateEndpointConnectionsImpl * group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. - * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure - * Cognitive Search service with the specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure AI + * Search service with the specified resource group. * @param options The options parameters. */ get( resourceGroupName: string, searchServiceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetOptionalParams + options?: PrivateEndpointConnectionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, privateEndpointConnectionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -189,26 +190,26 @@ export class PrivateEndpointConnectionsImpl * Disconnects the private endpoint connection and deletes it from the search service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. - * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure - * Cognitive Search service with the specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure AI + * Search service with the specified resource group. * @param options The options parameters. */ delete( resourceGroupName: string, searchServiceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams + options?: PrivateEndpointConnectionsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, privateEndpointConnectionName, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -216,18 +217,18 @@ export class PrivateEndpointConnectionsImpl * Gets a list of all private endpoint connections in the given service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ private _listByService( resourceGroupName: string, searchServiceName: string, - options?: PrivateEndpointConnectionsListByServiceOptionalParams + options?: PrivateEndpointConnectionsListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -235,8 +236,8 @@ export class PrivateEndpointConnectionsImpl * ListByServiceNext * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. */ @@ -244,11 +245,11 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, searchServiceName: string, nextLink: string, - options?: PrivateEndpointConnectionsListByServiceNextOptionalParams + options?: PrivateEndpointConnectionsListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -256,16 +257,15 @@ export class PrivateEndpointConnectionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.privateEndpointConnection, queryParameters: [Parameters.apiVersion], @@ -274,27 +274,26 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.searchServiceName, Parameters.subscriptionId, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [ Parameters.accept, Parameters.clientRequestId, - Parameters.contentType + Parameters.contentType, ], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -302,23 +301,22 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.searchServiceName, Parameters.subscriptionId, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 404: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -326,51 +324,50 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.searchServiceName, Parameters.subscriptionId, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult + bodyMapper: Mappers.PrivateEndpointConnectionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.searchServiceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult + bodyMapper: Mappers.PrivateEndpointConnectionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.searchServiceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; diff --git a/sdk/search/arm-search/src/operations/privateLinkResources.ts b/sdk/search/arm-search/src/operations/privateLinkResources.ts index ccefb51c5798..5689e546a62f 100644 --- a/sdk/search/arm-search/src/operations/privateLinkResources.ts +++ b/sdk/search/arm-search/src/operations/privateLinkResources.ts @@ -15,7 +15,7 @@ import { SearchManagementClient } from "../searchManagementClient"; import { PrivateLinkResource, PrivateLinkResourcesListSupportedOptionalParams, - PrivateLinkResourcesListSupportedResponse + PrivateLinkResourcesListSupportedResponse, } from "../models"; /// @@ -35,19 +35,19 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { * Gets a list of all supported private link resource types for the given service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ public listSupported( resourceGroupName: string, searchServiceName: string, - options?: PrivateLinkResourcesListSupportedOptionalParams + options?: PrivateLinkResourcesListSupportedOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listSupportedPagingAll( resourceGroupName, searchServiceName, - options + options, ); return { next() { @@ -64,9 +64,9 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { resourceGroupName, searchServiceName, options, - settings + settings, ); - } + }, }; } @@ -74,13 +74,13 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { resourceGroupName: string, searchServiceName: string, options?: PrivateLinkResourcesListSupportedOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateLinkResourcesListSupportedResponse; result = await this._listSupported( resourceGroupName, searchServiceName, - options + options, ); yield result.value || []; } @@ -88,12 +88,12 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { private async *listSupportedPagingAll( resourceGroupName: string, searchServiceName: string, - options?: PrivateLinkResourcesListSupportedOptionalParams + options?: PrivateLinkResourcesListSupportedOptionalParams, ): AsyncIterableIterator { for await (const page of this.listSupportedPagingPage( resourceGroupName, searchServiceName, - options + options, )) { yield* page; } @@ -103,18 +103,18 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { * Gets a list of all supported private link resource types for the given service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ private _listSupported( resourceGroupName: string, searchServiceName: string, - options?: PrivateLinkResourcesListSupportedOptionalParams + options?: PrivateLinkResourcesListSupportedOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, options }, - listSupportedOperationSpec + listSupportedOperationSpec, ); } } @@ -122,24 +122,23 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listSupportedOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResourcesResult + bodyMapper: Mappers.PrivateLinkResourcesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.searchServiceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; diff --git a/sdk/search/arm-search/src/operations/queryKeys.ts b/sdk/search/arm-search/src/operations/queryKeys.ts index 4cb29f5000db..a3cfccc41930 100644 --- a/sdk/search/arm-search/src/operations/queryKeys.ts +++ b/sdk/search/arm-search/src/operations/queryKeys.ts @@ -21,7 +21,7 @@ import { QueryKeysCreateOptionalParams, QueryKeysCreateResponse, QueryKeysDeleteOptionalParams, - QueryKeysListBySearchServiceNextResponse + QueryKeysListBySearchServiceNextResponse, } from "../models"; /// @@ -38,22 +38,22 @@ export class QueryKeysImpl implements QueryKeys { } /** - * Returns the list of query API keys for the given Azure Cognitive Search service. + * Returns the list of query API keys for the given Azure AI Search service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ public listBySearchService( resourceGroupName: string, searchServiceName: string, - options?: QueryKeysListBySearchServiceOptionalParams + options?: QueryKeysListBySearchServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySearchServicePagingAll( resourceGroupName, searchServiceName, - options + options, ); return { next() { @@ -70,9 +70,9 @@ export class QueryKeysImpl implements QueryKeys { resourceGroupName, searchServiceName, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class QueryKeysImpl implements QueryKeys { resourceGroupName: string, searchServiceName: string, options?: QueryKeysListBySearchServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: QueryKeysListBySearchServiceResponse; let continuationToken = settings?.continuationToken; @@ -88,7 +88,7 @@ export class QueryKeysImpl implements QueryKeys { result = await this._listBySearchService( resourceGroupName, searchServiceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -100,7 +100,7 @@ export class QueryKeysImpl implements QueryKeys { resourceGroupName, searchServiceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -112,12 +112,12 @@ export class QueryKeysImpl implements QueryKeys { private async *listBySearchServicePagingAll( resourceGroupName: string, searchServiceName: string, - options?: QueryKeysListBySearchServiceOptionalParams + options?: QueryKeysListBySearchServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySearchServicePagingPage( resourceGroupName, searchServiceName, - options + options, )) { yield* page; } @@ -128,8 +128,8 @@ export class QueryKeysImpl implements QueryKeys { * service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param name The name of the new query API key. * @param options The options parameters. */ @@ -137,30 +137,30 @@ export class QueryKeysImpl implements QueryKeys { resourceGroupName: string, searchServiceName: string, name: string, - options?: QueryKeysCreateOptionalParams + options?: QueryKeysCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, name, options }, - createOperationSpec + createOperationSpec, ); } /** - * Returns the list of query API keys for the given Azure Cognitive Search service. + * Returns the list of query API keys for the given Azure AI Search service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ private _listBySearchService( resourceGroupName: string, searchServiceName: string, - options?: QueryKeysListBySearchServiceOptionalParams + options?: QueryKeysListBySearchServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, options }, - listBySearchServiceOperationSpec + listBySearchServiceOperationSpec, ); } @@ -169,8 +169,8 @@ export class QueryKeysImpl implements QueryKeys { * regenerating a query key is to delete and then recreate it. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param key The query key to be deleted. Query keys are identified by value, not by name. * @param options The options parameters. */ @@ -178,11 +178,11 @@ export class QueryKeysImpl implements QueryKeys { resourceGroupName: string, searchServiceName: string, key: string, - options?: QueryKeysDeleteOptionalParams + options?: QueryKeysDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, key, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -190,8 +190,8 @@ export class QueryKeysImpl implements QueryKeys { * ListBySearchServiceNext * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param nextLink The nextLink from the previous successful call to the ListBySearchService method. * @param options The options parameters. */ @@ -199,11 +199,11 @@ export class QueryKeysImpl implements QueryKeys { resourceGroupName: string, searchServiceName: string, nextLink: string, - options?: QueryKeysListBySearchServiceNextOptionalParams + options?: QueryKeysListBySearchServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, nextLink, options }, - listBySearchServiceNextOperationSpec + listBySearchServiceNextOperationSpec, ); } } @@ -211,16 +211,15 @@ export class QueryKeysImpl implements QueryKeys { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/createQueryKey/{name}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/createQueryKey/{name}", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.QueryKey + bodyMapper: Mappers.QueryKey, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -228,44 +227,42 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.searchServiceName, Parameters.subscriptionId, - Parameters.name + Parameters.name, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listBySearchServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listQueryKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listQueryKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ListQueryKeysResult + bodyMapper: Mappers.ListQueryKeysResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.searchServiceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/deleteQueryKey/{key}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/deleteQueryKey/{key}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, 404: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -273,29 +270,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.searchServiceName, Parameters.subscriptionId, - Parameters.key + Parameters.key, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listBySearchServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListQueryKeysResult + bodyMapper: Mappers.ListQueryKeysResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.searchServiceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; diff --git a/sdk/search/arm-search/src/operations/services.ts b/sdk/search/arm-search/src/operations/services.ts index 393aa8a5e9b9..2aa2a4474b3e 100644 --- a/sdk/search/arm-search/src/operations/services.ts +++ b/sdk/search/arm-search/src/operations/services.ts @@ -16,7 +16,7 @@ import { SearchManagementClient } from "../searchManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -38,7 +38,7 @@ import { ServicesCheckNameAvailabilityOptionalParams, ServicesCheckNameAvailabilityResponse, ServicesListByResourceGroupNextResponse, - ServicesListBySubscriptionNextResponse + ServicesListBySubscriptionNextResponse, } from "../models"; /// @@ -62,7 +62,7 @@ export class ServicesImpl implements Services { */ public listByResourceGroup( resourceGroupName: string, - options?: ServicesListByResourceGroupOptionalParams + options?: ServicesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -79,16 +79,16 @@ export class ServicesImpl implements Services { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: ServicesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ServicesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -103,7 +103,7 @@ export class ServicesImpl implements Services { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -114,11 +114,11 @@ export class ServicesImpl implements Services { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: ServicesListByResourceGroupOptionalParams + options?: ServicesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -129,7 +129,7 @@ export class ServicesImpl implements Services { * @param options The options parameters. */ public listBySubscription( - options?: ServicesListBySubscriptionOptionalParams + options?: ServicesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -144,13 +144,13 @@ export class ServicesImpl implements Services { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: ServicesListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ServicesListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -171,7 +171,7 @@ export class ServicesImpl implements Services { } private async *listBySubscriptionPagingAll( - options?: ServicesListBySubscriptionOptionalParams + options?: ServicesListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -183,12 +183,12 @@ export class ServicesImpl implements Services { * exists, all properties will be updated with the given values. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service to create or update. Search - * service names must only contain lowercase letters, digits or dashes, cannot use dash as the first - * two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 - * characters in length. Search service names must be globally unique since they are part of the - * service URI (https://.search.windows.net). You cannot change the service name after the - * service is created. + * @param searchServiceName The name of the Azure AI Search service to create or update. Search service + * names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or + * last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in + * length. Search service names must be globally unique since they are part of the service URI + * (https://.search.windows.net). You cannot change the service name after the service is + * created. * @param service The definition of the search service to create or update. * @param options The options parameters. */ @@ -196,7 +196,7 @@ export class ServicesImpl implements Services { resourceGroupName: string, searchServiceName: string, service: SearchService, - options?: ServicesCreateOrUpdateOptionalParams + options?: ServicesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -205,21 +205,20 @@ export class ServicesImpl implements Services { > { 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); @@ -228,8 +227,8 @@ export class ServicesImpl implements Services { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -237,22 +236,22 @@ export class ServicesImpl implements Services { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, searchServiceName, service, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ServicesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -263,12 +262,12 @@ export class ServicesImpl implements Services { * exists, all properties will be updated with the given values. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service to create or update. Search - * service names must only contain lowercase letters, digits or dashes, cannot use dash as the first - * two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 - * characters in length. Search service names must be globally unique since they are part of the - * service URI (https://.search.windows.net). You cannot change the service name after the - * service is created. + * @param searchServiceName The name of the Azure AI Search service to create or update. Search service + * names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or + * last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in + * length. Search service names must be globally unique since they are part of the service URI + * (https://.search.windows.net). You cannot change the service name after the service is + * created. * @param service The definition of the search service to create or update. * @param options The options parameters. */ @@ -276,13 +275,13 @@ export class ServicesImpl implements Services { resourceGroupName: string, searchServiceName: string, service: SearchService, - options?: ServicesCreateOrUpdateOptionalParams + options?: ServicesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, searchServiceName, service, - options + options, ); return poller.pollUntilDone(); } @@ -291,7 +290,7 @@ export class ServicesImpl implements Services { * Updates an existing search service in the given resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service to update. + * @param searchServiceName The name of the Azure AI Search service to update. * @param service The definition of the search service to update. * @param options The options parameters. */ @@ -299,11 +298,11 @@ export class ServicesImpl implements Services { resourceGroupName: string, searchServiceName: string, service: SearchServiceUpdate, - options?: ServicesUpdateOptionalParams + options?: ServicesUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, service, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -311,18 +310,18 @@ export class ServicesImpl implements Services { * Gets the search service with the given name in the given resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ get( resourceGroupName: string, searchServiceName: string, - options?: ServicesGetOptionalParams + options?: ServicesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -330,18 +329,18 @@ export class ServicesImpl implements Services { * Deletes a search service in the given resource group, along with its associated resources. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ delete( resourceGroupName: string, searchServiceName: string, - options?: ServicesDeleteOptionalParams + options?: ServicesDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -353,11 +352,11 @@ export class ServicesImpl implements Services { */ private _listByResourceGroup( resourceGroupName: string, - options?: ServicesListByResourceGroupOptionalParams + options?: ServicesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -366,11 +365,11 @@ export class ServicesImpl implements Services { * @param options The options parameters. */ private _listBySubscription( - options?: ServicesListBySubscriptionOptionalParams + options?: ServicesListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -384,11 +383,11 @@ export class ServicesImpl implements Services { */ checkNameAvailability( name: string, - options?: ServicesCheckNameAvailabilityOptionalParams + options?: ServicesCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { name, options }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, ); } @@ -402,11 +401,11 @@ export class ServicesImpl implements Services { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: ServicesListByResourceGroupNextOptionalParams + options?: ServicesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -417,11 +416,11 @@ export class ServicesImpl implements Services { */ private _listBySubscriptionNext( nextLink: string, - options?: ServicesListBySubscriptionNextOptionalParams + options?: ServicesListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } } @@ -429,214 +428,207 @@ export class ServicesImpl implements Services { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SearchService + bodyMapper: Mappers.SearchService, }, 201: { - bodyMapper: Mappers.SearchService + bodyMapper: Mappers.SearchService, }, 202: { - bodyMapper: Mappers.SearchService + bodyMapper: Mappers.SearchService, }, 204: { - bodyMapper: Mappers.SearchService + bodyMapper: Mappers.SearchService, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.service, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, - Parameters.searchServiceName, - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.searchServiceName1, ], headerParameters: [ Parameters.accept, Parameters.clientRequestId, - Parameters.contentType + Parameters.contentType, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.SearchService + bodyMapper: Mappers.SearchService, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.service1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, - Parameters.searchServiceName, - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.searchServiceName1, ], headerParameters: [ Parameters.accept, Parameters.clientRequestId, - Parameters.contentType + Parameters.contentType, ], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SearchService + bodyMapper: Mappers.SearchService, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.searchServiceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, 404: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.searchServiceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SearchServiceListResult + bodyMapper: Mappers.SearchServiceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Search/searchServices", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Search/searchServices", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SearchServiceListResult + bodyMapper: Mappers.SearchServiceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Search/checkNameAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Search/checkNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckNameAvailabilityOutput + bodyMapper: Mappers.CheckNameAvailabilityOutput, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: { parameterPath: { name: ["name"], typeParam: ["typeParam"] }, - mapper: { ...Mappers.CheckNameAvailabilityInput, required: true } + mapper: { ...Mappers.CheckNameAvailabilityInput, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [ Parameters.accept, Parameters.clientRequestId, - Parameters.contentType + Parameters.contentType, ], mediaType: "json", - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SearchServiceListResult + bodyMapper: Mappers.SearchServiceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SearchServiceListResult + bodyMapper: Mappers.SearchServiceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; diff --git a/sdk/search/arm-search/src/operations/sharedPrivateLinkResources.ts b/sdk/search/arm-search/src/operations/sharedPrivateLinkResources.ts index 68fcb6ae4998..d83d37f9c188 100644 --- a/sdk/search/arm-search/src/operations/sharedPrivateLinkResources.ts +++ b/sdk/search/arm-search/src/operations/sharedPrivateLinkResources.ts @@ -16,7 +16,7 @@ import { SearchManagementClient } from "../searchManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,13 +29,14 @@ import { SharedPrivateLinkResourcesGetOptionalParams, SharedPrivateLinkResourcesGetResponse, SharedPrivateLinkResourcesDeleteOptionalParams, - SharedPrivateLinkResourcesListByServiceNextResponse + SharedPrivateLinkResourcesListByServiceNextResponse, } from "../models"; /// /** Class containing SharedPrivateLinkResources operations. */ export class SharedPrivateLinkResourcesImpl - implements SharedPrivateLinkResources { + implements SharedPrivateLinkResources +{ private readonly client: SearchManagementClient; /** @@ -50,19 +51,19 @@ export class SharedPrivateLinkResourcesImpl * Gets a list of all shared private link resources managed by the given service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ public listByService( resourceGroupName: string, searchServiceName: string, - options?: SharedPrivateLinkResourcesListByServiceOptionalParams + options?: SharedPrivateLinkResourcesListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, searchServiceName, - options + options, ); return { next() { @@ -79,9 +80,9 @@ export class SharedPrivateLinkResourcesImpl resourceGroupName, searchServiceName, options, - settings + settings, ); - } + }, }; } @@ -89,7 +90,7 @@ export class SharedPrivateLinkResourcesImpl resourceGroupName: string, searchServiceName: string, options?: SharedPrivateLinkResourcesListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SharedPrivateLinkResourcesListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -97,7 +98,7 @@ export class SharedPrivateLinkResourcesImpl result = await this._listByService( resourceGroupName, searchServiceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -109,7 +110,7 @@ export class SharedPrivateLinkResourcesImpl resourceGroupName, searchServiceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -121,12 +122,12 @@ export class SharedPrivateLinkResourcesImpl private async *listByServicePagingAll( resourceGroupName: string, searchServiceName: string, - options?: SharedPrivateLinkResourcesListByServiceOptionalParams + options?: SharedPrivateLinkResourcesListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, searchServiceName, - options + options, )) { yield* page; } @@ -137,10 +138,10 @@ export class SharedPrivateLinkResourcesImpl * the given resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the - * Azure Cognitive Search service within the specified resource group. + * Azure AI Search service within the specified resource group. * @param sharedPrivateLinkResource The definition of the shared private link resource to create or * update. * @param options The options parameters. @@ -150,7 +151,7 @@ export class SharedPrivateLinkResourcesImpl searchServiceName: string, sharedPrivateLinkResourceName: string, sharedPrivateLinkResource: SharedPrivateLinkResource, - options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams + options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -159,21 +160,20 @@ export class SharedPrivateLinkResourcesImpl > { 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); @@ -182,8 +182,8 @@ export class SharedPrivateLinkResourcesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -191,8 +191,8 @@ export class SharedPrivateLinkResourcesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -203,9 +203,9 @@ export class SharedPrivateLinkResourcesImpl searchServiceName, sharedPrivateLinkResourceName, sharedPrivateLinkResource, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< SharedPrivateLinkResourcesCreateOrUpdateResponse, @@ -213,7 +213,7 @@ export class SharedPrivateLinkResourcesImpl >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -224,10 +224,10 @@ export class SharedPrivateLinkResourcesImpl * the given resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the - * Azure Cognitive Search service within the specified resource group. + * Azure AI Search service within the specified resource group. * @param sharedPrivateLinkResource The definition of the shared private link resource to create or * update. * @param options The options parameters. @@ -237,14 +237,14 @@ export class SharedPrivateLinkResourcesImpl searchServiceName: string, sharedPrivateLinkResourceName: string, sharedPrivateLinkResource: SharedPrivateLinkResource, - options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams + options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, searchServiceName, sharedPrivateLinkResourceName, sharedPrivateLinkResource, - options + options, ); return poller.pollUntilDone(); } @@ -254,26 +254,26 @@ export class SharedPrivateLinkResourcesImpl * resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the - * Azure Cognitive Search service within the specified resource group. + * Azure AI Search service within the specified resource group. * @param options The options parameters. */ get( resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, - options?: SharedPrivateLinkResourcesGetOptionalParams + options?: SharedPrivateLinkResourcesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, sharedPrivateLinkResourceName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -281,35 +281,34 @@ export class SharedPrivateLinkResourcesImpl * Initiates the deletion of the shared private link resource from the search service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the - * Azure Cognitive Search service within the specified resource group. + * Azure AI Search service within the specified resource group. * @param options The options parameters. */ async beginDelete( resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, - options?: SharedPrivateLinkResourcesDeleteOptionalParams + options?: SharedPrivateLinkResourcesDeleteOptionalParams, ): 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); @@ -318,8 +317,8 @@ export class SharedPrivateLinkResourcesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -327,8 +326,8 @@ export class SharedPrivateLinkResourcesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -338,14 +337,14 @@ export class SharedPrivateLinkResourcesImpl resourceGroupName, searchServiceName, sharedPrivateLinkResourceName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -355,23 +354,23 @@ export class SharedPrivateLinkResourcesImpl * Initiates the deletion of the shared private link resource from the search service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the - * Azure Cognitive Search service within the specified resource group. + * Azure AI Search service within the specified resource group. * @param options The options parameters. */ async beginDeleteAndWait( resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, - options?: SharedPrivateLinkResourcesDeleteOptionalParams + options?: SharedPrivateLinkResourcesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, searchServiceName, sharedPrivateLinkResourceName, - options + options, ); return poller.pollUntilDone(); } @@ -380,18 +379,18 @@ export class SharedPrivateLinkResourcesImpl * Gets a list of all shared private link resources managed by the given service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ private _listByService( resourceGroupName: string, searchServiceName: string, - options?: SharedPrivateLinkResourcesListByServiceOptionalParams + options?: SharedPrivateLinkResourcesListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -399,8 +398,8 @@ export class SharedPrivateLinkResourcesImpl * ListByServiceNext * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. */ @@ -408,11 +407,11 @@ export class SharedPrivateLinkResourcesImpl resourceGroupName: string, searchServiceName: string, nextLink: string, - options?: SharedPrivateLinkResourcesListByServiceNextOptionalParams + options?: SharedPrivateLinkResourcesListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, searchServiceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -420,25 +419,24 @@ export class SharedPrivateLinkResourcesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SharedPrivateLinkResource + bodyMapper: Mappers.SharedPrivateLinkResource, }, 201: { - bodyMapper: Mappers.SharedPrivateLinkResource + bodyMapper: Mappers.SharedPrivateLinkResource, }, 202: { - bodyMapper: Mappers.SharedPrivateLinkResource + bodyMapper: Mappers.SharedPrivateLinkResource, }, 204: { - bodyMapper: Mappers.SharedPrivateLinkResource + bodyMapper: Mappers.SharedPrivateLinkResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.sharedPrivateLinkResource, queryParameters: [Parameters.apiVersion], @@ -447,27 +445,26 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.searchServiceName, Parameters.subscriptionId, - Parameters.sharedPrivateLinkResourceName + Parameters.sharedPrivateLinkResourceName, ], headerParameters: [ Parameters.accept, Parameters.clientRequestId, - Parameters.contentType + Parameters.contentType, ], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedPrivateLinkResource + bodyMapper: Mappers.SharedPrivateLinkResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -475,14 +472,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.searchServiceName, Parameters.subscriptionId, - Parameters.sharedPrivateLinkResourceName + Parameters.sharedPrivateLinkResourceName, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}", httpMethod: "DELETE", responses: { 200: {}, @@ -490,8 +486,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -499,51 +495,50 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.searchServiceName, Parameters.subscriptionId, - Parameters.sharedPrivateLinkResourceName + Parameters.sharedPrivateLinkResourceName, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedPrivateLinkResourceListResult + bodyMapper: Mappers.SharedPrivateLinkResourceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.searchServiceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedPrivateLinkResourceListResult + bodyMapper: Mappers.SharedPrivateLinkResourceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.searchServiceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; diff --git a/sdk/search/arm-search/src/operations/usages.ts b/sdk/search/arm-search/src/operations/usages.ts index da16917cf77c..42bbcdeea1f7 100644 --- a/sdk/search/arm-search/src/operations/usages.ts +++ b/sdk/search/arm-search/src/operations/usages.ts @@ -18,7 +18,7 @@ import { UsagesListBySubscriptionNextOptionalParams, UsagesListBySubscriptionOptionalParams, UsagesListBySubscriptionResponse, - UsagesListBySubscriptionNextResponse + UsagesListBySubscriptionNextResponse, } from "../models"; /// @@ -35,13 +35,13 @@ export class UsagesImpl implements Usages { } /** - * Gets a list of all Search quota usages in the given subscription. + * Get a list of all Azure AI Search quota usages across the subscription. * @param location The unique location name for a Microsoft Azure geographic region. * @param options The options parameters. */ public listBySubscription( location: string, - options?: UsagesListBySubscriptionOptionalParams + options?: UsagesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(location, options); return { @@ -56,14 +56,14 @@ export class UsagesImpl implements Usages { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(location, options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( location: string, options?: UsagesListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: UsagesListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -78,7 +78,7 @@ export class UsagesImpl implements Usages { result = await this._listBySubscriptionNext( location, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -89,28 +89,28 @@ export class UsagesImpl implements Usages { private async *listBySubscriptionPagingAll( location: string, - options?: UsagesListBySubscriptionOptionalParams + options?: UsagesListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage( location, - options + options, )) { yield* page; } } /** - * Gets a list of all Search quota usages in the given subscription. + * Get a list of all Azure AI Search quota usages across the subscription. * @param location The unique location name for a Microsoft Azure geographic region. * @param options The options parameters. */ private _listBySubscription( location: string, - options?: UsagesListBySubscriptionOptionalParams + options?: UsagesListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -123,11 +123,11 @@ export class UsagesImpl implements Usages { private _listBySubscriptionNext( location: string, nextLink: string, - options?: UsagesListBySubscriptionNextOptionalParams + options?: UsagesListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } } @@ -135,43 +135,42 @@ export class UsagesImpl implements Usages { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.QuotaUsagesListResult + bodyMapper: Mappers.QuotaUsagesListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.QuotaUsagesListResult + bodyMapper: Mappers.QuotaUsagesListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; diff --git a/sdk/search/arm-search/src/operationsInterfaces/adminKeys.ts b/sdk/search/arm-search/src/operationsInterfaces/adminKeys.ts index d0309d912727..a5fe08a21b23 100644 --- a/sdk/search/arm-search/src/operationsInterfaces/adminKeys.ts +++ b/sdk/search/arm-search/src/operationsInterfaces/adminKeys.ts @@ -11,31 +11,31 @@ import { AdminKeysGetResponse, AdminKeyKind, AdminKeysRegenerateOptionalParams, - AdminKeysRegenerateResponse + AdminKeysRegenerateResponse, } from "../models"; /** Interface representing a AdminKeys. */ export interface AdminKeys { /** - * Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service. + * Gets the primary and secondary admin API keys for the specified Azure AI Search service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ get( resourceGroupName: string, searchServiceName: string, - options?: AdminKeysGetOptionalParams + options?: AdminKeysGetOptionalParams, ): Promise; /** * Regenerates either the primary or secondary admin API key. You can only regenerate one key at a * time. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param keyKind Specifies which key to regenerate. Valid values include 'primary' and 'secondary'. * @param options The options parameters. */ @@ -43,6 +43,6 @@ export interface AdminKeys { resourceGroupName: string, searchServiceName: string, keyKind: AdminKeyKind, - options?: AdminKeysRegenerateOptionalParams + options?: AdminKeysRegenerateOptionalParams, ): Promise; } diff --git a/sdk/search/arm-search/src/operationsInterfaces/index.ts b/sdk/search/arm-search/src/operationsInterfaces/index.ts index f60f5a357ae2..e8c3c318ae97 100644 --- a/sdk/search/arm-search/src/operationsInterfaces/index.ts +++ b/sdk/search/arm-search/src/operationsInterfaces/index.ts @@ -14,3 +14,4 @@ export * from "./privateLinkResources"; export * from "./privateEndpointConnections"; export * from "./sharedPrivateLinkResources"; export * from "./usages"; +export * from "./networkSecurityPerimeterConfigurations"; diff --git a/sdk/search/arm-search/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts b/sdk/search/arm-search/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts new file mode 100644 index 000000000000..c404ae78ddff --- /dev/null +++ b/sdk/search/arm-search/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts @@ -0,0 +1,90 @@ +/* + * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + NetworkSecurityPerimeterConfiguration, + NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams, + NetworkSecurityPerimeterConfigurationsGetOptionalParams, + NetworkSecurityPerimeterConfigurationsGetResponse, + NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, + NetworkSecurityPerimeterConfigurationsReconcileResponse, +} from "../models"; + +/// +/** Interface representing a NetworkSecurityPerimeterConfigurations. */ +export interface NetworkSecurityPerimeterConfigurations { + /** + * Gets a list of network security perimeter configurations for a search service. + * @param resourceGroupName The name of the resource group within the current subscription. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + searchServiceName: string, + options?: NetworkSecurityPerimeterConfigurationsListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets a network security perimeter configuration. + * @param resourceGroupName The name of the resource group within the current subscription. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param nspConfigName The network security configuration name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + searchServiceName: string, + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsGetOptionalParams, + ): Promise; + /** + * Reconcile network security perimeter configuration for the Azure AI Search resource provider. This + * triggers a manual resync with network security perimeter configurations by ensuring the search + * service carries the latest configuration. + * @param resourceGroupName The name of the resource group within the current subscription. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param nspConfigName The network security configuration name. + * @param options The options parameters. + */ + beginReconcile( + resourceGroupName: string, + searchServiceName: string, + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NetworkSecurityPerimeterConfigurationsReconcileResponse + > + >; + /** + * Reconcile network security perimeter configuration for the Azure AI Search resource provider. This + * triggers a manual resync with network security perimeter configurations by ensuring the search + * service carries the latest configuration. + * @param resourceGroupName The name of the resource group within the current subscription. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param nspConfigName The network security configuration name. + * @param options The options parameters. + */ + beginReconcileAndWait( + resourceGroupName: string, + searchServiceName: string, + nspConfigName: string, + options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams, + ): Promise; +} diff --git a/sdk/search/arm-search/src/operationsInterfaces/operations.ts b/sdk/search/arm-search/src/operationsInterfaces/operations.ts index 1b035e0e851c..21813182553e 100644 --- a/sdk/search/arm-search/src/operationsInterfaces/operations.ts +++ b/sdk/search/arm-search/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/search/arm-search/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/search/arm-search/src/operationsInterfaces/privateEndpointConnections.ts index b5d44e398ab2..19528b1e2609 100644 --- a/sdk/search/arm-search/src/operationsInterfaces/privateEndpointConnections.ts +++ b/sdk/search/arm-search/src/operationsInterfaces/privateEndpointConnections.ts @@ -15,7 +15,7 @@ import { PrivateEndpointConnectionsGetOptionalParams, PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsDeleteOptionalParams, - PrivateEndpointConnectionsDeleteResponse + PrivateEndpointConnectionsDeleteResponse, } from "../models"; /// @@ -25,23 +25,23 @@ export interface PrivateEndpointConnections { * Gets a list of all private endpoint connections in the given service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ listByService( resourceGroupName: string, searchServiceName: string, - options?: PrivateEndpointConnectionsListByServiceOptionalParams + options?: PrivateEndpointConnectionsListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** - * Updates a Private Endpoint connection to the search service in the given resource group. + * Updates a private endpoint connection to the search service in the given resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. - * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure - * Cognitive Search service with the specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure AI + * Search service with the specified resource group. * @param privateEndpointConnection The definition of the private endpoint connection to update. * @param options The options parameters. */ @@ -50,39 +50,39 @@ export interface PrivateEndpointConnections { searchServiceName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsUpdateOptionalParams + options?: PrivateEndpointConnectionsUpdateOptionalParams, ): Promise; /** * Gets the details of the private endpoint connection to the search service in the given resource * group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. - * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure - * Cognitive Search service with the specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure AI + * Search service with the specified resource group. * @param options The options parameters. */ get( resourceGroupName: string, searchServiceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetOptionalParams + options?: PrivateEndpointConnectionsGetOptionalParams, ): Promise; /** * Disconnects the private endpoint connection and deletes it from the search service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. - * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure - * Cognitive Search service with the specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. + * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure AI + * Search service with the specified resource group. * @param options The options parameters. */ delete( resourceGroupName: string, searchServiceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams + options?: PrivateEndpointConnectionsDeleteOptionalParams, ): Promise; } diff --git a/sdk/search/arm-search/src/operationsInterfaces/privateLinkResources.ts b/sdk/search/arm-search/src/operationsInterfaces/privateLinkResources.ts index 69c7b1d93468..5deb1bcff118 100644 --- a/sdk/search/arm-search/src/operationsInterfaces/privateLinkResources.ts +++ b/sdk/search/arm-search/src/operationsInterfaces/privateLinkResources.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PrivateLinkResource, - PrivateLinkResourcesListSupportedOptionalParams + PrivateLinkResourcesListSupportedOptionalParams, } from "../models"; /// @@ -19,13 +19,13 @@ export interface PrivateLinkResources { * Gets a list of all supported private link resource types for the given service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ listSupported( resourceGroupName: string, searchServiceName: string, - options?: PrivateLinkResourcesListSupportedOptionalParams + options?: PrivateLinkResourcesListSupportedOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/search/arm-search/src/operationsInterfaces/queryKeys.ts b/sdk/search/arm-search/src/operationsInterfaces/queryKeys.ts index f456bdff3650..725f9c29ca65 100644 --- a/sdk/search/arm-search/src/operationsInterfaces/queryKeys.ts +++ b/sdk/search/arm-search/src/operationsInterfaces/queryKeys.ts @@ -12,32 +12,32 @@ import { QueryKeysListBySearchServiceOptionalParams, QueryKeysCreateOptionalParams, QueryKeysCreateResponse, - QueryKeysDeleteOptionalParams + QueryKeysDeleteOptionalParams, } from "../models"; /// /** Interface representing a QueryKeys. */ export interface QueryKeys { /** - * Returns the list of query API keys for the given Azure Cognitive Search service. + * Returns the list of query API keys for the given Azure AI Search service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ listBySearchService( resourceGroupName: string, searchServiceName: string, - options?: QueryKeysListBySearchServiceOptionalParams + options?: QueryKeysListBySearchServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Generates a new query key for the specified search service. You can create up to 50 query keys per * service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param name The name of the new query API key. * @param options The options parameters. */ @@ -45,15 +45,15 @@ export interface QueryKeys { resourceGroupName: string, searchServiceName: string, name: string, - options?: QueryKeysCreateOptionalParams + options?: QueryKeysCreateOptionalParams, ): Promise; /** * Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for * regenerating a query key is to delete and then recreate it. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param key The query key to be deleted. Query keys are identified by value, not by name. * @param options The options parameters. */ @@ -61,6 +61,6 @@ export interface QueryKeys { resourceGroupName: string, searchServiceName: string, key: string, - options?: QueryKeysDeleteOptionalParams + options?: QueryKeysDeleteOptionalParams, ): Promise; } diff --git a/sdk/search/arm-search/src/operationsInterfaces/services.ts b/sdk/search/arm-search/src/operationsInterfaces/services.ts index d681f4434bba..691410455fb5 100644 --- a/sdk/search/arm-search/src/operationsInterfaces/services.ts +++ b/sdk/search/arm-search/src/operationsInterfaces/services.ts @@ -21,7 +21,7 @@ import { ServicesGetResponse, ServicesDeleteOptionalParams, ServicesCheckNameAvailabilityOptionalParams, - ServicesCheckNameAvailabilityResponse + ServicesCheckNameAvailabilityResponse, } from "../models"; /// @@ -35,26 +35,26 @@ export interface Services { */ listByResourceGroup( resourceGroupName: string, - options?: ServicesListByResourceGroupOptionalParams + options?: ServicesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a list of all Search services in the given subscription. * @param options The options parameters. */ listBySubscription( - options?: ServicesListBySubscriptionOptionalParams + options?: ServicesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a search service in the given resource group. If the search service already * exists, all properties will be updated with the given values. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service to create or update. Search - * service names must only contain lowercase letters, digits or dashes, cannot use dash as the first - * two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 - * characters in length. Search service names must be globally unique since they are part of the - * service URI (https://.search.windows.net). You cannot change the service name after the - * service is created. + * @param searchServiceName The name of the Azure AI Search service to create or update. Search service + * names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or + * last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in + * length. Search service names must be globally unique since they are part of the service URI + * (https://.search.windows.net). You cannot change the service name after the service is + * created. * @param service The definition of the search service to create or update. * @param options The options parameters. */ @@ -62,7 +62,7 @@ export interface Services { resourceGroupName: string, searchServiceName: string, service: SearchService, - options?: ServicesCreateOrUpdateOptionalParams + options?: ServicesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -74,12 +74,12 @@ export interface Services { * exists, all properties will be updated with the given values. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service to create or update. Search - * service names must only contain lowercase letters, digits or dashes, cannot use dash as the first - * two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 - * characters in length. Search service names must be globally unique since they are part of the - * service URI (https://.search.windows.net). You cannot change the service name after the - * service is created. + * @param searchServiceName The name of the Azure AI Search service to create or update. Search service + * names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or + * last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in + * length. Search service names must be globally unique since they are part of the service URI + * (https://.search.windows.net). You cannot change the service name after the service is + * created. * @param service The definition of the search service to create or update. * @param options The options parameters. */ @@ -87,13 +87,13 @@ export interface Services { resourceGroupName: string, searchServiceName: string, service: SearchService, - options?: ServicesCreateOrUpdateOptionalParams + options?: ServicesCreateOrUpdateOptionalParams, ): Promise; /** * Updates an existing search service in the given resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service to update. + * @param searchServiceName The name of the Azure AI Search service to update. * @param service The definition of the search service to update. * @param options The options parameters. */ @@ -101,33 +101,33 @@ export interface Services { resourceGroupName: string, searchServiceName: string, service: SearchServiceUpdate, - options?: ServicesUpdateOptionalParams + options?: ServicesUpdateOptionalParams, ): Promise; /** * Gets the search service with the given name in the given resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ get( resourceGroupName: string, searchServiceName: string, - options?: ServicesGetOptionalParams + options?: ServicesGetOptionalParams, ): Promise; /** * Deletes a search service in the given resource group, along with its associated resources. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ delete( resourceGroupName: string, searchServiceName: string, - options?: ServicesDeleteOptionalParams + options?: ServicesDeleteOptionalParams, ): Promise; /** * Checks whether or not the given search service name is available for use. Search service names must @@ -139,6 +139,6 @@ export interface Services { */ checkNameAvailability( name: string, - options?: ServicesCheckNameAvailabilityOptionalParams + options?: ServicesCheckNameAvailabilityOptionalParams, ): Promise; } diff --git a/sdk/search/arm-search/src/operationsInterfaces/sharedPrivateLinkResources.ts b/sdk/search/arm-search/src/operationsInterfaces/sharedPrivateLinkResources.ts index f5d34e9b4015..66cb5c606d2e 100644 --- a/sdk/search/arm-search/src/operationsInterfaces/sharedPrivateLinkResources.ts +++ b/sdk/search/arm-search/src/operationsInterfaces/sharedPrivateLinkResources.ts @@ -15,7 +15,7 @@ import { SharedPrivateLinkResourcesCreateOrUpdateResponse, SharedPrivateLinkResourcesGetOptionalParams, SharedPrivateLinkResourcesGetResponse, - SharedPrivateLinkResourcesDeleteOptionalParams + SharedPrivateLinkResourcesDeleteOptionalParams, } from "../models"; /// @@ -25,24 +25,24 @@ export interface SharedPrivateLinkResources { * Gets a list of all shared private link resources managed by the given service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param options The options parameters. */ listByService( resourceGroupName: string, searchServiceName: string, - options?: SharedPrivateLinkResourcesListByServiceOptionalParams + options?: SharedPrivateLinkResourcesListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Initiates the creation or update of a shared private link resource managed by the search service in * the given resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the - * Azure Cognitive Search service within the specified resource group. + * Azure AI Search service within the specified resource group. * @param sharedPrivateLinkResource The definition of the shared private link resource to create or * update. * @param options The options parameters. @@ -52,7 +52,7 @@ export interface SharedPrivateLinkResources { searchServiceName: string, sharedPrivateLinkResourceName: string, sharedPrivateLinkResource: SharedPrivateLinkResource, - options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams + options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -64,10 +64,10 @@ export interface SharedPrivateLinkResources { * the given resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the - * Azure Cognitive Search service within the specified resource group. + * Azure AI Search service within the specified resource group. * @param sharedPrivateLinkResource The definition of the shared private link resource to create or * update. * @param options The options parameters. @@ -77,55 +77,55 @@ export interface SharedPrivateLinkResources { searchServiceName: string, sharedPrivateLinkResourceName: string, sharedPrivateLinkResource: SharedPrivateLinkResource, - options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams + options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams, ): Promise; /** * Gets the details of the shared private link resource managed by the search service in the given * resource group. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the - * Azure Cognitive Search service within the specified resource group. + * Azure AI Search service within the specified resource group. * @param options The options parameters. */ get( resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, - options?: SharedPrivateLinkResourcesGetOptionalParams + options?: SharedPrivateLinkResourcesGetOptionalParams, ): Promise; /** * Initiates the deletion of the shared private link resource from the search service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the - * Azure Cognitive Search service within the specified resource group. + * Azure AI Search service within the specified resource group. * @param options The options parameters. */ beginDelete( resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, - options?: SharedPrivateLinkResourcesDeleteOptionalParams + options?: SharedPrivateLinkResourcesDeleteOptionalParams, ): Promise, void>>; /** * Initiates the deletion of the shared private link resource from the search service. * @param resourceGroupName The name of the resource group within the current subscription. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param searchServiceName The name of the Azure Cognitive Search service associated with the - * specified resource group. + * @param searchServiceName The name of the Azure AI Search service associated with the specified + * resource group. * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the - * Azure Cognitive Search service within the specified resource group. + * Azure AI Search service within the specified resource group. * @param options The options parameters. */ beginDeleteAndWait( resourceGroupName: string, searchServiceName: string, sharedPrivateLinkResourceName: string, - options?: SharedPrivateLinkResourcesDeleteOptionalParams + options?: SharedPrivateLinkResourcesDeleteOptionalParams, ): Promise; } diff --git a/sdk/search/arm-search/src/operationsInterfaces/usages.ts b/sdk/search/arm-search/src/operationsInterfaces/usages.ts index 18cfe26e6d6b..c560fb083128 100644 --- a/sdk/search/arm-search/src/operationsInterfaces/usages.ts +++ b/sdk/search/arm-search/src/operationsInterfaces/usages.ts @@ -9,19 +9,19 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { QuotaUsageResult, - UsagesListBySubscriptionOptionalParams + UsagesListBySubscriptionOptionalParams, } from "../models"; /// /** Interface representing a Usages. */ export interface Usages { /** - * Gets a list of all Search quota usages in the given subscription. + * Get a list of all Azure AI Search quota usages across the subscription. * @param location The unique location name for a Microsoft Azure geographic region. * @param options The options parameters. */ listBySubscription( location: string, - options?: UsagesListBySubscriptionOptionalParams + options?: UsagesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/search/arm-search/src/pagingHelper.ts b/sdk/search/arm-search/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/search/arm-search/src/pagingHelper.ts +++ b/sdk/search/arm-search/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/search/arm-search/src/searchManagementClient.ts b/sdk/search/arm-search/src/searchManagementClient.ts index e042653e4671..c470c0249436 100644 --- a/sdk/search/arm-search/src/searchManagementClient.ts +++ b/sdk/search/arm-search/src/searchManagementClient.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 { @@ -22,7 +22,8 @@ import { PrivateLinkResourcesImpl, PrivateEndpointConnectionsImpl, SharedPrivateLinkResourcesImpl, - UsagesImpl + UsagesImpl, + NetworkSecurityPerimeterConfigurationsImpl, } from "./operations"; import { Operations, @@ -32,14 +33,15 @@ import { PrivateLinkResources, PrivateEndpointConnections, SharedPrivateLinkResources, - Usages + Usages, + NetworkSecurityPerimeterConfigurations, } from "./operationsInterfaces"; import * as Parameters from "./models/parameters"; import * as Mappers from "./models/mappers"; import { SearchManagementClientOptionalParams, UsageBySubscriptionSkuOptionalParams, - UsageBySubscriptionSkuResponse + UsageBySubscriptionSkuResponse, } from "./models"; export class SearchManagementClient extends coreClient.ServiceClient { @@ -57,7 +59,7 @@ export class SearchManagementClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: SearchManagementClientOptionalParams + options?: SearchManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -72,10 +74,10 @@ export class SearchManagementClient extends coreClient.ServiceClient { } const defaults: SearchManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-search/3.2.0`; + const packageDetails = `azsdk-js-arm-search/3.3.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -85,20 +87,21 @@ export class SearchManagementClient 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 ( @@ -108,7 +111,7 @@ export class SearchManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -118,9 +121,9 @@ export class SearchManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -128,7 +131,7 @@ export class SearchManagementClient 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-03-01-preview"; this.operations = new OperationsImpl(this); this.adminKeys = new AdminKeysImpl(this); this.queryKeys = new QueryKeysImpl(this); @@ -137,6 +140,8 @@ export class SearchManagementClient extends coreClient.ServiceClient { this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.sharedPrivateLinkResources = new SharedPrivateLinkResourcesImpl(this); this.usages = new UsagesImpl(this); + this.networkSecurityPerimeterConfigurations = + new NetworkSecurityPerimeterConfigurationsImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -149,7 +154,7 @@ export class SearchManagementClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -163,7 +168,7 @@ export class SearchManagementClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } @@ -171,17 +176,17 @@ export class SearchManagementClient extends coreClient.ServiceClient { /** * Gets the quota usage for a search sku in the given subscription. * @param location The unique location name for a Microsoft Azure geographic region. - * @param skuName The unique search service sku name supported by Azure Cognitive Search. + * @param skuName The unique SKU name that identifies a billable tier. * @param options The options parameters. */ usageBySubscriptionSku( location: string, skuName: string, - options?: UsageBySubscriptionSkuOptionalParams + options?: UsageBySubscriptionSkuOptionalParams, ): Promise { return this.sendOperationRequest( { location, skuName, options }, - usageBySubscriptionSkuOperationSpec + usageBySubscriptionSkuOperationSpec, ); } @@ -193,29 +198,29 @@ export class SearchManagementClient extends coreClient.ServiceClient { privateEndpointConnections: PrivateEndpointConnections; sharedPrivateLinkResources: SharedPrivateLinkResources; usages: Usages; + networkSecurityPerimeterConfigurations: NetworkSecurityPerimeterConfigurations; } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const usageBySubscriptionSkuOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages/{skuName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages/{skuName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.QuotaUsageResult + bodyMapper: Mappers.QuotaUsageResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location, - Parameters.skuName + Parameters.skuName, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; From 600c5dece36240a07090aaf7499315d683245b0d Mon Sep 17 00:00:00 2001 From: ZiWei Chen <98569699+kazrael2119@users.noreply.github.com> Date: Tue, 19 Mar 2024 15:00:12 +0800 Subject: [PATCH 20/20] [mgmt] iotfirmwaredefense release (#28828) https://github.com/Azure/sdk-release-request/issues/4955 --- common/config/rush/pnpm-lock.yaml | 3 +- .../arm-iotfirmwaredefense/CHANGELOG.md | 14 +- .../arm-iotfirmwaredefense/LICENSE | 2 +- .../arm-iotfirmwaredefense/README.md | 4 +- .../arm-iotfirmwaredefense/_meta.json | 8 +- .../arm-iotfirmwaredefense/assets.json | 2 +- .../arm-iotfirmwaredefense/package.json | 18 +- .../review/arm-iotfirmwaredefense.api.md | 659 +++-- .../binaryHardeningListByFirmwareSample.ts} | 41 +- ...cryptoCertificatesListByFirmwareSample.ts} | 41 +- ...e.ts => cryptoKeysListByFirmwareSample.ts} | 41 +- .../samples-dev/cvesListByFirmwareSample.ts | 76 + ...areGenerateBinaryHardeningDetailsSample.ts | 72 - ...areGenerateBinaryHardeningSummarySample.ts | 72 - .../firmwareGenerateComponentDetailsSample.ts | 72 - ...eGenerateCryptoCertificateSummarySample.ts | 71 - .../firmwareGenerateCryptoKeySummarySample.ts | 71 - .../firmwareGenerateCveSummarySample.ts | 72 - ...reListGenerateBinaryHardeningListSample.ts | 78 - ...firmwareListGenerateComponentListSample.ts | 78 - .../firmwareListGenerateCveListSample.ts | 78 - ...mwareListGeneratePasswordHashListSample.ts | 78 - ...eateSample.ts => firmwaresCreateSample.ts} | 40 +- ...leteSample.ts => firmwaresDeleteSample.ts} | 20 +- .../firmwaresGenerateDownloadUrlSample.ts} | 20 +- ...resGenerateFilesystemDownloadUrlSample.ts} | 20 +- ...wareGetSample.ts => firmwaresGetSample.ts} | 20 +- .../firmwaresListByWorkspaceSample.ts} | 20 +- ...dateSample.ts => firmwaresUpdateSample.ts} | 40 +- .../samples-dev/operationsListSample.ts | 4 +- .../passwordHashesListByFirmwareSample.ts | 76 + .../sbomComponentsListByFirmwareSample.ts | 76 + ...SummarySample.ts => summariesGetSample.ts} | 50 +- .../summariesListByFirmwareSample.ts | 76 + .../samples-dev/workspacesCreateSample.ts | 13 +- .../samples-dev/workspacesDeleteSample.ts | 8 +- .../workspacesGenerateUploadUrlSample.ts | 12 +- .../samples-dev/workspacesGetSample.ts | 4 +- .../workspacesListByResourceGroupSample.ts | 8 +- .../workspacesListBySubscriptionSample.ts | 4 +- .../samples-dev/workspacesUpdateSample.ts | 12 +- .../samples/v1-beta/javascript/README.md | 104 - ...areGenerateBinaryHardeningDetailsSample.js | 66 - ...areGenerateBinaryHardeningSummarySample.js | 66 - .../firmwareGenerateComponentDetailsSample.js | 66 - ...eGenerateCryptoCertificateSummarySample.js | 66 - .../firmwareGenerateCryptoKeySummarySample.js | 66 - .../firmwareGenerateCveSummarySample.js | 66 - .../firmwareGenerateSummarySample.js | 66 - ...reListGenerateBinaryHardeningListSample.js | 72 - ...firmwareListGenerateComponentListSample.js | 72 - .../firmwareListGenerateCveListSample.js | 72 - ...mwareListGeneratePasswordHashListSample.js | 72 - .../samples/v1-beta/typescript/README.md | 117 - ...areGenerateBinaryHardeningDetailsSample.ts | 72 - ...areGenerateBinaryHardeningSummarySample.ts | 72 - .../firmwareGenerateComponentDetailsSample.ts | 72 - ...eGenerateCryptoCertificateSummarySample.ts | 71 - .../firmwareGenerateCryptoKeySummarySample.ts | 71 - .../src/firmwareGenerateCveSummarySample.ts | 72 - .../src/firmwareGenerateSummarySample.ts | 72 - ...reListGenerateBinaryHardeningListSample.ts | 78 - ...firmwareListGenerateComponentListSample.ts | 78 - .../src/firmwareListGenerateCveListSample.ts | 78 - ...mwareListGeneratePasswordHashListSample.ts | 78 - .../samples/v1/javascript/README.md | 94 + .../binaryHardeningListByFirmwareSample.js} | 36 +- .../cryptoCertificatesListByFirmwareSample.js | 72 + .../cryptoKeysListByFirmwareSample.js} | 36 +- .../v1/javascript/cvesListByFirmwareSample.js | 64 + .../javascript/firmwaresCreateSample.js} | 34 +- .../javascript/firmwaresDeleteSample.js} | 24 +- .../firmwaresGenerateDownloadUrlSample.js} | 16 +- ...resGenerateFilesystemDownloadUrlSample.js} | 16 +- .../javascript/firmwaresGetSample.js} | 16 +- .../firmwaresListByWorkspaceSample.js} | 22 +- .../javascript/firmwaresUpdateSample.js} | 34 +- .../javascript/operationsListSample.js | 4 +- .../{v1-beta => v1}/javascript/package.json | 6 +- .../passwordHashesListByFirmwareSample.js | 72 + .../{v1-beta => v1}/javascript/sample.env | 0 .../sbomComponentsListByFirmwareSample.js | 72 + .../v1/javascript/summariesGetSample.js | 70 + .../summariesListByFirmwareSample.js | 72 + .../javascript/workspacesCreateSample.js | 5 +- .../javascript/workspacesDeleteSample.js | 4 +- .../workspacesGenerateUploadUrlSample.js | 4 +- .../javascript/workspacesGetSample.js | 4 +- .../workspacesListByResourceGroupSample.js | 4 +- .../workspacesListBySubscriptionSample.js | 4 +- .../javascript/workspacesUpdateSample.js | 6 +- .../samples/v1/typescript/README.md | 107 + .../{v1-beta => v1}/typescript/package.json | 6 +- .../{v1-beta => v1}/typescript/sample.env | 0 .../binaryHardeningListByFirmwareSample.ts | 76 + .../cryptoCertificatesListByFirmwareSample.ts | 76 + .../src/cryptoKeysListByFirmwareSample.ts} | 41 +- .../src/cvesListByFirmwareSample.ts | 76 + .../typescript/src/firmwaresCreateSample.ts} | 40 +- .../typescript/src/firmwaresDeleteSample.ts} | 20 +- .../firmwaresGenerateDownloadUrlSample.ts} | 20 +- ...resGenerateFilesystemDownloadUrlSample.ts} | 20 +- .../typescript/src/firmwaresGetSample.ts} | 20 +- .../src/firmwaresListByWorkspaceSample.ts} | 20 +- .../typescript/src/firmwaresUpdateSample.ts} | 40 +- .../typescript/src/operationsListSample.ts | 4 +- .../src/passwordHashesListByFirmwareSample.ts | 76 + .../src/sbomComponentsListByFirmwareSample.ts | 76 + .../v1/typescript/src/summariesGetSample.ts | 74 + .../src/summariesListByFirmwareSample.ts | 76 + .../typescript/src/workspacesCreateSample.ts | 13 +- .../typescript/src/workspacesDeleteSample.ts | 8 +- .../src/workspacesGenerateUploadUrlSample.ts | 12 +- .../typescript/src/workspacesGetSample.ts | 4 +- .../workspacesListByResourceGroupSample.ts | 8 +- .../src/workspacesListBySubscriptionSample.ts | 4 +- .../typescript/src/workspacesUpdateSample.ts | 12 +- .../{v1-beta => v1}/typescript/tsconfig.json | 0 .../src/ioTFirmwareDefenseClient.ts | 77 +- .../src/models/index.ts | 1212 +++++---- .../src/models/mappers.ts | 2226 +++++++++-------- .../src/models/parameters.ts | 110 +- .../src/operations/binaryHardening.ts | 216 ++ .../src/operations/cryptoCertificates.ts | 216 ++ .../src/operations/cryptoKeys.ts | 216 ++ .../src/operations/cves.ts | 216 ++ .../src/operations/firmwareOperations.ts | 1892 -------------- .../src/operations/firmwares.ts | 469 ++++ .../src/operations/index.ts | 11 +- .../src/operations/operations.ts | 32 +- .../src/operations/passwordHashes.ts | 216 ++ .../src/operations/sbomComponents.ts | 216 ++ .../src/operations/summaries.ts | 265 ++ .../src/operations/workspaces.ts | 173 +- .../operationsInterfaces/binaryHardening.ts | 31 + .../cryptoCertificates.ts | 31 + .../src/operationsInterfaces/cryptoKeys.ts | 31 + .../src/operationsInterfaces/cves.ts | 28 + .../firmwareOperations.ts | 320 --- .../src/operationsInterfaces/firmwares.ts | 123 + .../src/operationsInterfaces/index.ts | 11 +- .../src/operationsInterfaces/operations.ts | 2 +- .../operationsInterfaces/passwordHashes.ts | 31 + .../operationsInterfaces/sbomComponents.ts | 31 + .../src/operationsInterfaces/summaries.ts | 50 + .../src/operationsInterfaces/workspaces.ts | 16 +- .../src/pagingHelper.ts | 2 +- 147 files changed, 6678 insertions(+), 7471 deletions(-) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/{samples/v1-beta/typescript/src/firmwareListGenerateCryptoKeyListSample.ts => samples-dev/binaryHardeningListByFirmwareSample.ts} (54%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/{firmwareListGenerateCryptoCertificateListSample.ts => cryptoCertificatesListByFirmwareSample.ts} (53%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/{firmwareListGenerateCryptoKeyListSample.ts => cryptoKeysListByFirmwareSample.ts} (54%) create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/cvesListByFirmwareSample.ts delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateBinaryHardeningDetailsSample.ts delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateBinaryHardeningSummarySample.ts delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateComponentDetailsSample.ts delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateCryptoCertificateSummarySample.ts delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateCryptoKeySummarySample.ts delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateCveSummarySample.ts delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareListGenerateBinaryHardeningListSample.ts delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareListGenerateComponentListSample.ts delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareListGenerateCveListSample.ts delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareListGeneratePasswordHashListSample.ts rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/{firmwareCreateSample.ts => firmwaresCreateSample.ts} (72%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/{firmwareDeleteSample.ts => firmwaresDeleteSample.ts} (79%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/{samples/v1-beta/typescript/src/firmwareGenerateDownloadUrlSample.ts => samples-dev/firmwaresGenerateDownloadUrlSample.ts} (76%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/{samples/v1-beta/typescript/src/firmwareGenerateFilesystemDownloadUrlSample.ts => samples-dev/firmwaresGenerateFilesystemDownloadUrlSample.ts} (74%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/{firmwareGetSample.ts => firmwaresGetSample.ts} (79%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/{samples/v1-beta/typescript/src/firmwareListByWorkspaceSample.ts => samples-dev/firmwaresListByWorkspaceSample.ts} (77%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/{firmwareUpdateSample.ts => firmwaresUpdateSample.ts} (72%) create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/passwordHashesListByFirmwareSample.ts create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/sbomComponentsListByFirmwareSample.ts rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/{firmwareGenerateSummarySample.ts => summariesGetSample.ts} (50%) create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/summariesListByFirmwareSample.ts delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/README.md delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateBinaryHardeningDetailsSample.js delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateBinaryHardeningSummarySample.js delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateComponentDetailsSample.js delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateCryptoCertificateSummarySample.js delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateCryptoKeySummarySample.js delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateCveSummarySample.js delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateSummarySample.js delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGenerateBinaryHardeningListSample.js delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGenerateComponentListSample.js delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGenerateCveListSample.js delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGeneratePasswordHashListSample.js delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/README.md delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateBinaryHardeningDetailsSample.ts delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateBinaryHardeningSummarySample.ts delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateComponentDetailsSample.ts delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateCryptoCertificateSummarySample.ts delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateCryptoKeySummarySample.ts delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateCveSummarySample.ts delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateSummarySample.ts delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGenerateBinaryHardeningListSample.ts delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGenerateComponentListSample.ts delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGenerateCveListSample.ts delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGeneratePasswordHashListSample.ts create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/README.md rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta/javascript/firmwareListGenerateCryptoKeyListSample.js => v1/javascript/binaryHardeningListByFirmwareSample.js} (51%) create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/cryptoCertificatesListByFirmwareSample.js rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta/javascript/firmwareListGenerateCryptoCertificateListSample.js => v1/javascript/cryptoKeysListByFirmwareSample.js} (50%) create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/cvesListByFirmwareSample.js rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta/javascript/firmwareCreateSample.js => v1/javascript/firmwaresCreateSample.js} (73%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta/javascript/firmwareDeleteSample.js => v1/javascript/firmwaresDeleteSample.js} (75%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta/javascript/firmwareGenerateDownloadUrlSample.js => v1/javascript/firmwaresGenerateDownloadUrlSample.js} (77%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta/javascript/firmwareGenerateFilesystemDownloadUrlSample.js => v1/javascript/firmwaresGenerateFilesystemDownloadUrlSample.js} (75%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta/javascript/firmwareGetSample.js => v1/javascript/firmwaresGetSample.js} (76%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta/javascript/firmwareListByWorkspaceSample.js => v1/javascript/firmwaresListByWorkspaceSample.js} (74%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta/javascript/firmwareUpdateSample.js => v1/javascript/firmwaresUpdateSample.js} (73%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta => v1}/javascript/operationsListSample.js (90%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta => v1}/javascript/package.json (80%) create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/passwordHashesListByFirmwareSample.js rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta => v1}/javascript/sample.env (100%) create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/sbomComponentsListByFirmwareSample.js create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/summariesGetSample.js create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/summariesListByFirmwareSample.js rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta => v1}/javascript/workspacesCreateSample.js (92%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta => v1}/javascript/workspacesDeleteSample.js (91%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta => v1}/javascript/workspacesGenerateUploadUrlSample.js (91%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta => v1}/javascript/workspacesGetSample.js (91%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta => v1}/javascript/workspacesListByResourceGroupSample.js (91%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta => v1}/javascript/workspacesListBySubscriptionSample.js (90%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta => v1}/javascript/workspacesUpdateSample.js (90%) create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/README.md rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta => v1}/typescript/package.json (83%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta => v1}/typescript/sample.env (100%) create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/binaryHardeningListByFirmwareSample.ts create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/cryptoCertificatesListByFirmwareSample.ts rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta/typescript/src/firmwareListGenerateCryptoCertificateListSample.ts => v1/typescript/src/cryptoKeysListByFirmwareSample.ts} (53%) create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/cvesListByFirmwareSample.ts rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta/typescript/src/firmwareCreateSample.ts => v1/typescript/src/firmwaresCreateSample.ts} (72%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta/typescript/src/firmwareDeleteSample.ts => v1/typescript/src/firmwaresDeleteSample.ts} (79%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/{samples-dev/firmwareGenerateDownloadUrlSample.ts => samples/v1/typescript/src/firmwaresGenerateDownloadUrlSample.ts} (76%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/{samples-dev/firmwareGenerateFilesystemDownloadUrlSample.ts => samples/v1/typescript/src/firmwaresGenerateFilesystemDownloadUrlSample.ts} (74%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta/typescript/src/firmwareGetSample.ts => v1/typescript/src/firmwaresGetSample.ts} (79%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/{samples-dev/firmwareListByWorkspaceSample.ts => samples/v1/typescript/src/firmwaresListByWorkspaceSample.ts} (77%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta/typescript/src/firmwareUpdateSample.ts => v1/typescript/src/firmwaresUpdateSample.ts} (72%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta => v1}/typescript/src/operationsListSample.ts (90%) create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/passwordHashesListByFirmwareSample.ts create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/sbomComponentsListByFirmwareSample.ts create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/summariesGetSample.ts create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/summariesListByFirmwareSample.ts rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta => v1}/typescript/src/workspacesCreateSample.ts (88%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta => v1}/typescript/src/workspacesDeleteSample.ts (90%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta => v1}/typescript/src/workspacesGenerateUploadUrlSample.ts (88%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta => v1}/typescript/src/workspacesGetSample.ts (91%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta => v1}/typescript/src/workspacesListByResourceGroupSample.ts (89%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta => v1}/typescript/src/workspacesListBySubscriptionSample.ts (90%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta => v1}/typescript/src/workspacesUpdateSample.ts (88%) rename sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/{v1-beta => v1}/typescript/tsconfig.json (100%) create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/binaryHardening.ts create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/cryptoCertificates.ts create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/cryptoKeys.ts create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/cves.ts delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/firmwareOperations.ts create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/firmwares.ts create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/passwordHashes.ts create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/sbomComponents.ts create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/summaries.ts create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/binaryHardening.ts create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/cryptoCertificates.ts create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/cryptoKeys.ts create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/cves.ts delete mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/firmwareOperations.ts create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/firmwares.ts create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/passwordHashes.ts create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/sbomComponents.ts create mode 100644 sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/summaries.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 82bbd23ccdf3..f3bb969ab6f0 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -14141,7 +14141,7 @@ packages: dev: false file:projects/arm-iotfirmwaredefense.tgz: - resolution: {integrity: sha512-WjogQNEjuVkfiAN9gnaphl5L0qQxUQQeHY9TIv1ntiGFcHFuK4X5irE3erwuZa8aBPCE3lBEnFWIGTfk/ix7Jw==, tarball: file:projects/arm-iotfirmwaredefense.tgz} + resolution: {integrity: sha512-6L8z9n7SicAg/+uC8iXs4gq7+GkDPfDYGLRTxOPP1+A/+8dkBSuxnbcCZWiNmO6pt9GNuhpWJ7Zv0Brvq3I0pQ==, tarball: file:projects/arm-iotfirmwaredefense.tgz} name: '@rush-temp/arm-iotfirmwaredefense' version: 0.0.0 dependencies: @@ -14153,6 +14153,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 diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/CHANGELOG.md b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/CHANGELOG.md index 921530f702a1..c1ff71df7a9d 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/CHANGELOG.md +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/CHANGELOG.md @@ -1,15 +1,5 @@ # Release History - -## 1.0.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 1.0.0-beta.1 (2023-07-19) + +## 1.0.0 (2024-03-08) The package of @azure/arm-iotfirmwaredefense 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/iotfirmwaredefense/arm-iotfirmwaredefense/LICENSE b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/LICENSE +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/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/iotfirmwaredefense/arm-iotfirmwaredefense/README.md b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/README.md index f513552347ea..bd8233be9e40 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/README.md +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/README.md @@ -2,11 +2,11 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure IoTFirmwareDefense client. -The definitions and parameters in this swagger specification will be used to manage the IoT Firmware Defense resources. +Firmware & IoT Security REST API [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-iotfirmwaredefense) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-iotfirmwaredefense?view=azure-node-preview) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-iotfirmwaredefense) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/_meta.json b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/_meta.json index da35f3557091..4d1a00f1f22a 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/_meta.json +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/_meta.json @@ -1,8 +1,8 @@ { - "commit": "14a3cf043a4567366366f3d70829b4ef57711eb3", + "commit": "1a011ff0d72315ef3c530fe545c4fe82d0450201", "readme": "specification/fist/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\\fist\\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\\fist\\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/iotfirmwaredefense/arm-iotfirmwaredefense/assets.json b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/assets.json index 3541cd0e3205..2b679644a0be 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/assets.json +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/iotfirmwaredefense/arm-iotfirmwaredefense", - "Tag": "js/iotfirmwaredefense/arm-iotfirmwaredefense_30d53907bb" + "Tag": "js/iotfirmwaredefense/arm-iotfirmwaredefense_153e6c5c5a" } diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/package.json b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/package.json index c4f0059c5ca0..89f19bceb454 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/package.json +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/package.json @@ -3,15 +3,15 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for IoTFirmwareDefenseClient.", - "version": "1.0.0-beta.2", + "version": "1.0.0", "engines": { "node": ">=18.0.0" }, "dependencies": { "@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": [ @@ -30,19 +30,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", @@ -75,7 +76,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", @@ -113,4 +113,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-iotfirmwaredefense?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/review/arm-iotfirmwaredefense.api.md b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/review/arm-iotfirmwaredefense.api.md index 54cb39f1c083..acabb3ca7914 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/review/arm-iotfirmwaredefense.api.md +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/review/arm-iotfirmwaredefense.api.md @@ -13,53 +13,63 @@ export type ActionType = string; // @public export interface BinaryHardening { - architecture?: string; - binaryHardeningId?: string; - canary?: CanaryFlag; - class?: string; - nx?: NxFlag; - path?: string; - pie?: PieFlag; - relro?: RelroFlag; - rpath?: string; - runpath?: string; - stripped?: StrippedFlag; + listByFirmware(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: BinaryHardeningListByFirmwareOptionalParams): PagedAsyncIterableIterator; } // @public -export interface BinaryHardeningList { - nextLink?: string; - readonly value?: BinaryHardening[]; +export interface BinaryHardeningFeatures { + canary?: boolean; + nx?: boolean; + pie?: boolean; + relro?: boolean; + stripped?: boolean; } // @public -export interface BinaryHardeningSummary { - canary?: number; - nx?: number; - pie?: number; - relro?: number; - stripped?: number; - totalFiles?: number; +export interface BinaryHardeningListByFirmwareNextOptionalParams extends coreClient.OperationOptions { } // @public -export type CanaryFlag = string; +export type BinaryHardeningListByFirmwareNextResponse = BinaryHardeningListResult; // @public -export interface Component { - componentId?: string; - componentName?: string; - isUpdateAvailable?: IsUpdateAvailable; - license?: string; - paths?: string[]; - releaseDate?: Date; - version?: string; +export interface BinaryHardeningListByFirmwareOptionalParams extends coreClient.OperationOptions { } // @public -export interface ComponentList { +export type BinaryHardeningListByFirmwareResponse = BinaryHardeningListResult; + +// @public +export interface BinaryHardeningListResult { nextLink?: string; - readonly value?: Component[]; + readonly value?: BinaryHardeningResource[]; +} + +// @public +export interface BinaryHardeningResource extends Resource { + properties?: BinaryHardeningResult; +} + +// @public +export interface BinaryHardeningResult { + architecture?: string; + binaryHardeningId?: string; + class?: string; + features?: BinaryHardeningFeatures; + filePath?: string; + rpath?: string; + runpath?: string; +} + +// @public +export interface BinaryHardeningSummaryResource extends SummaryResourceProperties { + canary?: number; + nx?: number; + pie?: number; + relro?: number; + stripped?: number; + summaryType: "BinaryHardening"; + totalFiles?: number; } // @public @@ -72,12 +82,12 @@ export interface CryptoCertificate { expirationDate?: Date; readonly filePaths?: string[]; fingerprint?: string; - isExpired?: IsExpired; - isSelfSigned?: IsSelfSigned; - isShortKeySize?: IsShortKeySize; + isExpired?: boolean; + isSelfSigned?: boolean; + isShortKeySize?: boolean; issuedDate?: Date; issuer?: CryptoCertificateEntity; - isWeakSignature?: IsWeakSignature; + isWeakSignature?: boolean; keyAlgorithm?: string; keySize?: number; name?: string; @@ -99,18 +109,43 @@ export interface CryptoCertificateEntity { } // @public -export interface CryptoCertificateList { +export interface CryptoCertificateListResult { nextLink?: string; - readonly value?: CryptoCertificate[]; + readonly value?: CryptoCertificateResource[]; +} + +// @public +export interface CryptoCertificateResource extends Resource { + properties?: CryptoCertificate; +} + +// @public +export interface CryptoCertificates { + listByFirmware(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: CryptoCertificatesListByFirmwareOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface CryptoCertificatesListByFirmwareNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface CryptoCertificateSummary { +export type CryptoCertificatesListByFirmwareNextResponse = CryptoCertificateListResult; + +// @public +export interface CryptoCertificatesListByFirmwareOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CryptoCertificatesListByFirmwareResponse = CryptoCertificateListResult; + +// @public +export interface CryptoCertificateSummaryResource extends SummaryResourceProperties { expired?: number; expiringSoon?: number; pairedKeys?: number; selfSigned?: number; shortKeySize?: number; + summaryType: "CryptoCertificate"; totalCertificates?: number; weakSignature?: number; } @@ -119,7 +154,7 @@ export interface CryptoCertificateSummary { interface CryptoKey_2 { cryptoKeyId?: string; readonly filePaths?: string[]; - isShortKeySize?: IsShortKeySize; + isShortKeySize?: boolean; keyAlgorithm?: string; keySize?: number; keyType?: string; @@ -129,179 +164,137 @@ interface CryptoKey_2 { export { CryptoKey_2 as CryptoKey } // @public -export interface CryptoKeyList { +export interface CryptoKeyListResult { nextLink?: string; - readonly value?: CryptoKey_2[]; + readonly value?: CryptoKeyResource[]; } // @public -export interface CryptoKeySummary { - pairedKeys?: number; - privateKeys?: number; - publicKeys?: number; - shortKeySize?: number; - totalKeys?: number; +export interface CryptoKeyResource extends Resource { + properties?: CryptoKey_2; } // @public -export interface Cve { - component?: Record; - cveId?: string; - cvssScore?: string; - cvssV2Score?: string; - cvssV3Score?: string; - cvssVersion?: string; - description?: string; - readonly links?: CveLink[]; - name?: string; - publishDate?: Date; - severity?: string; - updatedDate?: Date; +export interface CryptoKeys { + listByFirmware(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: CryptoKeysListByFirmwareOptionalParams): PagedAsyncIterableIterator; } // @public -export interface CveComponent { - componentId?: string; - name?: string; - version?: string; +export interface CryptoKeysListByFirmwareNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface CveLink { - href?: string; - label?: string; -} - -// @public -export interface CveList { - nextLink?: string; - readonly value?: Cve[]; -} - -// @public -export interface CveSummary { - critical?: number; - high?: number; - low?: number; - medium?: number; - undefined?: number; - unknown?: number; -} +export type CryptoKeysListByFirmwareNextResponse = CryptoKeyListResult; // @public -export interface ErrorAdditionalInfo { - readonly info?: Record; - readonly type?: string; +export interface CryptoKeysListByFirmwareOptionalParams extends coreClient.OperationOptions { } // @public -export interface ErrorDetail { - readonly additionalInfo?: ErrorAdditionalInfo[]; - readonly code?: string; - readonly details?: ErrorDetail[]; - readonly message?: string; - readonly target?: string; -} +export type CryptoKeysListByFirmwareResponse = CryptoKeyListResult; // @public -export interface ErrorResponse { - error?: ErrorDetail; +export interface CryptoKeySummaryResource extends SummaryResourceProperties { + pairedKeys?: number; + privateKeys?: number; + publicKeys?: number; + shortKeySize?: number; + summaryType: "CryptoKey"; + totalKeys?: number; } // @public -export interface Firmware extends ProxyResource { - description?: string; - fileName?: string; - fileSize?: number; - model?: string; - readonly provisioningState?: ProvisioningState; - status?: Status; - statusMessages?: Record[]; - vendor?: string; +export interface CveComponent { + componentId?: string; + name?: string; version?: string; } // @public -export interface FirmwareCreateOptionalParams extends coreClient.OperationOptions { +export interface CveLink { + href?: string; + label?: string; } // @public -export type FirmwareCreateResponse = Firmware; - -// @public -export interface FirmwareDeleteOptionalParams extends coreClient.OperationOptions { +export interface CveListResult { + nextLink?: string; + readonly value?: CveResource[]; } // @public -export interface FirmwareGenerateBinaryHardeningDetailsOptionalParams extends coreClient.OperationOptions { +export interface CveResource extends Resource { + properties?: CveResult; } // @public -export type FirmwareGenerateBinaryHardeningDetailsResponse = BinaryHardening; - -// @public -export interface FirmwareGenerateBinaryHardeningSummaryOptionalParams extends coreClient.OperationOptions { +export interface CveResult { + component?: CveComponent; + cveId?: string; + cvssScore?: string; + cvssV2Score?: string; + cvssV3Score?: string; + cvssVersion?: string; + description?: string; + readonly links?: CveLink[]; + name?: string; + severity?: string; } // @public -export type FirmwareGenerateBinaryHardeningSummaryResponse = BinaryHardeningSummary; - -// @public -export interface FirmwareGenerateComponentDetailsOptionalParams extends coreClient.OperationOptions { +export interface Cves { + listByFirmware(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: CvesListByFirmwareOptionalParams): PagedAsyncIterableIterator; } // @public -export type FirmwareGenerateComponentDetailsResponse = Component; - -// @public -export interface FirmwareGenerateCryptoCertificateSummaryOptionalParams extends coreClient.OperationOptions { +export interface CvesListByFirmwareNextOptionalParams extends coreClient.OperationOptions { } // @public -export type FirmwareGenerateCryptoCertificateSummaryResponse = CryptoCertificateSummary; +export type CvesListByFirmwareNextResponse = CveListResult; // @public -export interface FirmwareGenerateCryptoKeySummaryOptionalParams extends coreClient.OperationOptions { +export interface CvesListByFirmwareOptionalParams extends coreClient.OperationOptions { } // @public -export type FirmwareGenerateCryptoKeySummaryResponse = CryptoKeySummary; +export type CvesListByFirmwareResponse = CveListResult; // @public -export interface FirmwareGenerateCveSummaryOptionalParams extends coreClient.OperationOptions { +export interface CveSummary extends SummaryResourceProperties { + critical?: number; + high?: number; + low?: number; + medium?: number; + summaryType: "CVE"; + unknown?: number; } // @public -export type FirmwareGenerateCveSummaryResponse = CveSummary; - -// @public -export interface FirmwareGenerateDownloadUrlOptionalParams extends coreClient.OperationOptions { +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; } // @public -export type FirmwareGenerateDownloadUrlResponse = UrlToken; - -// @public -export interface FirmwareGenerateFilesystemDownloadUrlOptionalParams extends coreClient.OperationOptions { +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; } // @public -export type FirmwareGenerateFilesystemDownloadUrlResponse = UrlToken; - -// @public -export interface FirmwareGenerateSummaryOptionalParams extends coreClient.OperationOptions { +export interface ErrorResponse { + error?: ErrorDetail; } // @public -export type FirmwareGenerateSummaryResponse = FirmwareSummary; - -// @public -export interface FirmwareGetOptionalParams extends coreClient.OperationOptions { +export interface Firmware extends Resource { + properties?: FirmwareProperties; } -// @public -export type FirmwareGetResponse = Firmware; - // @public export interface FirmwareList { nextLink?: string; @@ -309,129 +302,77 @@ export interface FirmwareList { } // @public -export interface FirmwareListByWorkspaceNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type FirmwareListByWorkspaceNextResponse = FirmwareList; - -// @public -export interface FirmwareListByWorkspaceOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type FirmwareListByWorkspaceResponse = FirmwareList; - -// @public -export interface FirmwareListGenerateBinaryHardeningListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type FirmwareListGenerateBinaryHardeningListNextResponse = BinaryHardeningList; - -// @public -export interface FirmwareListGenerateBinaryHardeningListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type FirmwareListGenerateBinaryHardeningListResponse = BinaryHardeningList; - -// @public -export interface FirmwareListGenerateComponentListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type FirmwareListGenerateComponentListNextResponse = ComponentList; - -// @public -export interface FirmwareListGenerateComponentListOptionalParams extends coreClient.OperationOptions { +export interface FirmwareProperties { + description?: string; + fileName?: string; + fileSize?: number; + model?: string; + readonly provisioningState?: ProvisioningState; + status?: Status; + statusMessages?: StatusMessage[]; + vendor?: string; + version?: string; } // @public -export type FirmwareListGenerateComponentListResponse = ComponentList; - -// @public -export interface FirmwareListGenerateCryptoCertificateListNextOptionalParams extends coreClient.OperationOptions { +export interface Firmwares { + create(resourceGroupName: string, workspaceName: string, firmwareId: string, firmware: Firmware, options?: FirmwaresCreateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: FirmwaresDeleteOptionalParams): Promise; + generateDownloadUrl(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: FirmwaresGenerateDownloadUrlOptionalParams): Promise; + generateFilesystemDownloadUrl(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: FirmwaresGenerateFilesystemDownloadUrlOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: FirmwaresGetOptionalParams): Promise; + listByWorkspace(resourceGroupName: string, workspaceName: string, options?: FirmwaresListByWorkspaceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, workspaceName: string, firmwareId: string, firmware: FirmwareUpdateDefinition, options?: FirmwaresUpdateOptionalParams): Promise; } // @public -export type FirmwareListGenerateCryptoCertificateListNextResponse = CryptoCertificateList; - -// @public -export interface FirmwareListGenerateCryptoCertificateListOptionalParams extends coreClient.OperationOptions { +export interface FirmwaresCreateOptionalParams extends coreClient.OperationOptions { } // @public -export type FirmwareListGenerateCryptoCertificateListResponse = CryptoCertificateList; +export type FirmwaresCreateResponse = Firmware; // @public -export interface FirmwareListGenerateCryptoKeyListNextOptionalParams extends coreClient.OperationOptions { +export interface FirmwaresDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export type FirmwareListGenerateCryptoKeyListNextResponse = CryptoKeyList; - -// @public -export interface FirmwareListGenerateCryptoKeyListOptionalParams extends coreClient.OperationOptions { +export interface FirmwaresGenerateDownloadUrlOptionalParams extends coreClient.OperationOptions { } // @public -export type FirmwareListGenerateCryptoKeyListResponse = CryptoKeyList; +export type FirmwaresGenerateDownloadUrlResponse = UrlToken; // @public -export interface FirmwareListGenerateCveListNextOptionalParams extends coreClient.OperationOptions { +export interface FirmwaresGenerateFilesystemDownloadUrlOptionalParams extends coreClient.OperationOptions { } // @public -export type FirmwareListGenerateCveListNextResponse = CveList; +export type FirmwaresGenerateFilesystemDownloadUrlResponse = UrlToken; // @public -export interface FirmwareListGenerateCveListOptionalParams extends coreClient.OperationOptions { +export interface FirmwaresGetOptionalParams extends coreClient.OperationOptions { } // @public -export type FirmwareListGenerateCveListResponse = CveList; +export type FirmwaresGetResponse = Firmware; // @public -export interface FirmwareListGeneratePasswordHashListNextOptionalParams extends coreClient.OperationOptions { +export interface FirmwaresListByWorkspaceNextOptionalParams extends coreClient.OperationOptions { } // @public -export type FirmwareListGeneratePasswordHashListNextResponse = PasswordHashList; +export type FirmwaresListByWorkspaceNextResponse = FirmwareList; // @public -export interface FirmwareListGeneratePasswordHashListOptionalParams extends coreClient.OperationOptions { +export interface FirmwaresListByWorkspaceOptionalParams extends coreClient.OperationOptions { } // @public -export type FirmwareListGeneratePasswordHashListResponse = PasswordHashList; - -// @public -export interface FirmwareOperations { - create(resourceGroupName: string, workspaceName: string, firmwareId: string, firmware: Firmware, options?: FirmwareCreateOptionalParams): Promise; - delete(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: FirmwareDeleteOptionalParams): Promise; - generateBinaryHardeningDetails(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: FirmwareGenerateBinaryHardeningDetailsOptionalParams): Promise; - generateBinaryHardeningSummary(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: FirmwareGenerateBinaryHardeningSummaryOptionalParams): Promise; - generateComponentDetails(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: FirmwareGenerateComponentDetailsOptionalParams): Promise; - generateCryptoCertificateSummary(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: FirmwareGenerateCryptoCertificateSummaryOptionalParams): Promise; - generateCryptoKeySummary(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: FirmwareGenerateCryptoKeySummaryOptionalParams): Promise; - generateCveSummary(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: FirmwareGenerateCveSummaryOptionalParams): Promise; - generateDownloadUrl(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: FirmwareGenerateDownloadUrlOptionalParams): Promise; - generateFilesystemDownloadUrl(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: FirmwareGenerateFilesystemDownloadUrlOptionalParams): Promise; - generateSummary(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: FirmwareGenerateSummaryOptionalParams): Promise; - get(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: FirmwareGetOptionalParams): Promise; - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: FirmwareListByWorkspaceOptionalParams): PagedAsyncIterableIterator; - listGenerateBinaryHardeningList(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: FirmwareListGenerateBinaryHardeningListOptionalParams): PagedAsyncIterableIterator; - listGenerateComponentList(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: FirmwareListGenerateComponentListOptionalParams): PagedAsyncIterableIterator; - listGenerateCryptoCertificateList(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: FirmwareListGenerateCryptoCertificateListOptionalParams): PagedAsyncIterableIterator; - listGenerateCryptoKeyList(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: FirmwareListGenerateCryptoKeyListOptionalParams): PagedAsyncIterableIterator; - listGenerateCveList(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: FirmwareListGenerateCveListOptionalParams): PagedAsyncIterableIterator; - listGeneratePasswordHashList(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: FirmwareListGeneratePasswordHashListOptionalParams): PagedAsyncIterableIterator; - update(resourceGroupName: string, workspaceName: string, firmwareId: string, firmware: FirmwareUpdateDefinition, options?: FirmwareUpdateOptionalParams): Promise; -} +export type FirmwaresListByWorkspaceResponse = FirmwareList; // @public -export interface FirmwareSummary { +export interface FirmwareSummary extends SummaryResourceProperties { analysisTimeSeconds?: number; binaryCount?: number; componentCount?: number; @@ -439,27 +380,20 @@ export interface FirmwareSummary { extractedSize?: number; fileSize?: number; rootFileSystems?: number; + summaryType: "Firmware"; } // @public -export interface FirmwareUpdateDefinition { - description?: string; - fileName?: string; - fileSize?: number; - model?: string; - readonly provisioningState?: ProvisioningState; - status?: Status; - statusMessages?: Record[]; - vendor?: string; - version?: string; +export interface FirmwaresUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export interface FirmwareUpdateOptionalParams extends coreClient.OperationOptions { -} +export type FirmwaresUpdateResponse = Firmware; // @public -export type FirmwareUpdateResponse = Firmware; +export interface FirmwareUpdateDefinition { + properties?: FirmwareProperties; +} // @public export interface GenerateUploadUrlRequest { @@ -477,12 +411,26 @@ export class IoTFirmwareDefenseClient extends coreClient.ServiceClient { // (undocumented) apiVersion: string; // (undocumented) - firmwareOperations: FirmwareOperations; + binaryHardening: BinaryHardening; + // (undocumented) + cryptoCertificates: CryptoCertificates; + // (undocumented) + cryptoKeys: CryptoKeys; + // (undocumented) + cves: Cves; + // (undocumented) + firmwares: Firmwares; // (undocumented) operations: Operations; // (undocumented) + passwordHashes: PasswordHashes; + // (undocumented) + sbomComponents: SbomComponents; + // (undocumented) subscriptionId: string; // (undocumented) + summaries: Summaries; + // (undocumented) workspaces: Workspaces; } @@ -493,32 +441,11 @@ export interface IoTFirmwareDefenseClientOptionalParams extends coreClient.Servi endpoint?: string; } -// @public -export type IsExpired = string; - -// @public -export type IsSelfSigned = string; - -// @public -export type IsShortKeySize = string; - -// @public -export type IsUpdateAvailable = string; - -// @public -export type IsWeakSignature = string; - // @public export enum KnownActionType { Internal = "Internal" } -// @public -export enum KnownCanaryFlag { - False = "False", - True = "True" -} - // @public export enum KnownCreatedByType { Application = "Application", @@ -527,42 +454,6 @@ export enum KnownCreatedByType { User = "User" } -// @public -export enum KnownIsExpired { - False = "False", - True = "True" -} - -// @public -export enum KnownIsSelfSigned { - False = "False", - True = "True" -} - -// @public -export enum KnownIsShortKeySize { - False = "False", - True = "True" -} - -// @public -export enum KnownIsUpdateAvailable { - False = "False", - True = "True" -} - -// @public -export enum KnownIsWeakSignature { - False = "False", - True = "True" -} - -// @public -export enum KnownNxFlag { - False = "False", - True = "True" -} - // @public export enum KnownOrigin { System = "system", @@ -570,12 +461,6 @@ export enum KnownOrigin { UserSystem = "user,system" } -// @public -export enum KnownPieFlag { - False = "False", - True = "True" -} - // @public export enum KnownProvisioningState { Accepted = "Accepted", @@ -584,12 +469,6 @@ export enum KnownProvisioningState { Succeeded = "Succeeded" } -// @public -export enum KnownRelroFlag { - False = "False", - True = "True" -} - // @public export enum KnownStatus { Analyzing = "Analyzing", @@ -600,13 +479,22 @@ export enum KnownStatus { } // @public -export enum KnownStrippedFlag { - False = "False", - True = "True" +export enum KnownSummaryName { + BinaryHardening = "BinaryHardening", + CryptoCertificate = "CryptoCertificate", + CryptoKey = "CryptoKey", + CVE = "CVE", + Firmware = "Firmware" } // @public -export type NxFlag = string; +export enum KnownSummaryType { + BinaryHardening = "BinaryHardening", + CryptoCertificate = "CryptoCertificate", + CryptoKey = "CryptoKey", + CVE = "CVE", + Firmware = "Firmware" +} // @public export interface Operation { @@ -655,7 +543,6 @@ export type Origin = string; // @public export interface PairedKey { - additionalProperties?: Record; id?: string; type?: string; } @@ -672,23 +559,37 @@ export interface PasswordHash { } // @public -export interface PasswordHashList { - nextLink?: string; - readonly value?: PasswordHash[]; +export interface PasswordHashes { + listByFirmware(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: PasswordHashesListByFirmwareOptionalParams): PagedAsyncIterableIterator; } // @public -export type PieFlag = string; +export interface PasswordHashesListByFirmwareNextOptionalParams extends coreClient.OperationOptions { +} // @public -export type ProvisioningState = string; +export type PasswordHashesListByFirmwareNextResponse = PasswordHashListResult; + +// @public +export interface PasswordHashesListByFirmwareOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PasswordHashesListByFirmwareResponse = PasswordHashListResult; + +// @public +export interface PasswordHashListResult { + nextLink?: string; + readonly value?: PasswordHashResource[]; +} // @public -export interface ProxyResource extends Resource { +export interface PasswordHashResource extends Resource { + properties?: PasswordHash; } // @public -export type RelroFlag = string; +export type ProvisioningState = string; // @public export interface Resource { @@ -698,11 +599,105 @@ export interface Resource { readonly type?: string; } +// @public +export interface SbomComponent { + componentId?: string; + componentName?: string; + filePaths?: string[]; + license?: string; + version?: string; +} + +// @public +export interface SbomComponentListResult { + nextLink?: string; + readonly value?: SbomComponentResource[]; +} + +// @public +export interface SbomComponentResource extends Resource { + properties?: SbomComponent; +} + +// @public +export interface SbomComponents { + listByFirmware(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: SbomComponentsListByFirmwareOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SbomComponentsListByFirmwareNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SbomComponentsListByFirmwareNextResponse = SbomComponentListResult; + +// @public +export interface SbomComponentsListByFirmwareOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SbomComponentsListByFirmwareResponse = SbomComponentListResult; + // @public export type Status = string; // @public -export type StrippedFlag = string; +export interface StatusMessage { + errorCode?: number; + message?: string; +} + +// @public +export interface Summaries { + get(resourceGroupName: string, workspaceName: string, firmwareId: string, summaryName: SummaryName, options?: SummariesGetOptionalParams): Promise; + listByFirmware(resourceGroupName: string, workspaceName: string, firmwareId: string, options?: SummariesListByFirmwareOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SummariesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SummariesGetResponse = SummaryResource; + +// @public +export interface SummariesListByFirmwareNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SummariesListByFirmwareNextResponse = SummaryListResult; + +// @public +export interface SummariesListByFirmwareOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SummariesListByFirmwareResponse = SummaryListResult; + +// @public +export interface SummaryListResult { + nextLink?: string; + readonly value?: SummaryResource[]; +} + +// @public +export type SummaryName = string; + +// @public +export interface SummaryResource extends Resource { + readonly properties?: SummaryResourcePropertiesUnion; +} + +// @public +export interface SummaryResourceProperties { + summaryType: "Firmware" | "CVE" | "BinaryHardening" | "CryptoCertificate" | "CryptoKey"; +} + +// @public (undocumented) +export type SummaryResourcePropertiesUnion = SummaryResourceProperties | FirmwareSummary | CveSummary | BinaryHardeningSummaryResource | CryptoCertificateSummaryResource | CryptoKeySummaryResource; + +// @public +export type SummaryType = string; // @public export interface SystemData { @@ -724,13 +719,12 @@ export interface TrackedResource extends Resource { // @public export interface UrlToken { - readonly uploadUrl?: string; readonly url?: string; } // @public export interface Workspace extends TrackedResource { - readonly provisioningState?: ProvisioningState; + properties?: WorkspaceProperties; } // @public @@ -739,6 +733,11 @@ export interface WorkspaceList { readonly value?: Workspace[]; } +// @public +export interface WorkspaceProperties { + readonly provisioningState?: ProvisioningState; +} + // @public export interface Workspaces { create(resourceGroupName: string, workspaceName: string, workspace: Workspace, options?: WorkspacesCreateOptionalParams): Promise; @@ -812,7 +811,7 @@ export type WorkspacesUpdateResponse = Workspace; // @public export interface WorkspaceUpdateDefinition { - readonly provisioningState?: ProvisioningState; + properties?: WorkspaceProperties; } // (No @packageDocumentation comment for this package) diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGenerateCryptoKeyListSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/binaryHardeningListByFirmwareSample.ts similarity index 54% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGenerateCryptoKeyListSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/binaryHardeningListByFirmwareSample.ts index 06c83a901318..4573ecc76a26 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGenerateCryptoKeyListSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/binaryHardeningListByFirmwareSample.ts @@ -15,26 +15,26 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to The operation to list all crypto keys for a firmware. + * This sample demonstrates how to Lists binary hardening analysis results of a firmware. * - * @summary The operation to list all crypto keys for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoKeyList_MaximumSet_Gen.json + * @summary Lists binary hardening analysis results of a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/BinaryHardening_ListByFirmware_MaximumSet_Gen.json */ -async function firmwareListGenerateCryptoKeyListMaximumSetGen() { +async function binaryHardeningListByFirmwareMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA"; + "00000000-0000-0000-0000-000000000000"; const resourceGroupName = process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; const workspaceName = "default"; - const firmwareId = "DECAFBAD-0000-0000-0000-BADBADBADBAD"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateCryptoKeyList( + for await (let item of client.binaryHardening.listByFirmware( resourceGroupName, workspaceName, - firmwareId + firmwareId, )) { resArray.push(item); } @@ -42,27 +42,26 @@ async function firmwareListGenerateCryptoKeyListMaximumSetGen() { } /** - * This sample demonstrates how to The operation to list all crypto keys for a firmware. + * This sample demonstrates how to Lists binary hardening analysis results of a firmware. * - * @summary The operation to list all crypto keys for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoKeyList_MinimumSet_Gen.json + * @summary Lists binary hardening analysis results of a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/BinaryHardening_ListByFirmware_MinimumSet_Gen.json */ -async function firmwareListGenerateCryptoKeyListMinimumSetGen() { +async function binaryHardeningListByFirmwareMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA"; + "00000000-0000-0000-0000-000000000000"; const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "j5QE_"; - const firmwareId = "wujtpcgypfpqseyrsebolarkspy"; + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateCryptoKeyList( + for await (let item of client.binaryHardening.listByFirmware( resourceGroupName, workspaceName, - firmwareId + firmwareId, )) { resArray.push(item); } @@ -70,8 +69,8 @@ async function firmwareListGenerateCryptoKeyListMinimumSetGen() { } async function main() { - firmwareListGenerateCryptoKeyListMaximumSetGen(); - firmwareListGenerateCryptoKeyListMinimumSetGen(); + binaryHardeningListByFirmwareMaximumSetGen(); + binaryHardeningListByFirmwareMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareListGenerateCryptoCertificateListSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/cryptoCertificatesListByFirmwareSample.ts similarity index 53% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareListGenerateCryptoCertificateListSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/cryptoCertificatesListByFirmwareSample.ts index d3ba4f6cd80b..6ccda8905df0 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareListGenerateCryptoCertificateListSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/cryptoCertificatesListByFirmwareSample.ts @@ -15,26 +15,26 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to The operation to list all crypto certificates for a firmware. + * This sample demonstrates how to Lists cryptographic certificate analysis results found in a firmware. * - * @summary The operation to list all crypto certificates for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoCertificateList_MaximumSet_Gen.json + * @summary Lists cryptographic certificate analysis results found in a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/CryptoCertificates_ListByFirmware_MaximumSet_Gen.json */ -async function firmwareListGenerateCryptoCertificateListMaximumSetGen() { +async function cryptoCertificatesListByFirmwareMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA"; + "00000000-0000-0000-0000-000000000000"; const resourceGroupName = process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; const workspaceName = "default"; - const firmwareId = "DECAFBAD-0000-0000-0000-BADBADBADBAD"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateCryptoCertificateList( + for await (let item of client.cryptoCertificates.listByFirmware( resourceGroupName, workspaceName, - firmwareId + firmwareId, )) { resArray.push(item); } @@ -42,27 +42,26 @@ async function firmwareListGenerateCryptoCertificateListMaximumSetGen() { } /** - * This sample demonstrates how to The operation to list all crypto certificates for a firmware. + * This sample demonstrates how to Lists cryptographic certificate analysis results found in a firmware. * - * @summary The operation to list all crypto certificates for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoCertificateList_MinimumSet_Gen.json + * @summary Lists cryptographic certificate analysis results found in a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/CryptoCertificates_ListByFirmware_MinimumSet_Gen.json */ -async function firmwareListGenerateCryptoCertificateListMinimumSetGen() { +async function cryptoCertificatesListByFirmwareMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA"; + "00000000-0000-0000-0000-000000000000"; const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "j5QE_"; - const firmwareId = "wujtpcgypfpqseyrsebolarkspy"; + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateCryptoCertificateList( + for await (let item of client.cryptoCertificates.listByFirmware( resourceGroupName, workspaceName, - firmwareId + firmwareId, )) { resArray.push(item); } @@ -70,8 +69,8 @@ async function firmwareListGenerateCryptoCertificateListMinimumSetGen() { } async function main() { - firmwareListGenerateCryptoCertificateListMaximumSetGen(); - firmwareListGenerateCryptoCertificateListMinimumSetGen(); + cryptoCertificatesListByFirmwareMaximumSetGen(); + cryptoCertificatesListByFirmwareMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareListGenerateCryptoKeyListSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/cryptoKeysListByFirmwareSample.ts similarity index 54% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareListGenerateCryptoKeyListSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/cryptoKeysListByFirmwareSample.ts index 06c83a901318..145eab076365 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareListGenerateCryptoKeyListSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/cryptoKeysListByFirmwareSample.ts @@ -15,26 +15,26 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to The operation to list all crypto keys for a firmware. + * This sample demonstrates how to Lists cryptographic key analysis results found in a firmware. * - * @summary The operation to list all crypto keys for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoKeyList_MaximumSet_Gen.json + * @summary Lists cryptographic key analysis results found in a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/CryptoKeys_ListByFirmware_MaximumSet_Gen.json */ -async function firmwareListGenerateCryptoKeyListMaximumSetGen() { +async function cryptoKeysListByFirmwareMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA"; + "00000000-0000-0000-0000-000000000000"; const resourceGroupName = process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; const workspaceName = "default"; - const firmwareId = "DECAFBAD-0000-0000-0000-BADBADBADBAD"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateCryptoKeyList( + for await (let item of client.cryptoKeys.listByFirmware( resourceGroupName, workspaceName, - firmwareId + firmwareId, )) { resArray.push(item); } @@ -42,27 +42,26 @@ async function firmwareListGenerateCryptoKeyListMaximumSetGen() { } /** - * This sample demonstrates how to The operation to list all crypto keys for a firmware. + * This sample demonstrates how to Lists cryptographic key analysis results found in a firmware. * - * @summary The operation to list all crypto keys for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoKeyList_MinimumSet_Gen.json + * @summary Lists cryptographic key analysis results found in a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/CryptoKeys_ListByFirmware_MinimumSet_Gen.json */ -async function firmwareListGenerateCryptoKeyListMinimumSetGen() { +async function cryptoKeysListByFirmwareMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA"; + "00000000-0000-0000-0000-000000000000"; const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "j5QE_"; - const firmwareId = "wujtpcgypfpqseyrsebolarkspy"; + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateCryptoKeyList( + for await (let item of client.cryptoKeys.listByFirmware( resourceGroupName, workspaceName, - firmwareId + firmwareId, )) { resArray.push(item); } @@ -70,8 +69,8 @@ async function firmwareListGenerateCryptoKeyListMinimumSetGen() { } async function main() { - firmwareListGenerateCryptoKeyListMaximumSetGen(); - firmwareListGenerateCryptoKeyListMinimumSetGen(); + cryptoKeysListByFirmwareMaximumSetGen(); + cryptoKeysListByFirmwareMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/cvesListByFirmwareSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/cvesListByFirmwareSample.ts new file mode 100644 index 000000000000..a3eb07fd0ef6 --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/cvesListByFirmwareSample.ts @@ -0,0 +1,76 @@ +/* + * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists CVE analysis results of a firmware. + * + * @summary Lists CVE analysis results of a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Cves_ListByFirmware_MaximumSet_Gen.json + */ +async function cvesListByFirmwareMaximumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.cves.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to Lists CVE analysis results of a firmware. + * + * @summary Lists CVE analysis results of a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Cves_ListByFirmware_MinimumSet_Gen.json + */ +async function cvesListByFirmwareMinimumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.cves.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + cvesListByFirmwareMaximumSetGen(); + cvesListByFirmwareMinimumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateBinaryHardeningDetailsSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateBinaryHardeningDetailsSample.ts deleted file mode 100644 index e7a7588a96fe..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateBinaryHardeningDetailsSample.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to The operation to get binary hardening details for a firmware. - * - * @summary The operation to get binary hardening details for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningDetails_MaximumSet_Gen.json - */ -async function firmwareGenerateBinaryHardeningDetailsMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateBinaryHardeningDetails( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -/** - * This sample demonstrates how to The operation to get binary hardening details for a firmware. - * - * @summary The operation to get binary hardening details for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningDetails_MinimumSet_Gen.json - */ -async function firmwareGenerateBinaryHardeningDetailsMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateBinaryHardeningDetails( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -async function main() { - firmwareGenerateBinaryHardeningDetailsMaximumSetGen(); - firmwareGenerateBinaryHardeningDetailsMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateBinaryHardeningSummarySample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateBinaryHardeningSummarySample.ts deleted file mode 100644 index ab8f60e77d27..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateBinaryHardeningSummarySample.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to The operation to list the binary hardening summary percentages for a firmware. - * - * @summary The operation to list the binary hardening summary percentages for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningSummary_MaximumSet_Gen.json - */ -async function firmwareGenerateBinaryHardeningSummaryMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateBinaryHardeningSummary( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -/** - * This sample demonstrates how to The operation to list the binary hardening summary percentages for a firmware. - * - * @summary The operation to list the binary hardening summary percentages for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningSummary_MinimumSet_Gen.json - */ -async function firmwareGenerateBinaryHardeningSummaryMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateBinaryHardeningSummary( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -async function main() { - firmwareGenerateBinaryHardeningSummaryMaximumSetGen(); - firmwareGenerateBinaryHardeningSummaryMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateComponentDetailsSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateComponentDetailsSample.ts deleted file mode 100644 index 8548c3a12726..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateComponentDetailsSample.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to The operation to get component details for a firmware. - * - * @summary The operation to get component details for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateComponentDetails_MaximumSet_Gen.json - */ -async function firmwareGenerateComponentDetailsMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateComponentDetails( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -/** - * This sample demonstrates how to The operation to get component details for a firmware. - * - * @summary The operation to get component details for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateComponentDetails_MinimumSet_Gen.json - */ -async function firmwareGenerateComponentDetailsMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateComponentDetails( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -async function main() { - firmwareGenerateComponentDetailsMaximumSetGen(); - firmwareGenerateComponentDetailsMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateCryptoCertificateSummarySample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateCryptoCertificateSummarySample.ts deleted file mode 100644 index 3f1be2ccf326..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateCryptoCertificateSummarySample.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to The operation to provide a high level summary of the discovered cryptographic certificates reported for the firmware image. - * - * @summary The operation to provide a high level summary of the discovered cryptographic certificates reported for the firmware image. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoCertificateSummary_MaximumSet_Gen.json - */ -async function firmwareGenerateCryptoCertificateSummaryMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; - const workspaceName = "default"; - const firmwareId = "DECAFBAD-0000-0000-0000-BADBADBADBAD"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateCryptoCertificateSummary( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -/** - * This sample demonstrates how to The operation to provide a high level summary of the discovered cryptographic certificates reported for the firmware image. - * - * @summary The operation to provide a high level summary of the discovered cryptographic certificates reported for the firmware image. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoCertificateSummary_MinimumSet_Gen.json - */ -async function firmwareGenerateCryptoCertificateSummaryMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "j5QE_"; - const firmwareId = "wujtpcgypfpqseyrsebolarkspy"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateCryptoCertificateSummary( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -async function main() { - firmwareGenerateCryptoCertificateSummaryMaximumSetGen(); - firmwareGenerateCryptoCertificateSummaryMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateCryptoKeySummarySample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateCryptoKeySummarySample.ts deleted file mode 100644 index a4cfe4416486..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateCryptoKeySummarySample.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to The operation to provide a high level summary of the discovered cryptographic keys reported for the firmware image. - * - * @summary The operation to provide a high level summary of the discovered cryptographic keys reported for the firmware image. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoKeySummary_MaximumSet_Gen.json - */ -async function firmwareGenerateCryptoKeySummaryMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; - const workspaceName = "default"; - const firmwareId = "DECAFBAD-0000-0000-0000-BADBADBADBAD"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateCryptoKeySummary( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -/** - * This sample demonstrates how to The operation to provide a high level summary of the discovered cryptographic keys reported for the firmware image. - * - * @summary The operation to provide a high level summary of the discovered cryptographic keys reported for the firmware image. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoKeySummary_MinimumSet_Gen.json - */ -async function firmwareGenerateCryptoKeySummaryMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "j5QE_"; - const firmwareId = "wujtpcgypfpqseyrsebolarkspy"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateCryptoKeySummary( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -async function main() { - firmwareGenerateCryptoKeySummaryMaximumSetGen(); - firmwareGenerateCryptoKeySummaryMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateCveSummarySample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateCveSummarySample.ts deleted file mode 100644 index 418a1806ca16..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateCveSummarySample.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to The operation to provide a high level summary of the CVEs reported for the firmware image. - * - * @summary The operation to provide a high level summary of the CVEs reported for the firmware image. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCveSummary_MaximumSet_Gen.json - */ -async function firmwareGenerateCveSummaryMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateCveSummary( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -/** - * This sample demonstrates how to The operation to provide a high level summary of the CVEs reported for the firmware image. - * - * @summary The operation to provide a high level summary of the CVEs reported for the firmware image. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCveSummary_MinimumSet_Gen.json - */ -async function firmwareGenerateCveSummaryMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateCveSummary( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -async function main() { - firmwareGenerateCveSummaryMaximumSetGen(); - firmwareGenerateCveSummaryMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareListGenerateBinaryHardeningListSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareListGenerateBinaryHardeningListSample.ts deleted file mode 100644 index 7371a8e18d1e..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareListGenerateBinaryHardeningListSample.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to The operation to list all binary hardening result for a firmware. - * - * @summary The operation to list all binary hardening result for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateBinaryHardeningList_MaximumSet_Gen.json - */ -async function firmwareListGenerateBinaryHardeningListMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateBinaryHardeningList( - resourceGroupName, - workspaceName, - firmwareId - )) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to The operation to list all binary hardening result for a firmware. - * - * @summary The operation to list all binary hardening result for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateBinaryHardeningList_MinimumSet_Gen.json - */ -async function firmwareListGenerateBinaryHardeningListMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateBinaryHardeningList( - resourceGroupName, - workspaceName, - firmwareId - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - firmwareListGenerateBinaryHardeningListMaximumSetGen(); - firmwareListGenerateBinaryHardeningListMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareListGenerateComponentListSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareListGenerateComponentListSample.ts deleted file mode 100644 index cfe7b29d06e8..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareListGenerateComponentListSample.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to The operation to list all components result for a firmware. - * - * @summary The operation to list all components result for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateComponentList_MaximumSet_Gen.json - */ -async function firmwareListGenerateComponentListMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateComponentList( - resourceGroupName, - workspaceName, - firmwareId - )) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to The operation to list all components result for a firmware. - * - * @summary The operation to list all components result for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateComponentList_MinimumSet_Gen.json - */ -async function firmwareListGenerateComponentListMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateComponentList( - resourceGroupName, - workspaceName, - firmwareId - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - firmwareListGenerateComponentListMaximumSetGen(); - firmwareListGenerateComponentListMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareListGenerateCveListSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareListGenerateCveListSample.ts deleted file mode 100644 index 370d3f5ef604..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareListGenerateCveListSample.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to The operation to list all cve results for a firmware. - * - * @summary The operation to list all cve results for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCveList_MaximumSet_Gen.json - */ -async function firmwareListGenerateCveListMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateCveList( - resourceGroupName, - workspaceName, - firmwareId - )) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to The operation to list all cve results for a firmware. - * - * @summary The operation to list all cve results for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCveList_MinimumSet_Gen.json - */ -async function firmwareListGenerateCveListMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateCveList( - resourceGroupName, - workspaceName, - firmwareId - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - firmwareListGenerateCveListMaximumSetGen(); - firmwareListGenerateCveListMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareListGeneratePasswordHashListSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareListGeneratePasswordHashListSample.ts deleted file mode 100644 index b14e06e4785d..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareListGeneratePasswordHashListSample.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to The operation to list all password hashes for a firmware. - * - * @summary The operation to list all password hashes for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGeneratePasswordHashList_MaximumSet_Gen.json - */ -async function firmwareListGeneratePasswordHashListMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.firmwareOperations.listGeneratePasswordHashList( - resourceGroupName, - workspaceName, - firmwareId - )) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to The operation to list all password hashes for a firmware. - * - * @summary The operation to list all password hashes for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGeneratePasswordHashList_MinimumSet_Gen.json - */ -async function firmwareListGeneratePasswordHashListMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.firmwareOperations.listGeneratePasswordHashList( - resourceGroupName, - workspaceName, - firmwareId - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - firmwareListGeneratePasswordHashListMaximumSetGen(); - firmwareListGeneratePasswordHashListMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareCreateSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwaresCreateSample.ts similarity index 72% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareCreateSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwaresCreateSample.ts index f54cad6e8208..73feeaa5d01b 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareCreateSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwaresCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { Firmware, - IoTFirmwareDefenseClient + IoTFirmwareDefenseClient, } from "@azure/arm-iotfirmwaredefense"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to The operation to create a firmware. * * @summary The operation to create a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Create_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Create_MaximumSet_Gen.json */ -async function firmwareCreateMaximumSetGen() { +async function firmwaresCreateMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -33,22 +33,24 @@ async function firmwareCreateMaximumSetGen() { const workspaceName = "A7"; const firmwareId = "umrkdttp"; const firmware: Firmware = { - description: "uz", - fileName: "wresexxulcdsdd", - fileSize: 17, - model: "f", - status: "Pending", - statusMessages: [{ message: "ulvhmhokezathzzauiitu" }], - vendor: "vycmdhgtmepcptyoubztiuudpkcpd", - version: "s" + properties: { + description: "uz", + fileName: "wresexxulcdsdd", + fileSize: 17, + model: "f", + status: "Pending", + statusMessages: [{ message: "ulvhmhokezathzzauiitu" }], + vendor: "vycmdhgtmepcptyoubztiuudpkcpd", + version: "s", + }, }; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.create( + const result = await client.firmwares.create( resourceGroupName, workspaceName, firmwareId, - firmware + firmware, ); console.log(result); } @@ -57,9 +59,9 @@ async function firmwareCreateMaximumSetGen() { * This sample demonstrates how to The operation to create a firmware. * * @summary The operation to create a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Create_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Create_MinimumSet_Gen.json */ -async function firmwareCreateMinimumSetGen() { +async function firmwaresCreateMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -71,18 +73,18 @@ async function firmwareCreateMinimumSetGen() { const firmware: Firmware = {}; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.create( + const result = await client.firmwares.create( resourceGroupName, workspaceName, firmwareId, - firmware + firmware, ); console.log(result); } async function main() { - firmwareCreateMaximumSetGen(); - firmwareCreateMinimumSetGen(); + firmwaresCreateMaximumSetGen(); + firmwaresCreateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareDeleteSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwaresDeleteSample.ts similarity index 79% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareDeleteSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwaresDeleteSample.ts index 35c5d3750a02..fa8be1065a9a 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareDeleteSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwaresDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to The operation to delete a firmware. * * @summary The operation to delete a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Delete_MaximumSet_Gen.json */ -async function firmwareDeleteMaximumSetGen() { +async function firmwaresDeleteMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -31,10 +31,10 @@ async function firmwareDeleteMaximumSetGen() { const firmwareId = "umrkdttp"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.delete( + const result = await client.firmwares.delete( resourceGroupName, workspaceName, - firmwareId + firmwareId, ); console.log(result); } @@ -43,9 +43,9 @@ async function firmwareDeleteMaximumSetGen() { * This sample demonstrates how to The operation to delete a firmware. * * @summary The operation to delete a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Delete_MinimumSet_Gen.json */ -async function firmwareDeleteMinimumSetGen() { +async function firmwaresDeleteMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -56,17 +56,17 @@ async function firmwareDeleteMinimumSetGen() { const firmwareId = "umrkdttp"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.delete( + const result = await client.firmwares.delete( resourceGroupName, workspaceName, - firmwareId + firmwareId, ); console.log(result); } async function main() { - firmwareDeleteMaximumSetGen(); - firmwareDeleteMinimumSetGen(); + firmwaresDeleteMaximumSetGen(); + firmwaresDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateDownloadUrlSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwaresGenerateDownloadUrlSample.ts similarity index 76% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateDownloadUrlSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwaresGenerateDownloadUrlSample.ts index 3cb301856870..96dd159592a8 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateDownloadUrlSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwaresGenerateDownloadUrlSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to The operation to a url for file download. * * @summary The operation to a url for file download. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateDownloadUrl_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_GenerateDownloadUrl_MaximumSet_Gen.json */ -async function firmwareGenerateDownloadUrlMaximumSetGen() { +async function firmwaresGenerateDownloadUrlMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -31,10 +31,10 @@ async function firmwareGenerateDownloadUrlMaximumSetGen() { const firmwareId = "umrkdttp"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateDownloadUrl( + const result = await client.firmwares.generateDownloadUrl( resourceGroupName, workspaceName, - firmwareId + firmwareId, ); console.log(result); } @@ -43,9 +43,9 @@ async function firmwareGenerateDownloadUrlMaximumSetGen() { * This sample demonstrates how to The operation to a url for file download. * * @summary The operation to a url for file download. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateDownloadUrl_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_GenerateDownloadUrl_MinimumSet_Gen.json */ -async function firmwareGenerateDownloadUrlMinimumSetGen() { +async function firmwaresGenerateDownloadUrlMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -56,17 +56,17 @@ async function firmwareGenerateDownloadUrlMinimumSetGen() { const firmwareId = "umrkdttp"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateDownloadUrl( + const result = await client.firmwares.generateDownloadUrl( resourceGroupName, workspaceName, - firmwareId + firmwareId, ); console.log(result); } async function main() { - firmwareGenerateDownloadUrlMaximumSetGen(); - firmwareGenerateDownloadUrlMinimumSetGen(); + firmwaresGenerateDownloadUrlMaximumSetGen(); + firmwaresGenerateDownloadUrlMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateFilesystemDownloadUrlSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwaresGenerateFilesystemDownloadUrlSample.ts similarity index 74% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateFilesystemDownloadUrlSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwaresGenerateFilesystemDownloadUrlSample.ts index 96974d02d1f3..1f5718987729 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateFilesystemDownloadUrlSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwaresGenerateFilesystemDownloadUrlSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to The operation to a url for tar file download. * * @summary The operation to a url for tar file download. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateFilesystemDownloadUrl_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_GenerateFilesystemDownloadUrl_MaximumSet_Gen.json */ -async function firmwareGenerateFilesystemDownloadUrlMaximumSetGen() { +async function firmwaresGenerateFilesystemDownloadUrlMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -31,10 +31,10 @@ async function firmwareGenerateFilesystemDownloadUrlMaximumSetGen() { const firmwareId = "umrkdttp"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateFilesystemDownloadUrl( + const result = await client.firmwares.generateFilesystemDownloadUrl( resourceGroupName, workspaceName, - firmwareId + firmwareId, ); console.log(result); } @@ -43,9 +43,9 @@ async function firmwareGenerateFilesystemDownloadUrlMaximumSetGen() { * This sample demonstrates how to The operation to a url for tar file download. * * @summary The operation to a url for tar file download. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateFilesystemDownloadUrl_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_GenerateFilesystemDownloadUrl_MinimumSet_Gen.json */ -async function firmwareGenerateFilesystemDownloadUrlMinimumSetGen() { +async function firmwaresGenerateFilesystemDownloadUrlMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -56,17 +56,17 @@ async function firmwareGenerateFilesystemDownloadUrlMinimumSetGen() { const firmwareId = "umrkdttp"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateFilesystemDownloadUrl( + const result = await client.firmwares.generateFilesystemDownloadUrl( resourceGroupName, workspaceName, - firmwareId + firmwareId, ); console.log(result); } async function main() { - firmwareGenerateFilesystemDownloadUrlMaximumSetGen(); - firmwareGenerateFilesystemDownloadUrlMinimumSetGen(); + firmwaresGenerateFilesystemDownloadUrlMaximumSetGen(); + firmwaresGenerateFilesystemDownloadUrlMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGetSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwaresGetSample.ts similarity index 79% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGetSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwaresGetSample.ts index 1cfb3f735e7f..70d35c3ab040 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGetSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwaresGetSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Get firmware. * * @summary Get firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Get_MaximumSet_Gen.json */ -async function firmwareGetMaximumSetGen() { +async function firmwaresGetMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -31,10 +31,10 @@ async function firmwareGetMaximumSetGen() { const firmwareId = "umrkdttp"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.get( + const result = await client.firmwares.get( resourceGroupName, workspaceName, - firmwareId + firmwareId, ); console.log(result); } @@ -43,9 +43,9 @@ async function firmwareGetMaximumSetGen() { * This sample demonstrates how to Get firmware. * * @summary Get firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Get_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Get_MinimumSet_Gen.json */ -async function firmwareGetMinimumSetGen() { +async function firmwaresGetMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -56,17 +56,17 @@ async function firmwareGetMinimumSetGen() { const firmwareId = "umrkdttp"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.get( + const result = await client.firmwares.get( resourceGroupName, workspaceName, - firmwareId + firmwareId, ); console.log(result); } async function main() { - firmwareGetMaximumSetGen(); - firmwareGetMinimumSetGen(); + firmwaresGetMaximumSetGen(); + firmwaresGetMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListByWorkspaceSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwaresListByWorkspaceSample.ts similarity index 77% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListByWorkspaceSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwaresListByWorkspaceSample.ts index 02e3e43dc707..ab3741f9f403 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListByWorkspaceSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwaresListByWorkspaceSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Lists all of firmwares inside a workspace. * * @summary Lists all of firmwares inside a workspace. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListByWorkspace_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_ListByWorkspace_MaximumSet_Gen.json */ -async function firmwareListByWorkspaceMaximumSetGen() { +async function firmwaresListByWorkspaceMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -31,9 +31,9 @@ async function firmwareListByWorkspaceMaximumSetGen() { const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const resArray = new Array(); - for await (let item of client.firmwareOperations.listByWorkspace( + for await (let item of client.firmwares.listByWorkspace( resourceGroupName, - workspaceName + workspaceName, )) { resArray.push(item); } @@ -44,9 +44,9 @@ async function firmwareListByWorkspaceMaximumSetGen() { * This sample demonstrates how to Lists all of firmwares inside a workspace. * * @summary Lists all of firmwares inside a workspace. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListByWorkspace_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_ListByWorkspace_MinimumSet_Gen.json */ -async function firmwareListByWorkspaceMinimumSetGen() { +async function firmwaresListByWorkspaceMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -57,9 +57,9 @@ async function firmwareListByWorkspaceMinimumSetGen() { const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const resArray = new Array(); - for await (let item of client.firmwareOperations.listByWorkspace( + for await (let item of client.firmwares.listByWorkspace( resourceGroupName, - workspaceName + workspaceName, )) { resArray.push(item); } @@ -67,8 +67,8 @@ async function firmwareListByWorkspaceMinimumSetGen() { } async function main() { - firmwareListByWorkspaceMaximumSetGen(); - firmwareListByWorkspaceMinimumSetGen(); + firmwaresListByWorkspaceMaximumSetGen(); + firmwaresListByWorkspaceMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareUpdateSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwaresUpdateSample.ts similarity index 72% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareUpdateSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwaresUpdateSample.ts index 97aada7c255f..5a2589556ce7 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareUpdateSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwaresUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { FirmwareUpdateDefinition, - IoTFirmwareDefenseClient + IoTFirmwareDefenseClient, } from "@azure/arm-iotfirmwaredefense"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to The operation to update firmware. * * @summary The operation to update firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Update_MaximumSet_Gen.json */ -async function firmwareUpdateMaximumSetGen() { +async function firmwaresUpdateMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -33,22 +33,24 @@ async function firmwareUpdateMaximumSetGen() { const workspaceName = "A7"; const firmwareId = "umrkdttp"; const firmware: FirmwareUpdateDefinition = { - description: "uz", - fileName: "wresexxulcdsdd", - fileSize: 17, - model: "f", - status: "Pending", - statusMessages: [{ message: "ulvhmhokezathzzauiitu" }], - vendor: "vycmdhgtmepcptyoubztiuudpkcpd", - version: "s" + properties: { + description: "uz", + fileName: "wresexxulcdsdd", + fileSize: 17, + model: "f", + status: "Pending", + statusMessages: [{ message: "ulvhmhokezathzzauiitu" }], + vendor: "vycmdhgtmepcptyoubztiuudpkcpd", + version: "s", + }, }; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.update( + const result = await client.firmwares.update( resourceGroupName, workspaceName, firmwareId, - firmware + firmware, ); console.log(result); } @@ -57,9 +59,9 @@ async function firmwareUpdateMaximumSetGen() { * This sample demonstrates how to The operation to update firmware. * * @summary The operation to update firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Update_MinimumSet_Gen.json */ -async function firmwareUpdateMinimumSetGen() { +async function firmwaresUpdateMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -71,18 +73,18 @@ async function firmwareUpdateMinimumSetGen() { const firmware: FirmwareUpdateDefinition = {}; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.update( + const result = await client.firmwares.update( resourceGroupName, workspaceName, firmwareId, - firmware + firmware, ); console.log(result); } async function main() { - firmwareUpdateMaximumSetGen(); - firmwareUpdateMinimumSetGen(); + firmwaresUpdateMaximumSetGen(); + firmwaresUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/operationsListSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/operationsListSample.ts index 55f91946e6be..dbdf7b4001bf 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/operationsListSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the operations for this resource provider * * @summary Lists the operations for this resource provider - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Operations_List_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Operations_List_MaximumSet_Gen.json */ async function operationsListMaximumSetGen() { const subscriptionId = @@ -37,7 +37,7 @@ async function operationsListMaximumSetGen() { * This sample demonstrates how to Lists the operations for this resource provider * * @summary Lists the operations for this resource provider - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Operations_List_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Operations_List_MinimumSet_Gen.json */ async function operationsListMinimumSetGen() { const subscriptionId = diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/passwordHashesListByFirmwareSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/passwordHashesListByFirmwareSample.ts new file mode 100644 index 000000000000..4b82d9fc178a --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/passwordHashesListByFirmwareSample.ts @@ -0,0 +1,76 @@ +/* + * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists password hash analysis results of a firmware. + * + * @summary Lists password hash analysis results of a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/PasswordHashes_ListByFirmware_MaximumSet_Gen.json + */ +async function passwordHashesListByFirmwareMaximumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.passwordHashes.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to Lists password hash analysis results of a firmware. + * + * @summary Lists password hash analysis results of a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/PasswordHashes_ListByFirmware_MinimumSet_Gen.json + */ +async function passwordHashesListByFirmwareMinimumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.passwordHashes.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + passwordHashesListByFirmwareMaximumSetGen(); + passwordHashesListByFirmwareMinimumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/sbomComponentsListByFirmwareSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/sbomComponentsListByFirmwareSample.ts new file mode 100644 index 000000000000..108b8d25a332 --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/sbomComponentsListByFirmwareSample.ts @@ -0,0 +1,76 @@ +/* + * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists SBOM analysis results of a firmware. + * + * @summary Lists SBOM analysis results of a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/SbomComponents_ListByFirmware_MaximumSet_Gen.json + */ +async function sbomComponentsListByFirmwareMaximumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.sbomComponents.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to Lists SBOM analysis results of a firmware. + * + * @summary Lists SBOM analysis results of a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/SbomComponents_ListByFirmware_MinimumSet_Gen.json + */ +async function sbomComponentsListByFirmwareMinimumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.sbomComponents.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + sbomComponentsListByFirmwareMaximumSetGen(); + sbomComponentsListByFirmwareMinimumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateSummarySample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/summariesGetSample.ts similarity index 50% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateSummarySample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/summariesGetSample.ts index 6483cb5e7e29..e03c299125c4 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateSummarySample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/summariesGetSample.ts @@ -15,58 +15,60 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to The operation to get a scan summary. + * This sample demonstrates how to Get an analysis result summary of a firmware by name. * - * @summary The operation to get a scan summary. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateSummary_MaximumSet_Gen.json + * @summary Get an analysis result summary of a firmware by name. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Summaries_Get_MaximumSet_Gen.json */ -async function firmwareGenerateSummaryMaximumSetGen() { +async function summariesGetMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; + "00000000-0000-0000-0000-000000000000"; const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const summaryName = "Firmware"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateSummary( + const result = await client.summaries.get( resourceGroupName, workspaceName, - firmwareId + firmwareId, + summaryName, ); console.log(result); } /** - * This sample demonstrates how to The operation to get a scan summary. + * This sample demonstrates how to Get an analysis result summary of a firmware by name. * - * @summary The operation to get a scan summary. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateSummary_MinimumSet_Gen.json + * @summary Get an analysis result summary of a firmware by name. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Summaries_Get_MinimumSet_Gen.json */ -async function firmwareGenerateSummaryMinimumSetGen() { +async function summariesGetMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; + "00000000-0000-0000-0000-000000000000"; const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const summaryName = "Firmware"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateSummary( + const result = await client.summaries.get( resourceGroupName, workspaceName, - firmwareId + firmwareId, + summaryName, ); console.log(result); } async function main() { - firmwareGenerateSummaryMaximumSetGen(); - firmwareGenerateSummaryMinimumSetGen(); + summariesGetMaximumSetGen(); + summariesGetMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/summariesListByFirmwareSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/summariesListByFirmwareSample.ts new file mode 100644 index 000000000000..c0282fce9044 --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/summariesListByFirmwareSample.ts @@ -0,0 +1,76 @@ +/* + * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists analysis result summary names of a firmware. To fetch the full summary data, get that summary by name. + * + * @summary Lists analysis result summary names of a firmware. To fetch the full summary data, get that summary by name. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Summaries_ListByFirmware_MaximumSet_Gen.json + */ +async function summariesListByFirmwareMaximumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.summaries.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to Lists analysis result summary names of a firmware. To fetch the full summary data, get that summary by name. + * + * @summary Lists analysis result summary names of a firmware. To fetch the full summary data, get that summary by name. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Summaries_ListByFirmware_MinimumSet_Gen.json + */ +async function summariesListByFirmwareMinimumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.summaries.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + summariesListByFirmwareMaximumSetGen(); + summariesListByFirmwareMinimumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesCreateSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesCreateSample.ts index ee4bdd522b68..0e625a1aa8e0 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesCreateSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { Workspace, - IoTFirmwareDefenseClient + IoTFirmwareDefenseClient, } from "@azure/arm-iotfirmwaredefense"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update a firmware analysis workspace. * * @summary The operation to create or update a firmware analysis workspace. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Create_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Create_MaximumSet_Gen.json */ async function workspacesCreateMaximumSetGen() { const subscriptionId = @@ -32,14 +32,15 @@ async function workspacesCreateMaximumSetGen() { const workspaceName = "E___-3"; const workspace: Workspace = { location: "jjwbseilitjgdrhbvvkwviqj", - tags: { key450: "rzqqumbpfsbibnpirsm" } + properties: {}, + tags: { key450: "rzqqumbpfsbibnpirsm" }, }; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const result = await client.workspaces.create( resourceGroupName, workspaceName, - workspace + workspace, ); console.log(result); } @@ -48,7 +49,7 @@ async function workspacesCreateMaximumSetGen() { * This sample demonstrates how to The operation to create or update a firmware analysis workspace. * * @summary The operation to create or update a firmware analysis workspace. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Create_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Create_MinimumSet_Gen.json */ async function workspacesCreateMinimumSetGen() { const subscriptionId = @@ -63,7 +64,7 @@ async function workspacesCreateMinimumSetGen() { const result = await client.workspaces.create( resourceGroupName, workspaceName, - workspace + workspace, ); console.log(result); } diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesDeleteSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesDeleteSample.ts index ab29667e42f3..7b4b69656d09 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesDeleteSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to delete a firmware analysis workspace. * * @summary The operation to delete a firmware analysis workspace. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Delete_MaximumSet_Gen.json */ async function workspacesDeleteMaximumSetGen() { const subscriptionId = @@ -31,7 +31,7 @@ async function workspacesDeleteMaximumSetGen() { const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const result = await client.workspaces.delete( resourceGroupName, - workspaceName + workspaceName, ); console.log(result); } @@ -40,7 +40,7 @@ async function workspacesDeleteMaximumSetGen() { * This sample demonstrates how to The operation to delete a firmware analysis workspace. * * @summary The operation to delete a firmware analysis workspace. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Delete_MinimumSet_Gen.json */ async function workspacesDeleteMinimumSetGen() { const subscriptionId = @@ -53,7 +53,7 @@ async function workspacesDeleteMinimumSetGen() { const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const result = await client.workspaces.delete( resourceGroupName, - workspaceName + workspaceName, ); console.log(result); } diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesGenerateUploadUrlSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesGenerateUploadUrlSample.ts index e795809c7f5c..5ce164ee4a27 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesGenerateUploadUrlSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesGenerateUploadUrlSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GenerateUploadUrlRequest, - IoTFirmwareDefenseClient + IoTFirmwareDefenseClient, } from "@azure/arm-iotfirmwaredefense"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get a url for file upload. * * @summary The operation to get a url for file upload. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_GenerateUploadUrl_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_GenerateUploadUrl_MaximumSet_Gen.json */ async function workspacesGenerateUploadUrlMaximumSetGen() { const subscriptionId = @@ -31,14 +31,14 @@ async function workspacesGenerateUploadUrlMaximumSetGen() { process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces"; const workspaceName = "E___-3"; const generateUploadUrl: GenerateUploadUrlRequest = { - firmwareId: "ytsfprbywi" + firmwareId: "ytsfprbywi", }; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const result = await client.workspaces.generateUploadUrl( resourceGroupName, workspaceName, - generateUploadUrl + generateUploadUrl, ); console.log(result); } @@ -47,7 +47,7 @@ async function workspacesGenerateUploadUrlMaximumSetGen() { * This sample demonstrates how to The operation to get a url for file upload. * * @summary The operation to get a url for file upload. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_GenerateUploadUrl_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_GenerateUploadUrl_MinimumSet_Gen.json */ async function workspacesGenerateUploadUrlMinimumSetGen() { const subscriptionId = @@ -62,7 +62,7 @@ async function workspacesGenerateUploadUrlMinimumSetGen() { const result = await client.workspaces.generateUploadUrl( resourceGroupName, workspaceName, - generateUploadUrl + generateUploadUrl, ); console.log(result); } diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesGetSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesGetSample.ts index 505ba01ca2f8..26c376faa749 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesGetSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get firmware analysis workspace. * * @summary Get firmware analysis workspace. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Get_MaximumSet_Gen.json */ async function workspacesGetMaximumSetGen() { const subscriptionId = @@ -37,7 +37,7 @@ async function workspacesGetMaximumSetGen() { * This sample demonstrates how to Get firmware analysis workspace. * * @summary Get firmware analysis workspace. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Get_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Get_MinimumSet_Gen.json */ async function workspacesGetMinimumSetGen() { const subscriptionId = diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesListByResourceGroupSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesListByResourceGroupSample.ts index 526fcbc2417b..f2fb56a6c1ba 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesListByResourceGroupSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the firmware analysis workspaces in the specified resource group. * * @summary Lists all of the firmware analysis workspaces in the specified resource group. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_ListByResourceGroup_MaximumSet_Gen.json */ async function workspacesListByResourceGroupMaximumSetGen() { const subscriptionId = @@ -30,7 +30,7 @@ async function workspacesListByResourceGroupMaximumSetGen() { const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.workspaces.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } @@ -41,7 +41,7 @@ async function workspacesListByResourceGroupMaximumSetGen() { * This sample demonstrates how to Lists all of the firmware analysis workspaces in the specified resource group. * * @summary Lists all of the firmware analysis workspaces in the specified resource group. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListByResourceGroup_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_ListByResourceGroup_MinimumSet_Gen.json */ async function workspacesListByResourceGroupMinimumSetGen() { const subscriptionId = @@ -53,7 +53,7 @@ async function workspacesListByResourceGroupMinimumSetGen() { const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.workspaces.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesListBySubscriptionSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesListBySubscriptionSample.ts index cfdd984e4ca6..d5ec9dccd511 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesListBySubscriptionSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the firmware analysis workspaces in the specified subscription. * * @summary Lists all of the firmware analysis workspaces in the specified subscription. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_ListBySubscription_MaximumSet_Gen.json */ async function workspacesListBySubscriptionMaximumSetGen() { const subscriptionId = @@ -37,7 +37,7 @@ async function workspacesListBySubscriptionMaximumSetGen() { * This sample demonstrates how to Lists all of the firmware analysis workspaces in the specified subscription. * * @summary Lists all of the firmware analysis workspaces in the specified subscription. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListBySubscription_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_ListBySubscription_MinimumSet_Gen.json */ async function workspacesListBySubscriptionMinimumSetGen() { const subscriptionId = diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesUpdateSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesUpdateSample.ts index cbbc90073a35..08780161f3ca 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesUpdateSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/workspacesUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { WorkspaceUpdateDefinition, - IoTFirmwareDefenseClient + IoTFirmwareDefenseClient, } from "@azure/arm-iotfirmwaredefense"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to update a firmware analysis workspaces. * * @summary The operation to update a firmware analysis workspaces. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Update_MaximumSet_Gen.json */ async function workspacesUpdateMaximumSetGen() { const subscriptionId = @@ -30,13 +30,13 @@ async function workspacesUpdateMaximumSetGen() { const resourceGroupName = process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces"; const workspaceName = "E___-3"; - const workspace: WorkspaceUpdateDefinition = {}; + const workspace: WorkspaceUpdateDefinition = { properties: {} }; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const result = await client.workspaces.update( resourceGroupName, workspaceName, - workspace + workspace, ); console.log(result); } @@ -45,7 +45,7 @@ async function workspacesUpdateMaximumSetGen() { * This sample demonstrates how to The operation to update a firmware analysis workspaces. * * @summary The operation to update a firmware analysis workspaces. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Update_MinimumSet_Gen.json */ async function workspacesUpdateMinimumSetGen() { const subscriptionId = @@ -60,7 +60,7 @@ async function workspacesUpdateMinimumSetGen() { const result = await client.workspaces.update( resourceGroupName, workspaceName, - workspace + workspace, ); console.log(result); } diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/README.md b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/README.md deleted file mode 100644 index fd47e9048144..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/README.md +++ /dev/null @@ -1,104 +0,0 @@ -# client library samples for JavaScript (Beta) - -These sample programs show how to use the JavaScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [firmwareCreateSample.js][firmwarecreatesample] | The operation to create a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Create_MaximumSet_Gen.json | -| [firmwareDeleteSample.js][firmwaredeletesample] | The operation to delete a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Delete_MaximumSet_Gen.json | -| [firmwareGenerateBinaryHardeningDetailsSample.js][firmwaregeneratebinaryhardeningdetailssample] | The operation to get binary hardening details for a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningDetails_MaximumSet_Gen.json | -| [firmwareGenerateBinaryHardeningSummarySample.js][firmwaregeneratebinaryhardeningsummarysample] | The operation to list the binary hardening summary percentages for a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningSummary_MaximumSet_Gen.json | -| [firmwareGenerateComponentDetailsSample.js][firmwaregeneratecomponentdetailssample] | The operation to get component details for a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateComponentDetails_MaximumSet_Gen.json | -| [firmwareGenerateCryptoCertificateSummarySample.js][firmwaregeneratecryptocertificatesummarysample] | The operation to provide a high level summary of the discovered cryptographic certificates reported for the firmware image. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoCertificateSummary_MaximumSet_Gen.json | -| [firmwareGenerateCryptoKeySummarySample.js][firmwaregeneratecryptokeysummarysample] | The operation to provide a high level summary of the discovered cryptographic keys reported for the firmware image. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoKeySummary_MaximumSet_Gen.json | -| [firmwareGenerateCveSummarySample.js][firmwaregeneratecvesummarysample] | The operation to provide a high level summary of the CVEs reported for the firmware image. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCveSummary_MaximumSet_Gen.json | -| [firmwareGenerateDownloadUrlSample.js][firmwaregeneratedownloadurlsample] | The operation to a url for file download. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateDownloadUrl_MaximumSet_Gen.json | -| [firmwareGenerateFilesystemDownloadUrlSample.js][firmwaregeneratefilesystemdownloadurlsample] | The operation to a url for tar file download. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateFilesystemDownloadUrl_MaximumSet_Gen.json | -| [firmwareGenerateSummarySample.js][firmwaregeneratesummarysample] | The operation to get a scan summary. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateSummary_MaximumSet_Gen.json | -| [firmwareGetSample.js][firmwaregetsample] | Get firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Get_MaximumSet_Gen.json | -| [firmwareListByWorkspaceSample.js][firmwarelistbyworkspacesample] | Lists all of firmwares inside a workspace. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListByWorkspace_MaximumSet_Gen.json | -| [firmwareListGenerateBinaryHardeningListSample.js][firmwarelistgeneratebinaryhardeninglistsample] | The operation to list all binary hardening result for a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateBinaryHardeningList_MaximumSet_Gen.json | -| [firmwareListGenerateComponentListSample.js][firmwarelistgeneratecomponentlistsample] | The operation to list all components result for a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateComponentList_MaximumSet_Gen.json | -| [firmwareListGenerateCryptoCertificateListSample.js][firmwarelistgeneratecryptocertificatelistsample] | The operation to list all crypto certificates for a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoCertificateList_MaximumSet_Gen.json | -| [firmwareListGenerateCryptoKeyListSample.js][firmwarelistgeneratecryptokeylistsample] | The operation to list all crypto keys for a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoKeyList_MaximumSet_Gen.json | -| [firmwareListGenerateCveListSample.js][firmwarelistgeneratecvelistsample] | The operation to list all cve results for a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCveList_MaximumSet_Gen.json | -| [firmwareListGeneratePasswordHashListSample.js][firmwarelistgeneratepasswordhashlistsample] | The operation to list all password hashes for a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGeneratePasswordHashList_MaximumSet_Gen.json | -| [firmwareUpdateSample.js][firmwareupdatesample] | The operation to update firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Update_MaximumSet_Gen.json | -| [operationsListSample.js][operationslistsample] | Lists the operations for this resource provider x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Operations_List_MaximumSet_Gen.json | -| [workspacesCreateSample.js][workspacescreatesample] | The operation to create or update a firmware analysis workspace. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Create_MaximumSet_Gen.json | -| [workspacesDeleteSample.js][workspacesdeletesample] | The operation to delete a firmware analysis workspace. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Delete_MaximumSet_Gen.json | -| [workspacesGenerateUploadUrlSample.js][workspacesgenerateuploadurlsample] | The operation to get a url for file upload. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_GenerateUploadUrl_MaximumSet_Gen.json | -| [workspacesGetSample.js][workspacesgetsample] | Get firmware analysis workspace. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Get_MaximumSet_Gen.json | -| [workspacesListByResourceGroupSample.js][workspaceslistbyresourcegroupsample] | Lists all of the firmware analysis workspaces in the specified resource group. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListByResourceGroup_MaximumSet_Gen.json | -| [workspacesListBySubscriptionSample.js][workspaceslistbysubscriptionsample] | Lists all of the firmware analysis workspaces in the specified subscription. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListBySubscription_MaximumSet_Gen.json | -| [workspacesUpdateSample.js][workspacesupdatesample] | The operation to update a firmware analysis workspaces. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Update_MaximumSet_Gen.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. 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. - -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node firmwareCreateSample.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 IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID="" IOTFIRMWAREDEFENSE_RESOURCE_GROUP="" node firmwareCreateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[firmwarecreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareCreateSample.js -[firmwaredeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareDeleteSample.js -[firmwaregeneratebinaryhardeningdetailssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateBinaryHardeningDetailsSample.js -[firmwaregeneratebinaryhardeningsummarysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateBinaryHardeningSummarySample.js -[firmwaregeneratecomponentdetailssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateComponentDetailsSample.js -[firmwaregeneratecryptocertificatesummarysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateCryptoCertificateSummarySample.js -[firmwaregeneratecryptokeysummarysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateCryptoKeySummarySample.js -[firmwaregeneratecvesummarysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateCveSummarySample.js -[firmwaregeneratedownloadurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateDownloadUrlSample.js -[firmwaregeneratefilesystemdownloadurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateFilesystemDownloadUrlSample.js -[firmwaregeneratesummarysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateSummarySample.js -[firmwaregetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGetSample.js -[firmwarelistbyworkspacesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListByWorkspaceSample.js -[firmwarelistgeneratebinaryhardeninglistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGenerateBinaryHardeningListSample.js -[firmwarelistgeneratecomponentlistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGenerateComponentListSample.js -[firmwarelistgeneratecryptocertificatelistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGenerateCryptoCertificateListSample.js -[firmwarelistgeneratecryptokeylistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGenerateCryptoKeyListSample.js -[firmwarelistgeneratecvelistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGenerateCveListSample.js -[firmwarelistgeneratepasswordhashlistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGeneratePasswordHashListSample.js -[firmwareupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareUpdateSample.js -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/operationsListSample.js -[workspacescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesCreateSample.js -[workspacesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesDeleteSample.js -[workspacesgenerateuploadurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesGenerateUploadUrlSample.js -[workspacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesGetSample.js -[workspaceslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesListByResourceGroupSample.js -[workspaceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesListBySubscriptionSample.js -[workspacesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesUpdateSample.js -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-iotfirmwaredefense?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/README.md diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateBinaryHardeningDetailsSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateBinaryHardeningDetailsSample.js deleted file mode 100644 index f394a6f55725..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateBinaryHardeningDetailsSample.js +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } = require("@azure/arm-iotfirmwaredefense"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to The operation to get binary hardening details for a firmware. - * - * @summary The operation to get binary hardening details for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningDetails_MaximumSet_Gen.json - */ -async function firmwareGenerateBinaryHardeningDetailsMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateBinaryHardeningDetails( - resourceGroupName, - workspaceName, - firmwareId, - ); - console.log(result); -} - -/** - * This sample demonstrates how to The operation to get binary hardening details for a firmware. - * - * @summary The operation to get binary hardening details for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningDetails_MinimumSet_Gen.json - */ -async function firmwareGenerateBinaryHardeningDetailsMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateBinaryHardeningDetails( - resourceGroupName, - workspaceName, - firmwareId, - ); - console.log(result); -} - -async function main() { - firmwareGenerateBinaryHardeningDetailsMaximumSetGen(); - firmwareGenerateBinaryHardeningDetailsMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateBinaryHardeningSummarySample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateBinaryHardeningSummarySample.js deleted file mode 100644 index 3f06c7c81282..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateBinaryHardeningSummarySample.js +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } = require("@azure/arm-iotfirmwaredefense"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to The operation to list the binary hardening summary percentages for a firmware. - * - * @summary The operation to list the binary hardening summary percentages for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningSummary_MaximumSet_Gen.json - */ -async function firmwareGenerateBinaryHardeningSummaryMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateBinaryHardeningSummary( - resourceGroupName, - workspaceName, - firmwareId, - ); - console.log(result); -} - -/** - * This sample demonstrates how to The operation to list the binary hardening summary percentages for a firmware. - * - * @summary The operation to list the binary hardening summary percentages for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningSummary_MinimumSet_Gen.json - */ -async function firmwareGenerateBinaryHardeningSummaryMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateBinaryHardeningSummary( - resourceGroupName, - workspaceName, - firmwareId, - ); - console.log(result); -} - -async function main() { - firmwareGenerateBinaryHardeningSummaryMaximumSetGen(); - firmwareGenerateBinaryHardeningSummaryMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateComponentDetailsSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateComponentDetailsSample.js deleted file mode 100644 index 2b481abb0784..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateComponentDetailsSample.js +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } = require("@azure/arm-iotfirmwaredefense"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to The operation to get component details for a firmware. - * - * @summary The operation to get component details for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateComponentDetails_MaximumSet_Gen.json - */ -async function firmwareGenerateComponentDetailsMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateComponentDetails( - resourceGroupName, - workspaceName, - firmwareId, - ); - console.log(result); -} - -/** - * This sample demonstrates how to The operation to get component details for a firmware. - * - * @summary The operation to get component details for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateComponentDetails_MinimumSet_Gen.json - */ -async function firmwareGenerateComponentDetailsMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateComponentDetails( - resourceGroupName, - workspaceName, - firmwareId, - ); - console.log(result); -} - -async function main() { - firmwareGenerateComponentDetailsMaximumSetGen(); - firmwareGenerateComponentDetailsMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateCryptoCertificateSummarySample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateCryptoCertificateSummarySample.js deleted file mode 100644 index e60400edf739..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateCryptoCertificateSummarySample.js +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } = require("@azure/arm-iotfirmwaredefense"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to The operation to provide a high level summary of the discovered cryptographic certificates reported for the firmware image. - * - * @summary The operation to provide a high level summary of the discovered cryptographic certificates reported for the firmware image. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoCertificateSummary_MaximumSet_Gen.json - */ -async function firmwareGenerateCryptoCertificateSummaryMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; - const workspaceName = "default"; - const firmwareId = "DECAFBAD-0000-0000-0000-BADBADBADBAD"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateCryptoCertificateSummary( - resourceGroupName, - workspaceName, - firmwareId, - ); - console.log(result); -} - -/** - * This sample demonstrates how to The operation to provide a high level summary of the discovered cryptographic certificates reported for the firmware image. - * - * @summary The operation to provide a high level summary of the discovered cryptographic certificates reported for the firmware image. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoCertificateSummary_MinimumSet_Gen.json - */ -async function firmwareGenerateCryptoCertificateSummaryMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces-firmwares"; - const workspaceName = "j5QE_"; - const firmwareId = "wujtpcgypfpqseyrsebolarkspy"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateCryptoCertificateSummary( - resourceGroupName, - workspaceName, - firmwareId, - ); - console.log(result); -} - -async function main() { - firmwareGenerateCryptoCertificateSummaryMaximumSetGen(); - firmwareGenerateCryptoCertificateSummaryMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateCryptoKeySummarySample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateCryptoKeySummarySample.js deleted file mode 100644 index 0f6bd59268a8..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateCryptoKeySummarySample.js +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } = require("@azure/arm-iotfirmwaredefense"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to The operation to provide a high level summary of the discovered cryptographic keys reported for the firmware image. - * - * @summary The operation to provide a high level summary of the discovered cryptographic keys reported for the firmware image. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoKeySummary_MaximumSet_Gen.json - */ -async function firmwareGenerateCryptoKeySummaryMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; - const workspaceName = "default"; - const firmwareId = "DECAFBAD-0000-0000-0000-BADBADBADBAD"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateCryptoKeySummary( - resourceGroupName, - workspaceName, - firmwareId, - ); - console.log(result); -} - -/** - * This sample demonstrates how to The operation to provide a high level summary of the discovered cryptographic keys reported for the firmware image. - * - * @summary The operation to provide a high level summary of the discovered cryptographic keys reported for the firmware image. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoKeySummary_MinimumSet_Gen.json - */ -async function firmwareGenerateCryptoKeySummaryMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces-firmwares"; - const workspaceName = "j5QE_"; - const firmwareId = "wujtpcgypfpqseyrsebolarkspy"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateCryptoKeySummary( - resourceGroupName, - workspaceName, - firmwareId, - ); - console.log(result); -} - -async function main() { - firmwareGenerateCryptoKeySummaryMaximumSetGen(); - firmwareGenerateCryptoKeySummaryMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateCveSummarySample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateCveSummarySample.js deleted file mode 100644 index 1a4233d31177..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateCveSummarySample.js +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } = require("@azure/arm-iotfirmwaredefense"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to The operation to provide a high level summary of the CVEs reported for the firmware image. - * - * @summary The operation to provide a high level summary of the CVEs reported for the firmware image. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCveSummary_MaximumSet_Gen.json - */ -async function firmwareGenerateCveSummaryMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateCveSummary( - resourceGroupName, - workspaceName, - firmwareId, - ); - console.log(result); -} - -/** - * This sample demonstrates how to The operation to provide a high level summary of the CVEs reported for the firmware image. - * - * @summary The operation to provide a high level summary of the CVEs reported for the firmware image. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCveSummary_MinimumSet_Gen.json - */ -async function firmwareGenerateCveSummaryMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateCveSummary( - resourceGroupName, - workspaceName, - firmwareId, - ); - console.log(result); -} - -async function main() { - firmwareGenerateCveSummaryMaximumSetGen(); - firmwareGenerateCveSummaryMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateSummarySample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateSummarySample.js deleted file mode 100644 index b935b365625c..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateSummarySample.js +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } = require("@azure/arm-iotfirmwaredefense"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to The operation to get a scan summary. - * - * @summary The operation to get a scan summary. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateSummary_MaximumSet_Gen.json - */ -async function firmwareGenerateSummaryMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateSummary( - resourceGroupName, - workspaceName, - firmwareId, - ); - console.log(result); -} - -/** - * This sample demonstrates how to The operation to get a scan summary. - * - * @summary The operation to get a scan summary. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateSummary_MinimumSet_Gen.json - */ -async function firmwareGenerateSummaryMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateSummary( - resourceGroupName, - workspaceName, - firmwareId, - ); - console.log(result); -} - -async function main() { - firmwareGenerateSummaryMaximumSetGen(); - firmwareGenerateSummaryMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGenerateBinaryHardeningListSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGenerateBinaryHardeningListSample.js deleted file mode 100644 index 7dead95cc9ac..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGenerateBinaryHardeningListSample.js +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } = require("@azure/arm-iotfirmwaredefense"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to The operation to list all binary hardening result for a firmware. - * - * @summary The operation to list all binary hardening result for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateBinaryHardeningList_MaximumSet_Gen.json - */ -async function firmwareListGenerateBinaryHardeningListMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateBinaryHardeningList( - resourceGroupName, - workspaceName, - firmwareId, - )) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to The operation to list all binary hardening result for a firmware. - * - * @summary The operation to list all binary hardening result for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateBinaryHardeningList_MinimumSet_Gen.json - */ -async function firmwareListGenerateBinaryHardeningListMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateBinaryHardeningList( - resourceGroupName, - workspaceName, - firmwareId, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - firmwareListGenerateBinaryHardeningListMaximumSetGen(); - firmwareListGenerateBinaryHardeningListMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGenerateComponentListSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGenerateComponentListSample.js deleted file mode 100644 index 164e6b101a33..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGenerateComponentListSample.js +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } = require("@azure/arm-iotfirmwaredefense"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to The operation to list all components result for a firmware. - * - * @summary The operation to list all components result for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateComponentList_MaximumSet_Gen.json - */ -async function firmwareListGenerateComponentListMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateComponentList( - resourceGroupName, - workspaceName, - firmwareId, - )) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to The operation to list all components result for a firmware. - * - * @summary The operation to list all components result for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateComponentList_MinimumSet_Gen.json - */ -async function firmwareListGenerateComponentListMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateComponentList( - resourceGroupName, - workspaceName, - firmwareId, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - firmwareListGenerateComponentListMaximumSetGen(); - firmwareListGenerateComponentListMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGenerateCveListSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGenerateCveListSample.js deleted file mode 100644 index 7aa1bf284f76..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGenerateCveListSample.js +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } = require("@azure/arm-iotfirmwaredefense"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to The operation to list all cve results for a firmware. - * - * @summary The operation to list all cve results for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCveList_MaximumSet_Gen.json - */ -async function firmwareListGenerateCveListMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateCveList( - resourceGroupName, - workspaceName, - firmwareId, - )) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to The operation to list all cve results for a firmware. - * - * @summary The operation to list all cve results for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCveList_MinimumSet_Gen.json - */ -async function firmwareListGenerateCveListMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateCveList( - resourceGroupName, - workspaceName, - firmwareId, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - firmwareListGenerateCveListMaximumSetGen(); - firmwareListGenerateCveListMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGeneratePasswordHashListSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGeneratePasswordHashListSample.js deleted file mode 100644 index ebf5de19d248..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGeneratePasswordHashListSample.js +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } = require("@azure/arm-iotfirmwaredefense"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to The operation to list all password hashes for a firmware. - * - * @summary The operation to list all password hashes for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGeneratePasswordHashList_MaximumSet_Gen.json - */ -async function firmwareListGeneratePasswordHashListMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.firmwareOperations.listGeneratePasswordHashList( - resourceGroupName, - workspaceName, - firmwareId, - )) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to The operation to list all password hashes for a firmware. - * - * @summary The operation to list all password hashes for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGeneratePasswordHashList_MinimumSet_Gen.json - */ -async function firmwareListGeneratePasswordHashListMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.firmwareOperations.listGeneratePasswordHashList( - resourceGroupName, - workspaceName, - firmwareId, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - firmwareListGeneratePasswordHashListMaximumSetGen(); - firmwareListGeneratePasswordHashListMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/README.md b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/README.md deleted file mode 100644 index 1a7fe2e1fa82..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/README.md +++ /dev/null @@ -1,117 +0,0 @@ -# client library samples for TypeScript (Beta) - -These sample programs show how to use the TypeScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [firmwareCreateSample.ts][firmwarecreatesample] | The operation to create a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Create_MaximumSet_Gen.json | -| [firmwareDeleteSample.ts][firmwaredeletesample] | The operation to delete a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Delete_MaximumSet_Gen.json | -| [firmwareGenerateBinaryHardeningDetailsSample.ts][firmwaregeneratebinaryhardeningdetailssample] | The operation to get binary hardening details for a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningDetails_MaximumSet_Gen.json | -| [firmwareGenerateBinaryHardeningSummarySample.ts][firmwaregeneratebinaryhardeningsummarysample] | The operation to list the binary hardening summary percentages for a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningSummary_MaximumSet_Gen.json | -| [firmwareGenerateComponentDetailsSample.ts][firmwaregeneratecomponentdetailssample] | The operation to get component details for a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateComponentDetails_MaximumSet_Gen.json | -| [firmwareGenerateCryptoCertificateSummarySample.ts][firmwaregeneratecryptocertificatesummarysample] | The operation to provide a high level summary of the discovered cryptographic certificates reported for the firmware image. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoCertificateSummary_MaximumSet_Gen.json | -| [firmwareGenerateCryptoKeySummarySample.ts][firmwaregeneratecryptokeysummarysample] | The operation to provide a high level summary of the discovered cryptographic keys reported for the firmware image. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoKeySummary_MaximumSet_Gen.json | -| [firmwareGenerateCveSummarySample.ts][firmwaregeneratecvesummarysample] | The operation to provide a high level summary of the CVEs reported for the firmware image. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCveSummary_MaximumSet_Gen.json | -| [firmwareGenerateDownloadUrlSample.ts][firmwaregeneratedownloadurlsample] | The operation to a url for file download. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateDownloadUrl_MaximumSet_Gen.json | -| [firmwareGenerateFilesystemDownloadUrlSample.ts][firmwaregeneratefilesystemdownloadurlsample] | The operation to a url for tar file download. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateFilesystemDownloadUrl_MaximumSet_Gen.json | -| [firmwareGenerateSummarySample.ts][firmwaregeneratesummarysample] | The operation to get a scan summary. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateSummary_MaximumSet_Gen.json | -| [firmwareGetSample.ts][firmwaregetsample] | Get firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Get_MaximumSet_Gen.json | -| [firmwareListByWorkspaceSample.ts][firmwarelistbyworkspacesample] | Lists all of firmwares inside a workspace. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListByWorkspace_MaximumSet_Gen.json | -| [firmwareListGenerateBinaryHardeningListSample.ts][firmwarelistgeneratebinaryhardeninglistsample] | The operation to list all binary hardening result for a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateBinaryHardeningList_MaximumSet_Gen.json | -| [firmwareListGenerateComponentListSample.ts][firmwarelistgeneratecomponentlistsample] | The operation to list all components result for a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateComponentList_MaximumSet_Gen.json | -| [firmwareListGenerateCryptoCertificateListSample.ts][firmwarelistgeneratecryptocertificatelistsample] | The operation to list all crypto certificates for a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoCertificateList_MaximumSet_Gen.json | -| [firmwareListGenerateCryptoKeyListSample.ts][firmwarelistgeneratecryptokeylistsample] | The operation to list all crypto keys for a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoKeyList_MaximumSet_Gen.json | -| [firmwareListGenerateCveListSample.ts][firmwarelistgeneratecvelistsample] | The operation to list all cve results for a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCveList_MaximumSet_Gen.json | -| [firmwareListGeneratePasswordHashListSample.ts][firmwarelistgeneratepasswordhashlistsample] | The operation to list all password hashes for a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGeneratePasswordHashList_MaximumSet_Gen.json | -| [firmwareUpdateSample.ts][firmwareupdatesample] | The operation to update firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Update_MaximumSet_Gen.json | -| [operationsListSample.ts][operationslistsample] | Lists the operations for this resource provider x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Operations_List_MaximumSet_Gen.json | -| [workspacesCreateSample.ts][workspacescreatesample] | The operation to create or update a firmware analysis workspace. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Create_MaximumSet_Gen.json | -| [workspacesDeleteSample.ts][workspacesdeletesample] | The operation to delete a firmware analysis workspace. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Delete_MaximumSet_Gen.json | -| [workspacesGenerateUploadUrlSample.ts][workspacesgenerateuploadurlsample] | The operation to get a url for file upload. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_GenerateUploadUrl_MaximumSet_Gen.json | -| [workspacesGetSample.ts][workspacesgetsample] | Get firmware analysis workspace. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Get_MaximumSet_Gen.json | -| [workspacesListByResourceGroupSample.ts][workspaceslistbyresourcegroupsample] | Lists all of the firmware analysis workspaces in the specified resource group. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListByResourceGroup_MaximumSet_Gen.json | -| [workspacesListBySubscriptionSample.ts][workspaceslistbysubscriptionsample] | Lists all of the firmware analysis workspaces in the specified subscription. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListBySubscription_MaximumSet_Gen.json | -| [workspacesUpdateSample.ts][workspacesupdatesample] | The operation to update a firmware analysis workspaces. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Update_MaximumSet_Gen.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -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: - -```bash -npm install -g typescript -``` - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Compile the samples: - -```bash -npm run build -``` - -3. 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. - -4. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dist/firmwareCreateSample.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 IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID="" IOTFIRMWAREDEFENSE_RESOURCE_GROUP="" node dist/firmwareCreateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[firmwarecreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareCreateSample.ts -[firmwaredeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareDeleteSample.ts -[firmwaregeneratebinaryhardeningdetailssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateBinaryHardeningDetailsSample.ts -[firmwaregeneratebinaryhardeningsummarysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateBinaryHardeningSummarySample.ts -[firmwaregeneratecomponentdetailssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateComponentDetailsSample.ts -[firmwaregeneratecryptocertificatesummarysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateCryptoCertificateSummarySample.ts -[firmwaregeneratecryptokeysummarysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateCryptoKeySummarySample.ts -[firmwaregeneratecvesummarysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateCveSummarySample.ts -[firmwaregeneratedownloadurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateDownloadUrlSample.ts -[firmwaregeneratefilesystemdownloadurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateFilesystemDownloadUrlSample.ts -[firmwaregeneratesummarysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateSummarySample.ts -[firmwaregetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGetSample.ts -[firmwarelistbyworkspacesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListByWorkspaceSample.ts -[firmwarelistgeneratebinaryhardeninglistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGenerateBinaryHardeningListSample.ts -[firmwarelistgeneratecomponentlistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGenerateComponentListSample.ts -[firmwarelistgeneratecryptocertificatelistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGenerateCryptoCertificateListSample.ts -[firmwarelistgeneratecryptokeylistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGenerateCryptoKeyListSample.ts -[firmwarelistgeneratecvelistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGenerateCveListSample.ts -[firmwarelistgeneratepasswordhashlistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGeneratePasswordHashListSample.ts -[firmwareupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareUpdateSample.ts -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/operationsListSample.ts -[workspacescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesCreateSample.ts -[workspacesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesDeleteSample.ts -[workspacesgenerateuploadurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesGenerateUploadUrlSample.ts -[workspacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesGetSample.ts -[workspaceslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesListByResourceGroupSample.ts -[workspaceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesListBySubscriptionSample.ts -[workspacesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesUpdateSample.ts -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-iotfirmwaredefense?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/README.md -[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateBinaryHardeningDetailsSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateBinaryHardeningDetailsSample.ts deleted file mode 100644 index e7a7588a96fe..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateBinaryHardeningDetailsSample.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to The operation to get binary hardening details for a firmware. - * - * @summary The operation to get binary hardening details for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningDetails_MaximumSet_Gen.json - */ -async function firmwareGenerateBinaryHardeningDetailsMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateBinaryHardeningDetails( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -/** - * This sample demonstrates how to The operation to get binary hardening details for a firmware. - * - * @summary The operation to get binary hardening details for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningDetails_MinimumSet_Gen.json - */ -async function firmwareGenerateBinaryHardeningDetailsMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateBinaryHardeningDetails( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -async function main() { - firmwareGenerateBinaryHardeningDetailsMaximumSetGen(); - firmwareGenerateBinaryHardeningDetailsMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateBinaryHardeningSummarySample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateBinaryHardeningSummarySample.ts deleted file mode 100644 index ab8f60e77d27..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateBinaryHardeningSummarySample.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to The operation to list the binary hardening summary percentages for a firmware. - * - * @summary The operation to list the binary hardening summary percentages for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningSummary_MaximumSet_Gen.json - */ -async function firmwareGenerateBinaryHardeningSummaryMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateBinaryHardeningSummary( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -/** - * This sample demonstrates how to The operation to list the binary hardening summary percentages for a firmware. - * - * @summary The operation to list the binary hardening summary percentages for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningSummary_MinimumSet_Gen.json - */ -async function firmwareGenerateBinaryHardeningSummaryMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateBinaryHardeningSummary( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -async function main() { - firmwareGenerateBinaryHardeningSummaryMaximumSetGen(); - firmwareGenerateBinaryHardeningSummaryMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateComponentDetailsSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateComponentDetailsSample.ts deleted file mode 100644 index 8548c3a12726..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateComponentDetailsSample.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to The operation to get component details for a firmware. - * - * @summary The operation to get component details for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateComponentDetails_MaximumSet_Gen.json - */ -async function firmwareGenerateComponentDetailsMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateComponentDetails( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -/** - * This sample demonstrates how to The operation to get component details for a firmware. - * - * @summary The operation to get component details for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateComponentDetails_MinimumSet_Gen.json - */ -async function firmwareGenerateComponentDetailsMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateComponentDetails( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -async function main() { - firmwareGenerateComponentDetailsMaximumSetGen(); - firmwareGenerateComponentDetailsMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateCryptoCertificateSummarySample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateCryptoCertificateSummarySample.ts deleted file mode 100644 index 3f1be2ccf326..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateCryptoCertificateSummarySample.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to The operation to provide a high level summary of the discovered cryptographic certificates reported for the firmware image. - * - * @summary The operation to provide a high level summary of the discovered cryptographic certificates reported for the firmware image. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoCertificateSummary_MaximumSet_Gen.json - */ -async function firmwareGenerateCryptoCertificateSummaryMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; - const workspaceName = "default"; - const firmwareId = "DECAFBAD-0000-0000-0000-BADBADBADBAD"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateCryptoCertificateSummary( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -/** - * This sample demonstrates how to The operation to provide a high level summary of the discovered cryptographic certificates reported for the firmware image. - * - * @summary The operation to provide a high level summary of the discovered cryptographic certificates reported for the firmware image. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoCertificateSummary_MinimumSet_Gen.json - */ -async function firmwareGenerateCryptoCertificateSummaryMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "j5QE_"; - const firmwareId = "wujtpcgypfpqseyrsebolarkspy"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateCryptoCertificateSummary( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -async function main() { - firmwareGenerateCryptoCertificateSummaryMaximumSetGen(); - firmwareGenerateCryptoCertificateSummaryMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateCryptoKeySummarySample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateCryptoKeySummarySample.ts deleted file mode 100644 index a4cfe4416486..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateCryptoKeySummarySample.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to The operation to provide a high level summary of the discovered cryptographic keys reported for the firmware image. - * - * @summary The operation to provide a high level summary of the discovered cryptographic keys reported for the firmware image. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoKeySummary_MaximumSet_Gen.json - */ -async function firmwareGenerateCryptoKeySummaryMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; - const workspaceName = "default"; - const firmwareId = "DECAFBAD-0000-0000-0000-BADBADBADBAD"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateCryptoKeySummary( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -/** - * This sample demonstrates how to The operation to provide a high level summary of the discovered cryptographic keys reported for the firmware image. - * - * @summary The operation to provide a high level summary of the discovered cryptographic keys reported for the firmware image. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoKeySummary_MinimumSet_Gen.json - */ -async function firmwareGenerateCryptoKeySummaryMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "j5QE_"; - const firmwareId = "wujtpcgypfpqseyrsebolarkspy"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateCryptoKeySummary( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -async function main() { - firmwareGenerateCryptoKeySummaryMaximumSetGen(); - firmwareGenerateCryptoKeySummaryMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateCveSummarySample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateCveSummarySample.ts deleted file mode 100644 index 418a1806ca16..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateCveSummarySample.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to The operation to provide a high level summary of the CVEs reported for the firmware image. - * - * @summary The operation to provide a high level summary of the CVEs reported for the firmware image. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCveSummary_MaximumSet_Gen.json - */ -async function firmwareGenerateCveSummaryMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateCveSummary( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -/** - * This sample demonstrates how to The operation to provide a high level summary of the CVEs reported for the firmware image. - * - * @summary The operation to provide a high level summary of the CVEs reported for the firmware image. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCveSummary_MinimumSet_Gen.json - */ -async function firmwareGenerateCveSummaryMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateCveSummary( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -async function main() { - firmwareGenerateCveSummaryMaximumSetGen(); - firmwareGenerateCveSummaryMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateSummarySample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateSummarySample.ts deleted file mode 100644 index 6483cb5e7e29..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGenerateSummarySample.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to The operation to get a scan summary. - * - * @summary The operation to get a scan summary. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateSummary_MaximumSet_Gen.json - */ -async function firmwareGenerateSummaryMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateSummary( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -/** - * This sample demonstrates how to The operation to get a scan summary. - * - * @summary The operation to get a scan summary. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateSummary_MinimumSet_Gen.json - */ -async function firmwareGenerateSummaryMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateSummary( - resourceGroupName, - workspaceName, - firmwareId - ); - console.log(result); -} - -async function main() { - firmwareGenerateSummaryMaximumSetGen(); - firmwareGenerateSummaryMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGenerateBinaryHardeningListSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGenerateBinaryHardeningListSample.ts deleted file mode 100644 index 7371a8e18d1e..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGenerateBinaryHardeningListSample.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to The operation to list all binary hardening result for a firmware. - * - * @summary The operation to list all binary hardening result for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateBinaryHardeningList_MaximumSet_Gen.json - */ -async function firmwareListGenerateBinaryHardeningListMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateBinaryHardeningList( - resourceGroupName, - workspaceName, - firmwareId - )) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to The operation to list all binary hardening result for a firmware. - * - * @summary The operation to list all binary hardening result for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateBinaryHardeningList_MinimumSet_Gen.json - */ -async function firmwareListGenerateBinaryHardeningListMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateBinaryHardeningList( - resourceGroupName, - workspaceName, - firmwareId - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - firmwareListGenerateBinaryHardeningListMaximumSetGen(); - firmwareListGenerateBinaryHardeningListMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGenerateComponentListSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGenerateComponentListSample.ts deleted file mode 100644 index cfe7b29d06e8..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGenerateComponentListSample.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to The operation to list all components result for a firmware. - * - * @summary The operation to list all components result for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateComponentList_MaximumSet_Gen.json - */ -async function firmwareListGenerateComponentListMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateComponentList( - resourceGroupName, - workspaceName, - firmwareId - )) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to The operation to list all components result for a firmware. - * - * @summary The operation to list all components result for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateComponentList_MinimumSet_Gen.json - */ -async function firmwareListGenerateComponentListMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateComponentList( - resourceGroupName, - workspaceName, - firmwareId - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - firmwareListGenerateComponentListMaximumSetGen(); - firmwareListGenerateComponentListMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGenerateCveListSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGenerateCveListSample.ts deleted file mode 100644 index 370d3f5ef604..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGenerateCveListSample.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to The operation to list all cve results for a firmware. - * - * @summary The operation to list all cve results for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCveList_MaximumSet_Gen.json - */ -async function firmwareListGenerateCveListMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateCveList( - resourceGroupName, - workspaceName, - firmwareId - )) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to The operation to list all cve results for a firmware. - * - * @summary The operation to list all cve results for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCveList_MinimumSet_Gen.json - */ -async function firmwareListGenerateCveListMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateCveList( - resourceGroupName, - workspaceName, - firmwareId - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - firmwareListGenerateCveListMaximumSetGen(); - firmwareListGenerateCveListMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGeneratePasswordHashListSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGeneratePasswordHashListSample.ts deleted file mode 100644 index b14e06e4785d..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGeneratePasswordHashListSample.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to The operation to list all password hashes for a firmware. - * - * @summary The operation to list all password hashes for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGeneratePasswordHashList_MaximumSet_Gen.json - */ -async function firmwareListGeneratePasswordHashListMaximumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.firmwareOperations.listGeneratePasswordHashList( - resourceGroupName, - workspaceName, - firmwareId - )) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to The operation to list all password hashes for a firmware. - * - * @summary The operation to list all password hashes for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGeneratePasswordHashList_MinimumSet_Gen.json - */ -async function firmwareListGeneratePasswordHashListMinimumSetGen() { - const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; - const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "A7"; - const firmwareId = "umrkdttp"; - const credential = new DefaultAzureCredential(); - const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.firmwareOperations.listGeneratePasswordHashList( - resourceGroupName, - workspaceName, - firmwareId - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - firmwareListGeneratePasswordHashListMaximumSetGen(); - firmwareListGeneratePasswordHashListMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/README.md b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/README.md new file mode 100644 index 000000000000..89fad269373b --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/README.md @@ -0,0 +1,94 @@ +# client library samples for JavaScript + +These sample programs show how to use the JavaScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [binaryHardeningListByFirmwareSample.js][binaryhardeninglistbyfirmwaresample] | Lists binary hardening analysis results of a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/BinaryHardening_ListByFirmware_MaximumSet_Gen.json | +| [cryptoCertificatesListByFirmwareSample.js][cryptocertificateslistbyfirmwaresample] | Lists cryptographic certificate analysis results found in a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/CryptoCertificates_ListByFirmware_MaximumSet_Gen.json | +| [cryptoKeysListByFirmwareSample.js][cryptokeyslistbyfirmwaresample] | Lists cryptographic key analysis results found in a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/CryptoKeys_ListByFirmware_MaximumSet_Gen.json | +| [cvesListByFirmwareSample.js][cveslistbyfirmwaresample] | Lists CVE analysis results of a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Cves_ListByFirmware_MaximumSet_Gen.json | +| [firmwaresCreateSample.js][firmwarescreatesample] | The operation to create a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Create_MaximumSet_Gen.json | +| [firmwaresDeleteSample.js][firmwaresdeletesample] | The operation to delete a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Delete_MaximumSet_Gen.json | +| [firmwaresGenerateDownloadUrlSample.js][firmwaresgeneratedownloadurlsample] | The operation to a url for file download. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_GenerateDownloadUrl_MaximumSet_Gen.json | +| [firmwaresGenerateFilesystemDownloadUrlSample.js][firmwaresgeneratefilesystemdownloadurlsample] | The operation to a url for tar file download. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_GenerateFilesystemDownloadUrl_MaximumSet_Gen.json | +| [firmwaresGetSample.js][firmwaresgetsample] | Get firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Get_MaximumSet_Gen.json | +| [firmwaresListByWorkspaceSample.js][firmwareslistbyworkspacesample] | Lists all of firmwares inside a workspace. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_ListByWorkspace_MaximumSet_Gen.json | +| [firmwaresUpdateSample.js][firmwaresupdatesample] | The operation to update firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Update_MaximumSet_Gen.json | +| [operationsListSample.js][operationslistsample] | Lists the operations for this resource provider x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Operations_List_MaximumSet_Gen.json | +| [passwordHashesListByFirmwareSample.js][passwordhasheslistbyfirmwaresample] | Lists password hash analysis results of a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/PasswordHashes_ListByFirmware_MaximumSet_Gen.json | +| [sbomComponentsListByFirmwareSample.js][sbomcomponentslistbyfirmwaresample] | Lists SBOM analysis results of a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/SbomComponents_ListByFirmware_MaximumSet_Gen.json | +| [summariesGetSample.js][summariesgetsample] | Get an analysis result summary of a firmware by name. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Summaries_Get_MaximumSet_Gen.json | +| [summariesListByFirmwareSample.js][summarieslistbyfirmwaresample] | Lists analysis result summary names of a firmware. To fetch the full summary data, get that summary by name. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Summaries_ListByFirmware_MaximumSet_Gen.json | +| [workspacesCreateSample.js][workspacescreatesample] | The operation to create or update a firmware analysis workspace. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Create_MaximumSet_Gen.json | +| [workspacesDeleteSample.js][workspacesdeletesample] | The operation to delete a firmware analysis workspace. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Delete_MaximumSet_Gen.json | +| [workspacesGenerateUploadUrlSample.js][workspacesgenerateuploadurlsample] | The operation to get a url for file upload. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_GenerateUploadUrl_MaximumSet_Gen.json | +| [workspacesGetSample.js][workspacesgetsample] | Get firmware analysis workspace. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Get_MaximumSet_Gen.json | +| [workspacesListByResourceGroupSample.js][workspaceslistbyresourcegroupsample] | Lists all of the firmware analysis workspaces in the specified resource group. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_ListByResourceGroup_MaximumSet_Gen.json | +| [workspacesListBySubscriptionSample.js][workspaceslistbysubscriptionsample] | Lists all of the firmware analysis workspaces in the specified subscription. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_ListBySubscription_MaximumSet_Gen.json | +| [workspacesUpdateSample.js][workspacesupdatesample] | The operation to update a firmware analysis workspaces. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Update_MaximumSet_Gen.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. 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. + +3. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node binaryHardeningListByFirmwareSample.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 IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID="" IOTFIRMWAREDEFENSE_RESOURCE_GROUP="" node binaryHardeningListByFirmwareSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[binaryhardeninglistbyfirmwaresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/binaryHardeningListByFirmwareSample.js +[cryptocertificateslistbyfirmwaresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/cryptoCertificatesListByFirmwareSample.js +[cryptokeyslistbyfirmwaresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/cryptoKeysListByFirmwareSample.js +[cveslistbyfirmwaresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/cvesListByFirmwareSample.js +[firmwarescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresCreateSample.js +[firmwaresdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresDeleteSample.js +[firmwaresgeneratedownloadurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresGenerateDownloadUrlSample.js +[firmwaresgeneratefilesystemdownloadurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresGenerateFilesystemDownloadUrlSample.js +[firmwaresgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresGetSample.js +[firmwareslistbyworkspacesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresListByWorkspaceSample.js +[firmwaresupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresUpdateSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/operationsListSample.js +[passwordhasheslistbyfirmwaresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/passwordHashesListByFirmwareSample.js +[sbomcomponentslistbyfirmwaresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/sbomComponentsListByFirmwareSample.js +[summariesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/summariesGetSample.js +[summarieslistbyfirmwaresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/summariesListByFirmwareSample.js +[workspacescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesCreateSample.js +[workspacesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesDeleteSample.js +[workspacesgenerateuploadurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesGenerateUploadUrlSample.js +[workspacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesGetSample.js +[workspaceslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesListByResourceGroupSample.js +[workspaceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesListBySubscriptionSample.js +[workspacesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesUpdateSample.js +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-iotfirmwaredefense?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/README.md diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGenerateCryptoKeyListSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/binaryHardeningListByFirmwareSample.js similarity index 51% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGenerateCryptoKeyListSample.js rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/binaryHardeningListByFirmwareSample.js index 995574b5dd92..279c8c77bdda 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGenerateCryptoKeyListSample.js +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/binaryHardeningListByFirmwareSample.js @@ -13,22 +13,22 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to The operation to list all crypto keys for a firmware. + * This sample demonstrates how to Lists binary hardening analysis results of a firmware. * - * @summary The operation to list all crypto keys for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoKeyList_MaximumSet_Gen.json + * @summary Lists binary hardening analysis results of a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/BinaryHardening_ListByFirmware_MaximumSet_Gen.json */ -async function firmwareListGenerateCryptoKeyListMaximumSetGen() { +async function binaryHardeningListByFirmwareMaximumSetGen() { const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA"; + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; const resourceGroupName = process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; const workspaceName = "default"; - const firmwareId = "DECAFBAD-0000-0000-0000-BADBADBADBAD"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateCryptoKeyList( + for await (let item of client.binaryHardening.listByFirmware( resourceGroupName, workspaceName, firmwareId, @@ -39,22 +39,22 @@ async function firmwareListGenerateCryptoKeyListMaximumSetGen() { } /** - * This sample demonstrates how to The operation to list all crypto keys for a firmware. + * This sample demonstrates how to Lists binary hardening analysis results of a firmware. * - * @summary The operation to list all crypto keys for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoKeyList_MinimumSet_Gen.json + * @summary Lists binary hardening analysis results of a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/BinaryHardening_ListByFirmware_MinimumSet_Gen.json */ -async function firmwareListGenerateCryptoKeyListMinimumSetGen() { +async function binaryHardeningListByFirmwareMinimumSetGen() { const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA"; + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces-firmwares"; - const workspaceName = "j5QE_"; - const firmwareId = "wujtpcgypfpqseyrsebolarkspy"; + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateCryptoKeyList( + for await (let item of client.binaryHardening.listByFirmware( resourceGroupName, workspaceName, firmwareId, @@ -65,8 +65,8 @@ async function firmwareListGenerateCryptoKeyListMinimumSetGen() { } async function main() { - firmwareListGenerateCryptoKeyListMaximumSetGen(); - firmwareListGenerateCryptoKeyListMinimumSetGen(); + binaryHardeningListByFirmwareMaximumSetGen(); + binaryHardeningListByFirmwareMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/cryptoCertificatesListByFirmwareSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/cryptoCertificatesListByFirmwareSample.js new file mode 100644 index 000000000000..1dd55a233bce --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/cryptoCertificatesListByFirmwareSample.js @@ -0,0 +1,72 @@ +/* + * 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 { IoTFirmwareDefenseClient } = require("@azure/arm-iotfirmwaredefense"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists cryptographic certificate analysis results found in a firmware. + * + * @summary Lists cryptographic certificate analysis results found in a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/CryptoCertificates_ListByFirmware_MaximumSet_Gen.json + */ +async function cryptoCertificatesListByFirmwareMaximumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.cryptoCertificates.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to Lists cryptographic certificate analysis results found in a firmware. + * + * @summary Lists cryptographic certificate analysis results found in a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/CryptoCertificates_ListByFirmware_MinimumSet_Gen.json + */ +async function cryptoCertificatesListByFirmwareMinimumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.cryptoCertificates.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + cryptoCertificatesListByFirmwareMaximumSetGen(); + cryptoCertificatesListByFirmwareMinimumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGenerateCryptoCertificateListSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/cryptoKeysListByFirmwareSample.js similarity index 50% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGenerateCryptoCertificateListSample.js rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/cryptoKeysListByFirmwareSample.js index e1d702f2ed56..195e208fc721 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListGenerateCryptoCertificateListSample.js +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/cryptoKeysListByFirmwareSample.js @@ -13,22 +13,22 @@ const { DefaultAzureCredential } = require("@azure/identity"); require("dotenv").config(); /** - * This sample demonstrates how to The operation to list all crypto certificates for a firmware. + * This sample demonstrates how to Lists cryptographic key analysis results found in a firmware. * - * @summary The operation to list all crypto certificates for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoCertificateList_MaximumSet_Gen.json + * @summary Lists cryptographic key analysis results found in a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/CryptoKeys_ListByFirmware_MaximumSet_Gen.json */ -async function firmwareListGenerateCryptoCertificateListMaximumSetGen() { +async function cryptoKeysListByFirmwareMaximumSetGen() { const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA"; + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; const resourceGroupName = process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; const workspaceName = "default"; - const firmwareId = "DECAFBAD-0000-0000-0000-BADBADBADBAD"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateCryptoCertificateList( + for await (let item of client.cryptoKeys.listByFirmware( resourceGroupName, workspaceName, firmwareId, @@ -39,22 +39,22 @@ async function firmwareListGenerateCryptoCertificateListMaximumSetGen() { } /** - * This sample demonstrates how to The operation to list all crypto certificates for a firmware. + * This sample demonstrates how to Lists cryptographic key analysis results found in a firmware. * - * @summary The operation to list all crypto certificates for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoCertificateList_MinimumSet_Gen.json + * @summary Lists cryptographic key analysis results found in a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/CryptoKeys_ListByFirmware_MinimumSet_Gen.json */ -async function firmwareListGenerateCryptoCertificateListMinimumSetGen() { +async function cryptoKeysListByFirmwareMinimumSetGen() { const subscriptionId = - process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA"; + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces-firmwares"; - const workspaceName = "j5QE_"; - const firmwareId = "wujtpcgypfpqseyrsebolarkspy"; + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateCryptoCertificateList( + for await (let item of client.cryptoKeys.listByFirmware( resourceGroupName, workspaceName, firmwareId, @@ -65,8 +65,8 @@ async function firmwareListGenerateCryptoCertificateListMinimumSetGen() { } async function main() { - firmwareListGenerateCryptoCertificateListMaximumSetGen(); - firmwareListGenerateCryptoCertificateListMinimumSetGen(); + cryptoKeysListByFirmwareMaximumSetGen(); + cryptoKeysListByFirmwareMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/cvesListByFirmwareSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/cvesListByFirmwareSample.js new file mode 100644 index 000000000000..8d74350ecf88 --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/cvesListByFirmwareSample.js @@ -0,0 +1,64 @@ +/* + * 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 { IoTFirmwareDefenseClient } = require("@azure/arm-iotfirmwaredefense"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists CVE analysis results of a firmware. + * + * @summary Lists CVE analysis results of a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Cves_ListByFirmware_MaximumSet_Gen.json + */ +async function cvesListByFirmwareMaximumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.cves.listByFirmware(resourceGroupName, workspaceName, firmwareId)) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to Lists CVE analysis results of a firmware. + * + * @summary Lists CVE analysis results of a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Cves_ListByFirmware_MinimumSet_Gen.json + */ +async function cvesListByFirmwareMinimumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.cves.listByFirmware(resourceGroupName, workspaceName, firmwareId)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + cvesListByFirmwareMaximumSetGen(); + cvesListByFirmwareMinimumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareCreateSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresCreateSample.js similarity index 73% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareCreateSample.js rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresCreateSample.js index a01d3c63f5c3..03d15f8bcc25 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareCreateSample.js +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresCreateSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to The operation to create a firmware. * * @summary The operation to create a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Create_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Create_MaximumSet_Gen.json */ -async function firmwareCreateMaximumSetGen() { +async function firmwaresCreateMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; const resourceGroupName = @@ -26,18 +26,20 @@ async function firmwareCreateMaximumSetGen() { const workspaceName = "A7"; const firmwareId = "umrkdttp"; const firmware = { - description: "uz", - fileName: "wresexxulcdsdd", - fileSize: 17, - model: "f", - status: "Pending", - statusMessages: [{ message: "ulvhmhokezathzzauiitu" }], - vendor: "vycmdhgtmepcptyoubztiuudpkcpd", - version: "s", + properties: { + description: "uz", + fileName: "wresexxulcdsdd", + fileSize: 17, + model: "f", + status: "Pending", + statusMessages: [{ message: "ulvhmhokezathzzauiitu" }], + vendor: "vycmdhgtmepcptyoubztiuudpkcpd", + version: "s", + }, }; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.create( + const result = await client.firmwares.create( resourceGroupName, workspaceName, firmwareId, @@ -50,9 +52,9 @@ async function firmwareCreateMaximumSetGen() { * This sample demonstrates how to The operation to create a firmware. * * @summary The operation to create a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Create_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Create_MinimumSet_Gen.json */ -async function firmwareCreateMinimumSetGen() { +async function firmwaresCreateMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; const resourceGroupName = @@ -62,7 +64,7 @@ async function firmwareCreateMinimumSetGen() { const firmware = {}; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.create( + const result = await client.firmwares.create( resourceGroupName, workspaceName, firmwareId, @@ -72,8 +74,8 @@ async function firmwareCreateMinimumSetGen() { } async function main() { - firmwareCreateMaximumSetGen(); - firmwareCreateMinimumSetGen(); + firmwaresCreateMaximumSetGen(); + firmwaresCreateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareDeleteSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresDeleteSample.js similarity index 75% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareDeleteSample.js rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresDeleteSample.js index 4eb2c522d3bf..5b2fa37a22cd 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareDeleteSample.js +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresDeleteSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to The operation to delete a firmware. * * @summary The operation to delete a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Delete_MaximumSet_Gen.json */ -async function firmwareDeleteMaximumSetGen() { +async function firmwaresDeleteMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; const resourceGroupName = @@ -27,11 +27,7 @@ async function firmwareDeleteMaximumSetGen() { const firmwareId = "umrkdttp"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.delete( - resourceGroupName, - workspaceName, - firmwareId, - ); + const result = await client.firmwares.delete(resourceGroupName, workspaceName, firmwareId); console.log(result); } @@ -39,9 +35,9 @@ async function firmwareDeleteMaximumSetGen() { * This sample demonstrates how to The operation to delete a firmware. * * @summary The operation to delete a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Delete_MinimumSet_Gen.json */ -async function firmwareDeleteMinimumSetGen() { +async function firmwaresDeleteMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; const resourceGroupName = @@ -50,17 +46,13 @@ async function firmwareDeleteMinimumSetGen() { const firmwareId = "umrkdttp"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.delete( - resourceGroupName, - workspaceName, - firmwareId, - ); + const result = await client.firmwares.delete(resourceGroupName, workspaceName, firmwareId); console.log(result); } async function main() { - firmwareDeleteMaximumSetGen(); - firmwareDeleteMinimumSetGen(); + firmwaresDeleteMaximumSetGen(); + firmwaresDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateDownloadUrlSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresGenerateDownloadUrlSample.js similarity index 77% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateDownloadUrlSample.js rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresGenerateDownloadUrlSample.js index e6ead143e648..7ed904da7f86 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateDownloadUrlSample.js +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresGenerateDownloadUrlSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to The operation to a url for file download. * * @summary The operation to a url for file download. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateDownloadUrl_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_GenerateDownloadUrl_MaximumSet_Gen.json */ -async function firmwareGenerateDownloadUrlMaximumSetGen() { +async function firmwaresGenerateDownloadUrlMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; const resourceGroupName = @@ -27,7 +27,7 @@ async function firmwareGenerateDownloadUrlMaximumSetGen() { const firmwareId = "umrkdttp"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateDownloadUrl( + const result = await client.firmwares.generateDownloadUrl( resourceGroupName, workspaceName, firmwareId, @@ -39,9 +39,9 @@ async function firmwareGenerateDownloadUrlMaximumSetGen() { * This sample demonstrates how to The operation to a url for file download. * * @summary The operation to a url for file download. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateDownloadUrl_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_GenerateDownloadUrl_MinimumSet_Gen.json */ -async function firmwareGenerateDownloadUrlMinimumSetGen() { +async function firmwaresGenerateDownloadUrlMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; const resourceGroupName = @@ -50,7 +50,7 @@ async function firmwareGenerateDownloadUrlMinimumSetGen() { const firmwareId = "umrkdttp"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateDownloadUrl( + const result = await client.firmwares.generateDownloadUrl( resourceGroupName, workspaceName, firmwareId, @@ -59,8 +59,8 @@ async function firmwareGenerateDownloadUrlMinimumSetGen() { } async function main() { - firmwareGenerateDownloadUrlMaximumSetGen(); - firmwareGenerateDownloadUrlMinimumSetGen(); + firmwaresGenerateDownloadUrlMaximumSetGen(); + firmwaresGenerateDownloadUrlMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateFilesystemDownloadUrlSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresGenerateFilesystemDownloadUrlSample.js similarity index 75% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateFilesystemDownloadUrlSample.js rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresGenerateFilesystemDownloadUrlSample.js index 9b179b78af0c..b47a908a3005 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGenerateFilesystemDownloadUrlSample.js +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresGenerateFilesystemDownloadUrlSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to The operation to a url for tar file download. * * @summary The operation to a url for tar file download. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateFilesystemDownloadUrl_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_GenerateFilesystemDownloadUrl_MaximumSet_Gen.json */ -async function firmwareGenerateFilesystemDownloadUrlMaximumSetGen() { +async function firmwaresGenerateFilesystemDownloadUrlMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; const resourceGroupName = @@ -27,7 +27,7 @@ async function firmwareGenerateFilesystemDownloadUrlMaximumSetGen() { const firmwareId = "umrkdttp"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateFilesystemDownloadUrl( + const result = await client.firmwares.generateFilesystemDownloadUrl( resourceGroupName, workspaceName, firmwareId, @@ -39,9 +39,9 @@ async function firmwareGenerateFilesystemDownloadUrlMaximumSetGen() { * This sample demonstrates how to The operation to a url for tar file download. * * @summary The operation to a url for tar file download. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateFilesystemDownloadUrl_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_GenerateFilesystemDownloadUrl_MinimumSet_Gen.json */ -async function firmwareGenerateFilesystemDownloadUrlMinimumSetGen() { +async function firmwaresGenerateFilesystemDownloadUrlMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; const resourceGroupName = @@ -50,7 +50,7 @@ async function firmwareGenerateFilesystemDownloadUrlMinimumSetGen() { const firmwareId = "umrkdttp"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateFilesystemDownloadUrl( + const result = await client.firmwares.generateFilesystemDownloadUrl( resourceGroupName, workspaceName, firmwareId, @@ -59,8 +59,8 @@ async function firmwareGenerateFilesystemDownloadUrlMinimumSetGen() { } async function main() { - firmwareGenerateFilesystemDownloadUrlMaximumSetGen(); - firmwareGenerateFilesystemDownloadUrlMinimumSetGen(); + firmwaresGenerateFilesystemDownloadUrlMaximumSetGen(); + firmwaresGenerateFilesystemDownloadUrlMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGetSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresGetSample.js similarity index 76% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGetSample.js rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresGetSample.js index 72f784945e16..eed3d0f8e30b 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareGetSample.js +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresGetSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Get firmware. * * @summary Get firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Get_MaximumSet_Gen.json */ -async function firmwareGetMaximumSetGen() { +async function firmwaresGetMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; const resourceGroupName = @@ -27,7 +27,7 @@ async function firmwareGetMaximumSetGen() { const firmwareId = "umrkdttp"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.get(resourceGroupName, workspaceName, firmwareId); + const result = await client.firmwares.get(resourceGroupName, workspaceName, firmwareId); console.log(result); } @@ -35,9 +35,9 @@ async function firmwareGetMaximumSetGen() { * This sample demonstrates how to Get firmware. * * @summary Get firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Get_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Get_MinimumSet_Gen.json */ -async function firmwareGetMinimumSetGen() { +async function firmwaresGetMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; const resourceGroupName = @@ -46,13 +46,13 @@ async function firmwareGetMinimumSetGen() { const firmwareId = "umrkdttp"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.get(resourceGroupName, workspaceName, firmwareId); + const result = await client.firmwares.get(resourceGroupName, workspaceName, firmwareId); console.log(result); } async function main() { - firmwareGetMaximumSetGen(); - firmwareGetMinimumSetGen(); + firmwaresGetMaximumSetGen(); + firmwaresGetMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListByWorkspaceSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresListByWorkspaceSample.js similarity index 74% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListByWorkspaceSample.js rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresListByWorkspaceSample.js index d47c6cb75f3d..30d5c87cd122 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareListByWorkspaceSample.js +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresListByWorkspaceSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of firmwares inside a workspace. * * @summary Lists all of firmwares inside a workspace. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListByWorkspace_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_ListByWorkspace_MaximumSet_Gen.json */ -async function firmwareListByWorkspaceMaximumSetGen() { +async function firmwaresListByWorkspaceMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; const resourceGroupName = @@ -27,10 +27,7 @@ async function firmwareListByWorkspaceMaximumSetGen() { const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const resArray = new Array(); - for await (let item of client.firmwareOperations.listByWorkspace( - resourceGroupName, - workspaceName, - )) { + for await (let item of client.firmwares.listByWorkspace(resourceGroupName, workspaceName)) { resArray.push(item); } console.log(resArray); @@ -40,9 +37,9 @@ async function firmwareListByWorkspaceMaximumSetGen() { * This sample demonstrates how to Lists all of firmwares inside a workspace. * * @summary Lists all of firmwares inside a workspace. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListByWorkspace_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_ListByWorkspace_MinimumSet_Gen.json */ -async function firmwareListByWorkspaceMinimumSetGen() { +async function firmwaresListByWorkspaceMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; const resourceGroupName = @@ -51,18 +48,15 @@ async function firmwareListByWorkspaceMinimumSetGen() { const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const resArray = new Array(); - for await (let item of client.firmwareOperations.listByWorkspace( - resourceGroupName, - workspaceName, - )) { + for await (let item of client.firmwares.listByWorkspace(resourceGroupName, workspaceName)) { resArray.push(item); } console.log(resArray); } async function main() { - firmwareListByWorkspaceMaximumSetGen(); - firmwareListByWorkspaceMinimumSetGen(); + firmwaresListByWorkspaceMaximumSetGen(); + firmwaresListByWorkspaceMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareUpdateSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresUpdateSample.js similarity index 73% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareUpdateSample.js rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresUpdateSample.js index 0f70818b690a..5d09cc6d42f2 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/firmwareUpdateSample.js +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/firmwaresUpdateSample.js @@ -16,9 +16,9 @@ require("dotenv").config(); * This sample demonstrates how to The operation to update firmware. * * @summary The operation to update firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Update_MaximumSet_Gen.json */ -async function firmwareUpdateMaximumSetGen() { +async function firmwaresUpdateMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; const resourceGroupName = @@ -26,18 +26,20 @@ async function firmwareUpdateMaximumSetGen() { const workspaceName = "A7"; const firmwareId = "umrkdttp"; const firmware = { - description: "uz", - fileName: "wresexxulcdsdd", - fileSize: 17, - model: "f", - status: "Pending", - statusMessages: [{ message: "ulvhmhokezathzzauiitu" }], - vendor: "vycmdhgtmepcptyoubztiuudpkcpd", - version: "s", + properties: { + description: "uz", + fileName: "wresexxulcdsdd", + fileSize: 17, + model: "f", + status: "Pending", + statusMessages: [{ message: "ulvhmhokezathzzauiitu" }], + vendor: "vycmdhgtmepcptyoubztiuudpkcpd", + version: "s", + }, }; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.update( + const result = await client.firmwares.update( resourceGroupName, workspaceName, firmwareId, @@ -50,9 +52,9 @@ async function firmwareUpdateMaximumSetGen() { * This sample demonstrates how to The operation to update firmware. * * @summary The operation to update firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Update_MinimumSet_Gen.json */ -async function firmwareUpdateMinimumSetGen() { +async function firmwaresUpdateMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; const resourceGroupName = @@ -62,7 +64,7 @@ async function firmwareUpdateMinimumSetGen() { const firmware = {}; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.update( + const result = await client.firmwares.update( resourceGroupName, workspaceName, firmwareId, @@ -72,8 +74,8 @@ async function firmwareUpdateMinimumSetGen() { } async function main() { - firmwareUpdateMaximumSetGen(); - firmwareUpdateMinimumSetGen(); + firmwaresUpdateMaximumSetGen(); + firmwaresUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/operationsListSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/operationsListSample.js similarity index 90% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/operationsListSample.js rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/operationsListSample.js index a85fee04cf05..40d108dfa990 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/operationsListSample.js +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/operationsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the operations for this resource provider * * @summary Lists the operations for this resource provider - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Operations_List_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Operations_List_MaximumSet_Gen.json */ async function operationsListMaximumSetGen() { const subscriptionId = @@ -34,7 +34,7 @@ async function operationsListMaximumSetGen() { * This sample demonstrates how to Lists the operations for this resource provider * * @summary Lists the operations for this resource provider - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Operations_List_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Operations_List_MinimumSet_Gen.json */ async function operationsListMinimumSetGen() { const subscriptionId = diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/package.json b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/package.json similarity index 80% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/package.json rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/package.json index b9ccc0724db1..f9eee0e869ad 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/package.json +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/package.json @@ -1,8 +1,8 @@ { - "name": "@azure-samples/arm-iotfirmwaredefense-js-beta", + "name": "@azure-samples/arm-iotfirmwaredefense-js", "private": true, "version": "1.0.0", - "description": " client library samples for JavaScript (Beta)", + "description": " client library samples for JavaScript", "engines": { "node": ">=18.0.0" }, @@ -25,7 +25,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense", "dependencies": { - "@azure/arm-iotfirmwaredefense": "next", + "@azure/arm-iotfirmwaredefense": "latest", "dotenv": "latest", "@azure/identity": "^4.0.1" } diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/passwordHashesListByFirmwareSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/passwordHashesListByFirmwareSample.js new file mode 100644 index 000000000000..4b2e1f4ce6ee --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/passwordHashesListByFirmwareSample.js @@ -0,0 +1,72 @@ +/* + * 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 { IoTFirmwareDefenseClient } = require("@azure/arm-iotfirmwaredefense"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists password hash analysis results of a firmware. + * + * @summary Lists password hash analysis results of a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/PasswordHashes_ListByFirmware_MaximumSet_Gen.json + */ +async function passwordHashesListByFirmwareMaximumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.passwordHashes.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to Lists password hash analysis results of a firmware. + * + * @summary Lists password hash analysis results of a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/PasswordHashes_ListByFirmware_MinimumSet_Gen.json + */ +async function passwordHashesListByFirmwareMinimumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.passwordHashes.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + passwordHashesListByFirmwareMaximumSetGen(); + passwordHashesListByFirmwareMinimumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/sample.env b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/sample.env similarity index 100% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/sample.env rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/sample.env diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/sbomComponentsListByFirmwareSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/sbomComponentsListByFirmwareSample.js new file mode 100644 index 000000000000..a1a710f0612e --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/sbomComponentsListByFirmwareSample.js @@ -0,0 +1,72 @@ +/* + * 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 { IoTFirmwareDefenseClient } = require("@azure/arm-iotfirmwaredefense"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists SBOM analysis results of a firmware. + * + * @summary Lists SBOM analysis results of a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/SbomComponents_ListByFirmware_MaximumSet_Gen.json + */ +async function sbomComponentsListByFirmwareMaximumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.sbomComponents.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to Lists SBOM analysis results of a firmware. + * + * @summary Lists SBOM analysis results of a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/SbomComponents_ListByFirmware_MinimumSet_Gen.json + */ +async function sbomComponentsListByFirmwareMinimumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.sbomComponents.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + sbomComponentsListByFirmwareMaximumSetGen(); + sbomComponentsListByFirmwareMinimumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/summariesGetSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/summariesGetSample.js new file mode 100644 index 000000000000..2456073cc520 --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/summariesGetSample.js @@ -0,0 +1,70 @@ +/* + * 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 { IoTFirmwareDefenseClient } = require("@azure/arm-iotfirmwaredefense"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get an analysis result summary of a firmware by name. + * + * @summary Get an analysis result summary of a firmware by name. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Summaries_Get_MaximumSet_Gen.json + */ +async function summariesGetMaximumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const summaryName = "Firmware"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const result = await client.summaries.get( + resourceGroupName, + workspaceName, + firmwareId, + summaryName, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Get an analysis result summary of a firmware by name. + * + * @summary Get an analysis result summary of a firmware by name. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Summaries_Get_MinimumSet_Gen.json + */ +async function summariesGetMinimumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const summaryName = "Firmware"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const result = await client.summaries.get( + resourceGroupName, + workspaceName, + firmwareId, + summaryName, + ); + console.log(result); +} + +async function main() { + summariesGetMaximumSetGen(); + summariesGetMinimumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/summariesListByFirmwareSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/summariesListByFirmwareSample.js new file mode 100644 index 000000000000..7e449159d310 --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/summariesListByFirmwareSample.js @@ -0,0 +1,72 @@ +/* + * 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 { IoTFirmwareDefenseClient } = require("@azure/arm-iotfirmwaredefense"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists analysis result summary names of a firmware. To fetch the full summary data, get that summary by name. + * + * @summary Lists analysis result summary names of a firmware. To fetch the full summary data, get that summary by name. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Summaries_ListByFirmware_MaximumSet_Gen.json + */ +async function summariesListByFirmwareMaximumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.summaries.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to Lists analysis result summary names of a firmware. To fetch the full summary data, get that summary by name. + * + * @summary Lists analysis result summary names of a firmware. To fetch the full summary data, get that summary by name. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Summaries_ListByFirmware_MinimumSet_Gen.json + */ +async function summariesListByFirmwareMinimumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.summaries.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + summariesListByFirmwareMaximumSetGen(); + summariesListByFirmwareMinimumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesCreateSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesCreateSample.js similarity index 92% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesCreateSample.js rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesCreateSample.js index 81f9e4c4598d..2ee576cbbf85 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesCreateSample.js +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to create or update a firmware analysis workspace. * * @summary The operation to create or update a firmware analysis workspace. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Create_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Create_MaximumSet_Gen.json */ async function workspacesCreateMaximumSetGen() { const subscriptionId = @@ -25,6 +25,7 @@ async function workspacesCreateMaximumSetGen() { const workspaceName = "E___-3"; const workspace = { location: "jjwbseilitjgdrhbvvkwviqj", + properties: {}, tags: { key450: "rzqqumbpfsbibnpirsm" }, }; const credential = new DefaultAzureCredential(); @@ -37,7 +38,7 @@ async function workspacesCreateMaximumSetGen() { * This sample demonstrates how to The operation to create or update a firmware analysis workspace. * * @summary The operation to create or update a firmware analysis workspace. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Create_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Create_MinimumSet_Gen.json */ async function workspacesCreateMinimumSetGen() { const subscriptionId = diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesDeleteSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesDeleteSample.js similarity index 91% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesDeleteSample.js rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesDeleteSample.js index 943cdc127daa..e92daa9c12c8 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesDeleteSample.js +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to delete a firmware analysis workspace. * * @summary The operation to delete a firmware analysis workspace. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Delete_MaximumSet_Gen.json */ async function workspacesDeleteMaximumSetGen() { const subscriptionId = @@ -33,7 +33,7 @@ async function workspacesDeleteMaximumSetGen() { * This sample demonstrates how to The operation to delete a firmware analysis workspace. * * @summary The operation to delete a firmware analysis workspace. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Delete_MinimumSet_Gen.json */ async function workspacesDeleteMinimumSetGen() { const subscriptionId = diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesGenerateUploadUrlSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesGenerateUploadUrlSample.js similarity index 91% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesGenerateUploadUrlSample.js rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesGenerateUploadUrlSample.js index 9455530e9c75..8fd4a6ff74a9 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesGenerateUploadUrlSample.js +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesGenerateUploadUrlSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to The operation to get a url for file upload. * * @summary The operation to get a url for file upload. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_GenerateUploadUrl_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_GenerateUploadUrl_MaximumSet_Gen.json */ async function workspacesGenerateUploadUrlMaximumSetGen() { const subscriptionId = @@ -40,7 +40,7 @@ async function workspacesGenerateUploadUrlMaximumSetGen() { * This sample demonstrates how to The operation to get a url for file upload. * * @summary The operation to get a url for file upload. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_GenerateUploadUrl_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_GenerateUploadUrl_MinimumSet_Gen.json */ async function workspacesGenerateUploadUrlMinimumSetGen() { const subscriptionId = diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesGetSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesGetSample.js similarity index 91% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesGetSample.js rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesGetSample.js index d25c7f00f297..68a61b84fd7a 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesGetSample.js +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get firmware analysis workspace. * * @summary Get firmware analysis workspace. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Get_MaximumSet_Gen.json */ async function workspacesGetMaximumSetGen() { const subscriptionId = @@ -33,7 +33,7 @@ async function workspacesGetMaximumSetGen() { * This sample demonstrates how to Get firmware analysis workspace. * * @summary Get firmware analysis workspace. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Get_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Get_MinimumSet_Gen.json */ async function workspacesGetMinimumSetGen() { const subscriptionId = diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesListByResourceGroupSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesListByResourceGroupSample.js similarity index 91% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesListByResourceGroupSample.js rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesListByResourceGroupSample.js index f81e74fc2b3d..96d7884f9da0 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesListByResourceGroupSample.js +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the firmware analysis workspaces in the specified resource group. * * @summary Lists all of the firmware analysis workspaces in the specified resource group. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_ListByResourceGroup_MaximumSet_Gen.json */ async function workspacesListByResourceGroupMaximumSetGen() { const subscriptionId = @@ -35,7 +35,7 @@ async function workspacesListByResourceGroupMaximumSetGen() { * This sample demonstrates how to Lists all of the firmware analysis workspaces in the specified resource group. * * @summary Lists all of the firmware analysis workspaces in the specified resource group. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListByResourceGroup_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_ListByResourceGroup_MinimumSet_Gen.json */ async function workspacesListByResourceGroupMinimumSetGen() { const subscriptionId = diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesListBySubscriptionSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesListBySubscriptionSample.js similarity index 90% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesListBySubscriptionSample.js rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesListBySubscriptionSample.js index da53a80cd1f0..41647561c1a3 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesListBySubscriptionSample.js +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the firmware analysis workspaces in the specified subscription. * * @summary Lists all of the firmware analysis workspaces in the specified subscription. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_ListBySubscription_MaximumSet_Gen.json */ async function workspacesListBySubscriptionMaximumSetGen() { const subscriptionId = @@ -34,7 +34,7 @@ async function workspacesListBySubscriptionMaximumSetGen() { * This sample demonstrates how to Lists all of the firmware analysis workspaces in the specified subscription. * * @summary Lists all of the firmware analysis workspaces in the specified subscription. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListBySubscription_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_ListBySubscription_MinimumSet_Gen.json */ async function workspacesListBySubscriptionMinimumSetGen() { const subscriptionId = diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesUpdateSample.js b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesUpdateSample.js similarity index 90% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesUpdateSample.js rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesUpdateSample.js index b1bf7b684222..bc331e4097b2 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/javascript/workspacesUpdateSample.js +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/javascript/workspacesUpdateSample.js @@ -16,14 +16,14 @@ require("dotenv").config(); * This sample demonstrates how to The operation to update a firmware analysis workspaces. * * @summary The operation to update a firmware analysis workspaces. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Update_MaximumSet_Gen.json */ async function workspacesUpdateMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "5443A01A-5242-4950-AC1A-2DD362180254"; const resourceGroupName = process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces"; const workspaceName = "E___-3"; - const workspace = {}; + const workspace = { properties: {} }; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const result = await client.workspaces.update(resourceGroupName, workspaceName, workspace); @@ -34,7 +34,7 @@ async function workspacesUpdateMaximumSetGen() { * This sample demonstrates how to The operation to update a firmware analysis workspaces. * * @summary The operation to update a firmware analysis workspaces. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Update_MinimumSet_Gen.json */ async function workspacesUpdateMinimumSetGen() { const subscriptionId = diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/README.md b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/README.md new file mode 100644 index 000000000000..16984177e4dd --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/README.md @@ -0,0 +1,107 @@ +# client library samples for TypeScript + +These sample programs show how to use the TypeScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [binaryHardeningListByFirmwareSample.ts][binaryhardeninglistbyfirmwaresample] | Lists binary hardening analysis results of a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/BinaryHardening_ListByFirmware_MaximumSet_Gen.json | +| [cryptoCertificatesListByFirmwareSample.ts][cryptocertificateslistbyfirmwaresample] | Lists cryptographic certificate analysis results found in a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/CryptoCertificates_ListByFirmware_MaximumSet_Gen.json | +| [cryptoKeysListByFirmwareSample.ts][cryptokeyslistbyfirmwaresample] | Lists cryptographic key analysis results found in a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/CryptoKeys_ListByFirmware_MaximumSet_Gen.json | +| [cvesListByFirmwareSample.ts][cveslistbyfirmwaresample] | Lists CVE analysis results of a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Cves_ListByFirmware_MaximumSet_Gen.json | +| [firmwaresCreateSample.ts][firmwarescreatesample] | The operation to create a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Create_MaximumSet_Gen.json | +| [firmwaresDeleteSample.ts][firmwaresdeletesample] | The operation to delete a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Delete_MaximumSet_Gen.json | +| [firmwaresGenerateDownloadUrlSample.ts][firmwaresgeneratedownloadurlsample] | The operation to a url for file download. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_GenerateDownloadUrl_MaximumSet_Gen.json | +| [firmwaresGenerateFilesystemDownloadUrlSample.ts][firmwaresgeneratefilesystemdownloadurlsample] | The operation to a url for tar file download. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_GenerateFilesystemDownloadUrl_MaximumSet_Gen.json | +| [firmwaresGetSample.ts][firmwaresgetsample] | Get firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Get_MaximumSet_Gen.json | +| [firmwaresListByWorkspaceSample.ts][firmwareslistbyworkspacesample] | Lists all of firmwares inside a workspace. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_ListByWorkspace_MaximumSet_Gen.json | +| [firmwaresUpdateSample.ts][firmwaresupdatesample] | The operation to update firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Update_MaximumSet_Gen.json | +| [operationsListSample.ts][operationslistsample] | Lists the operations for this resource provider x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Operations_List_MaximumSet_Gen.json | +| [passwordHashesListByFirmwareSample.ts][passwordhasheslistbyfirmwaresample] | Lists password hash analysis results of a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/PasswordHashes_ListByFirmware_MaximumSet_Gen.json | +| [sbomComponentsListByFirmwareSample.ts][sbomcomponentslistbyfirmwaresample] | Lists SBOM analysis results of a firmware. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/SbomComponents_ListByFirmware_MaximumSet_Gen.json | +| [summariesGetSample.ts][summariesgetsample] | Get an analysis result summary of a firmware by name. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Summaries_Get_MaximumSet_Gen.json | +| [summariesListByFirmwareSample.ts][summarieslistbyfirmwaresample] | Lists analysis result summary names of a firmware. To fetch the full summary data, get that summary by name. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Summaries_ListByFirmware_MaximumSet_Gen.json | +| [workspacesCreateSample.ts][workspacescreatesample] | The operation to create or update a firmware analysis workspace. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Create_MaximumSet_Gen.json | +| [workspacesDeleteSample.ts][workspacesdeletesample] | The operation to delete a firmware analysis workspace. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Delete_MaximumSet_Gen.json | +| [workspacesGenerateUploadUrlSample.ts][workspacesgenerateuploadurlsample] | The operation to get a url for file upload. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_GenerateUploadUrl_MaximumSet_Gen.json | +| [workspacesGetSample.ts][workspacesgetsample] | Get firmware analysis workspace. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Get_MaximumSet_Gen.json | +| [workspacesListByResourceGroupSample.ts][workspaceslistbyresourcegroupsample] | Lists all of the firmware analysis workspaces in the specified resource group. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_ListByResourceGroup_MaximumSet_Gen.json | +| [workspacesListBySubscriptionSample.ts][workspaceslistbysubscriptionsample] | Lists all of the firmware analysis workspaces in the specified subscription. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_ListBySubscription_MaximumSet_Gen.json | +| [workspacesUpdateSample.ts][workspacesupdatesample] | The operation to update a firmware analysis workspaces. x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Update_MaximumSet_Gen.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +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: + +```bash +npm install -g typescript +``` + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Compile the samples: + +```bash +npm run build +``` + +3. 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. + +4. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node dist/binaryHardeningListByFirmwareSample.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 IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID="" IOTFIRMWAREDEFENSE_RESOURCE_GROUP="" node dist/binaryHardeningListByFirmwareSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[binaryhardeninglistbyfirmwaresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/binaryHardeningListByFirmwareSample.ts +[cryptocertificateslistbyfirmwaresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/cryptoCertificatesListByFirmwareSample.ts +[cryptokeyslistbyfirmwaresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/cryptoKeysListByFirmwareSample.ts +[cveslistbyfirmwaresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/cvesListByFirmwareSample.ts +[firmwarescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresCreateSample.ts +[firmwaresdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresDeleteSample.ts +[firmwaresgeneratedownloadurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresGenerateDownloadUrlSample.ts +[firmwaresgeneratefilesystemdownloadurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresGenerateFilesystemDownloadUrlSample.ts +[firmwaresgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresGetSample.ts +[firmwareslistbyworkspacesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresListByWorkspaceSample.ts +[firmwaresupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresUpdateSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/operationsListSample.ts +[passwordhasheslistbyfirmwaresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/passwordHashesListByFirmwareSample.ts +[sbomcomponentslistbyfirmwaresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/sbomComponentsListByFirmwareSample.ts +[summariesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/summariesGetSample.ts +[summarieslistbyfirmwaresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/summariesListByFirmwareSample.ts +[workspacescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesCreateSample.ts +[workspacesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesDeleteSample.ts +[workspacesgenerateuploadurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesGenerateUploadUrlSample.ts +[workspacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesGetSample.ts +[workspaceslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesListByResourceGroupSample.ts +[workspaceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesListBySubscriptionSample.ts +[workspacesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesUpdateSample.ts +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-iotfirmwaredefense?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/README.md +[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/package.json b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/package.json similarity index 83% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/package.json rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/package.json index 585927429dec..abf2d96c9680 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/package.json +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/package.json @@ -1,8 +1,8 @@ { - "name": "@azure-samples/arm-iotfirmwaredefense-ts-beta", + "name": "@azure-samples/arm-iotfirmwaredefense-ts", "private": true, "version": "1.0.0", - "description": " client library samples for TypeScript (Beta)", + "description": " client library samples for TypeScript", "engines": { "node": ">=18.0.0" }, @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/iotfirmwaredefense/arm-iotfirmwaredefense", "dependencies": { - "@azure/arm-iotfirmwaredefense": "next", + "@azure/arm-iotfirmwaredefense": "latest", "dotenv": "latest", "@azure/identity": "^4.0.1" }, diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/sample.env b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/sample.env similarity index 100% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/sample.env rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/sample.env diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/binaryHardeningListByFirmwareSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/binaryHardeningListByFirmwareSample.ts new file mode 100644 index 000000000000..4573ecc76a26 --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/binaryHardeningListByFirmwareSample.ts @@ -0,0 +1,76 @@ +/* + * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists binary hardening analysis results of a firmware. + * + * @summary Lists binary hardening analysis results of a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/BinaryHardening_ListByFirmware_MaximumSet_Gen.json + */ +async function binaryHardeningListByFirmwareMaximumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.binaryHardening.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to Lists binary hardening analysis results of a firmware. + * + * @summary Lists binary hardening analysis results of a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/BinaryHardening_ListByFirmware_MinimumSet_Gen.json + */ +async function binaryHardeningListByFirmwareMinimumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.binaryHardening.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + binaryHardeningListByFirmwareMaximumSetGen(); + binaryHardeningListByFirmwareMinimumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/cryptoCertificatesListByFirmwareSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/cryptoCertificatesListByFirmwareSample.ts new file mode 100644 index 000000000000..6ccda8905df0 --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/cryptoCertificatesListByFirmwareSample.ts @@ -0,0 +1,76 @@ +/* + * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists cryptographic certificate analysis results found in a firmware. + * + * @summary Lists cryptographic certificate analysis results found in a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/CryptoCertificates_ListByFirmware_MaximumSet_Gen.json + */ +async function cryptoCertificatesListByFirmwareMaximumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.cryptoCertificates.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to Lists cryptographic certificate analysis results found in a firmware. + * + * @summary Lists cryptographic certificate analysis results found in a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/CryptoCertificates_ListByFirmware_MinimumSet_Gen.json + */ +async function cryptoCertificatesListByFirmwareMinimumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.cryptoCertificates.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + cryptoCertificatesListByFirmwareMaximumSetGen(); + cryptoCertificatesListByFirmwareMinimumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGenerateCryptoCertificateListSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/cryptoKeysListByFirmwareSample.ts similarity index 53% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGenerateCryptoCertificateListSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/cryptoKeysListByFirmwareSample.ts index d3ba4f6cd80b..145eab076365 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareListGenerateCryptoCertificateListSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/cryptoKeysListByFirmwareSample.ts @@ -15,26 +15,26 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to The operation to list all crypto certificates for a firmware. + * This sample demonstrates how to Lists cryptographic key analysis results found in a firmware. * - * @summary The operation to list all crypto certificates for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoCertificateList_MaximumSet_Gen.json + * @summary Lists cryptographic key analysis results found in a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/CryptoKeys_ListByFirmware_MaximumSet_Gen.json */ -async function firmwareListGenerateCryptoCertificateListMaximumSetGen() { +async function cryptoKeysListByFirmwareMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA"; + "00000000-0000-0000-0000-000000000000"; const resourceGroupName = process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; const workspaceName = "default"; - const firmwareId = "DECAFBAD-0000-0000-0000-BADBADBADBAD"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateCryptoCertificateList( + for await (let item of client.cryptoKeys.listByFirmware( resourceGroupName, workspaceName, - firmwareId + firmwareId, )) { resArray.push(item); } @@ -42,27 +42,26 @@ async function firmwareListGenerateCryptoCertificateListMaximumSetGen() { } /** - * This sample demonstrates how to The operation to list all crypto certificates for a firmware. + * This sample demonstrates how to Lists cryptographic key analysis results found in a firmware. * - * @summary The operation to list all crypto certificates for a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoCertificateList_MinimumSet_Gen.json + * @summary Lists cryptographic key analysis results found in a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/CryptoKeys_ListByFirmware_MinimumSet_Gen.json */ -async function firmwareListGenerateCryptoCertificateListMinimumSetGen() { +async function cryptoKeysListByFirmwareMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || - "C589E84A-5C11-4A25-9CF9-4E9C2F1EBFCA"; + "00000000-0000-0000-0000-000000000000"; const resourceGroupName = - process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || - "rgworkspaces-firmwares"; - const workspaceName = "j5QE_"; - const firmwareId = "wujtpcgypfpqseyrsebolarkspy"; + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const resArray = new Array(); - for await (let item of client.firmwareOperations.listGenerateCryptoCertificateList( + for await (let item of client.cryptoKeys.listByFirmware( resourceGroupName, workspaceName, - firmwareId + firmwareId, )) { resArray.push(item); } @@ -70,8 +69,8 @@ async function firmwareListGenerateCryptoCertificateListMinimumSetGen() { } async function main() { - firmwareListGenerateCryptoCertificateListMaximumSetGen(); - firmwareListGenerateCryptoCertificateListMinimumSetGen(); + cryptoKeysListByFirmwareMaximumSetGen(); + cryptoKeysListByFirmwareMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/cvesListByFirmwareSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/cvesListByFirmwareSample.ts new file mode 100644 index 000000000000..a3eb07fd0ef6 --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/cvesListByFirmwareSample.ts @@ -0,0 +1,76 @@ +/* + * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists CVE analysis results of a firmware. + * + * @summary Lists CVE analysis results of a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Cves_ListByFirmware_MaximumSet_Gen.json + */ +async function cvesListByFirmwareMaximumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.cves.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to Lists CVE analysis results of a firmware. + * + * @summary Lists CVE analysis results of a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Cves_ListByFirmware_MinimumSet_Gen.json + */ +async function cvesListByFirmwareMinimumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.cves.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + cvesListByFirmwareMaximumSetGen(); + cvesListByFirmwareMinimumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareCreateSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresCreateSample.ts similarity index 72% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareCreateSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresCreateSample.ts index f54cad6e8208..73feeaa5d01b 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareCreateSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { Firmware, - IoTFirmwareDefenseClient + IoTFirmwareDefenseClient, } from "@azure/arm-iotfirmwaredefense"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to The operation to create a firmware. * * @summary The operation to create a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Create_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Create_MaximumSet_Gen.json */ -async function firmwareCreateMaximumSetGen() { +async function firmwaresCreateMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -33,22 +33,24 @@ async function firmwareCreateMaximumSetGen() { const workspaceName = "A7"; const firmwareId = "umrkdttp"; const firmware: Firmware = { - description: "uz", - fileName: "wresexxulcdsdd", - fileSize: 17, - model: "f", - status: "Pending", - statusMessages: [{ message: "ulvhmhokezathzzauiitu" }], - vendor: "vycmdhgtmepcptyoubztiuudpkcpd", - version: "s" + properties: { + description: "uz", + fileName: "wresexxulcdsdd", + fileSize: 17, + model: "f", + status: "Pending", + statusMessages: [{ message: "ulvhmhokezathzzauiitu" }], + vendor: "vycmdhgtmepcptyoubztiuudpkcpd", + version: "s", + }, }; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.create( + const result = await client.firmwares.create( resourceGroupName, workspaceName, firmwareId, - firmware + firmware, ); console.log(result); } @@ -57,9 +59,9 @@ async function firmwareCreateMaximumSetGen() { * This sample demonstrates how to The operation to create a firmware. * * @summary The operation to create a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Create_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Create_MinimumSet_Gen.json */ -async function firmwareCreateMinimumSetGen() { +async function firmwaresCreateMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -71,18 +73,18 @@ async function firmwareCreateMinimumSetGen() { const firmware: Firmware = {}; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.create( + const result = await client.firmwares.create( resourceGroupName, workspaceName, firmwareId, - firmware + firmware, ); console.log(result); } async function main() { - firmwareCreateMaximumSetGen(); - firmwareCreateMinimumSetGen(); + firmwaresCreateMaximumSetGen(); + firmwaresCreateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareDeleteSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresDeleteSample.ts similarity index 79% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareDeleteSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresDeleteSample.ts index 35c5d3750a02..fa8be1065a9a 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareDeleteSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresDeleteSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to The operation to delete a firmware. * * @summary The operation to delete a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Delete_MaximumSet_Gen.json */ -async function firmwareDeleteMaximumSetGen() { +async function firmwaresDeleteMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -31,10 +31,10 @@ async function firmwareDeleteMaximumSetGen() { const firmwareId = "umrkdttp"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.delete( + const result = await client.firmwares.delete( resourceGroupName, workspaceName, - firmwareId + firmwareId, ); console.log(result); } @@ -43,9 +43,9 @@ async function firmwareDeleteMaximumSetGen() { * This sample demonstrates how to The operation to delete a firmware. * * @summary The operation to delete a firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Delete_MinimumSet_Gen.json */ -async function firmwareDeleteMinimumSetGen() { +async function firmwaresDeleteMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -56,17 +56,17 @@ async function firmwareDeleteMinimumSetGen() { const firmwareId = "umrkdttp"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.delete( + const result = await client.firmwares.delete( resourceGroupName, workspaceName, - firmwareId + firmwareId, ); console.log(result); } async function main() { - firmwareDeleteMaximumSetGen(); - firmwareDeleteMinimumSetGen(); + firmwaresDeleteMaximumSetGen(); + firmwaresDeleteMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateDownloadUrlSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresGenerateDownloadUrlSample.ts similarity index 76% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateDownloadUrlSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresGenerateDownloadUrlSample.ts index 3cb301856870..96dd159592a8 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateDownloadUrlSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresGenerateDownloadUrlSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to The operation to a url for file download. * * @summary The operation to a url for file download. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateDownloadUrl_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_GenerateDownloadUrl_MaximumSet_Gen.json */ -async function firmwareGenerateDownloadUrlMaximumSetGen() { +async function firmwaresGenerateDownloadUrlMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -31,10 +31,10 @@ async function firmwareGenerateDownloadUrlMaximumSetGen() { const firmwareId = "umrkdttp"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateDownloadUrl( + const result = await client.firmwares.generateDownloadUrl( resourceGroupName, workspaceName, - firmwareId + firmwareId, ); console.log(result); } @@ -43,9 +43,9 @@ async function firmwareGenerateDownloadUrlMaximumSetGen() { * This sample demonstrates how to The operation to a url for file download. * * @summary The operation to a url for file download. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateDownloadUrl_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_GenerateDownloadUrl_MinimumSet_Gen.json */ -async function firmwareGenerateDownloadUrlMinimumSetGen() { +async function firmwaresGenerateDownloadUrlMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -56,17 +56,17 @@ async function firmwareGenerateDownloadUrlMinimumSetGen() { const firmwareId = "umrkdttp"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateDownloadUrl( + const result = await client.firmwares.generateDownloadUrl( resourceGroupName, workspaceName, - firmwareId + firmwareId, ); console.log(result); } async function main() { - firmwareGenerateDownloadUrlMaximumSetGen(); - firmwareGenerateDownloadUrlMinimumSetGen(); + firmwaresGenerateDownloadUrlMaximumSetGen(); + firmwaresGenerateDownloadUrlMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateFilesystemDownloadUrlSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresGenerateFilesystemDownloadUrlSample.ts similarity index 74% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateFilesystemDownloadUrlSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresGenerateFilesystemDownloadUrlSample.ts index 96974d02d1f3..1f5718987729 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareGenerateFilesystemDownloadUrlSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresGenerateFilesystemDownloadUrlSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to The operation to a url for tar file download. * * @summary The operation to a url for tar file download. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateFilesystemDownloadUrl_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_GenerateFilesystemDownloadUrl_MaximumSet_Gen.json */ -async function firmwareGenerateFilesystemDownloadUrlMaximumSetGen() { +async function firmwaresGenerateFilesystemDownloadUrlMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -31,10 +31,10 @@ async function firmwareGenerateFilesystemDownloadUrlMaximumSetGen() { const firmwareId = "umrkdttp"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateFilesystemDownloadUrl( + const result = await client.firmwares.generateFilesystemDownloadUrl( resourceGroupName, workspaceName, - firmwareId + firmwareId, ); console.log(result); } @@ -43,9 +43,9 @@ async function firmwareGenerateFilesystemDownloadUrlMaximumSetGen() { * This sample demonstrates how to The operation to a url for tar file download. * * @summary The operation to a url for tar file download. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateFilesystemDownloadUrl_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_GenerateFilesystemDownloadUrl_MinimumSet_Gen.json */ -async function firmwareGenerateFilesystemDownloadUrlMinimumSetGen() { +async function firmwaresGenerateFilesystemDownloadUrlMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -56,17 +56,17 @@ async function firmwareGenerateFilesystemDownloadUrlMinimumSetGen() { const firmwareId = "umrkdttp"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.generateFilesystemDownloadUrl( + const result = await client.firmwares.generateFilesystemDownloadUrl( resourceGroupName, workspaceName, - firmwareId + firmwareId, ); console.log(result); } async function main() { - firmwareGenerateFilesystemDownloadUrlMaximumSetGen(); - firmwareGenerateFilesystemDownloadUrlMinimumSetGen(); + firmwaresGenerateFilesystemDownloadUrlMaximumSetGen(); + firmwaresGenerateFilesystemDownloadUrlMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGetSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresGetSample.ts similarity index 79% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGetSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresGetSample.ts index 1cfb3f735e7f..70d35c3ab040 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareGetSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresGetSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Get firmware. * * @summary Get firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Get_MaximumSet_Gen.json */ -async function firmwareGetMaximumSetGen() { +async function firmwaresGetMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -31,10 +31,10 @@ async function firmwareGetMaximumSetGen() { const firmwareId = "umrkdttp"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.get( + const result = await client.firmwares.get( resourceGroupName, workspaceName, - firmwareId + firmwareId, ); console.log(result); } @@ -43,9 +43,9 @@ async function firmwareGetMaximumSetGen() { * This sample demonstrates how to Get firmware. * * @summary Get firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Get_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Get_MinimumSet_Gen.json */ -async function firmwareGetMinimumSetGen() { +async function firmwaresGetMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -56,17 +56,17 @@ async function firmwareGetMinimumSetGen() { const firmwareId = "umrkdttp"; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.get( + const result = await client.firmwares.get( resourceGroupName, workspaceName, - firmwareId + firmwareId, ); console.log(result); } async function main() { - firmwareGetMaximumSetGen(); - firmwareGetMinimumSetGen(); + firmwaresGetMaximumSetGen(); + firmwaresGetMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareListByWorkspaceSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresListByWorkspaceSample.ts similarity index 77% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareListByWorkspaceSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresListByWorkspaceSample.ts index 02e3e43dc707..ab3741f9f403 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples-dev/firmwareListByWorkspaceSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresListByWorkspaceSample.ts @@ -18,9 +18,9 @@ dotenv.config(); * This sample demonstrates how to Lists all of firmwares inside a workspace. * * @summary Lists all of firmwares inside a workspace. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListByWorkspace_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_ListByWorkspace_MaximumSet_Gen.json */ -async function firmwareListByWorkspaceMaximumSetGen() { +async function firmwaresListByWorkspaceMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -31,9 +31,9 @@ async function firmwareListByWorkspaceMaximumSetGen() { const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const resArray = new Array(); - for await (let item of client.firmwareOperations.listByWorkspace( + for await (let item of client.firmwares.listByWorkspace( resourceGroupName, - workspaceName + workspaceName, )) { resArray.push(item); } @@ -44,9 +44,9 @@ async function firmwareListByWorkspaceMaximumSetGen() { * This sample demonstrates how to Lists all of firmwares inside a workspace. * * @summary Lists all of firmwares inside a workspace. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListByWorkspace_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_ListByWorkspace_MinimumSet_Gen.json */ -async function firmwareListByWorkspaceMinimumSetGen() { +async function firmwaresListByWorkspaceMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -57,9 +57,9 @@ async function firmwareListByWorkspaceMinimumSetGen() { const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const resArray = new Array(); - for await (let item of client.firmwareOperations.listByWorkspace( + for await (let item of client.firmwares.listByWorkspace( resourceGroupName, - workspaceName + workspaceName, )) { resArray.push(item); } @@ -67,8 +67,8 @@ async function firmwareListByWorkspaceMinimumSetGen() { } async function main() { - firmwareListByWorkspaceMaximumSetGen(); - firmwareListByWorkspaceMinimumSetGen(); + firmwaresListByWorkspaceMaximumSetGen(); + firmwaresListByWorkspaceMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareUpdateSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresUpdateSample.ts similarity index 72% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareUpdateSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresUpdateSample.ts index 97aada7c255f..5a2589556ce7 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/firmwareUpdateSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/firmwaresUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { FirmwareUpdateDefinition, - IoTFirmwareDefenseClient + IoTFirmwareDefenseClient, } from "@azure/arm-iotfirmwaredefense"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,9 +21,9 @@ dotenv.config(); * This sample demonstrates how to The operation to update firmware. * * @summary The operation to update firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Update_MaximumSet_Gen.json */ -async function firmwareUpdateMaximumSetGen() { +async function firmwaresUpdateMaximumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -33,22 +33,24 @@ async function firmwareUpdateMaximumSetGen() { const workspaceName = "A7"; const firmwareId = "umrkdttp"; const firmware: FirmwareUpdateDefinition = { - description: "uz", - fileName: "wresexxulcdsdd", - fileSize: 17, - model: "f", - status: "Pending", - statusMessages: [{ message: "ulvhmhokezathzzauiitu" }], - vendor: "vycmdhgtmepcptyoubztiuudpkcpd", - version: "s" + properties: { + description: "uz", + fileName: "wresexxulcdsdd", + fileSize: 17, + model: "f", + status: "Pending", + statusMessages: [{ message: "ulvhmhokezathzzauiitu" }], + vendor: "vycmdhgtmepcptyoubztiuudpkcpd", + version: "s", + }, }; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.update( + const result = await client.firmwares.update( resourceGroupName, workspaceName, firmwareId, - firmware + firmware, ); console.log(result); } @@ -57,9 +59,9 @@ async function firmwareUpdateMaximumSetGen() { * This sample demonstrates how to The operation to update firmware. * * @summary The operation to update firmware. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Firmwares_Update_MinimumSet_Gen.json */ -async function firmwareUpdateMinimumSetGen() { +async function firmwaresUpdateMinimumSetGen() { const subscriptionId = process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || "685C0C6F-9867-4B1C-A534-AA3A05B54BCE"; @@ -71,18 +73,18 @@ async function firmwareUpdateMinimumSetGen() { const firmware: FirmwareUpdateDefinition = {}; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); - const result = await client.firmwareOperations.update( + const result = await client.firmwares.update( resourceGroupName, workspaceName, firmwareId, - firmware + firmware, ); console.log(result); } async function main() { - firmwareUpdateMaximumSetGen(); - firmwareUpdateMinimumSetGen(); + firmwaresUpdateMaximumSetGen(); + firmwaresUpdateMinimumSetGen(); } main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/operationsListSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/operationsListSample.ts similarity index 90% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/operationsListSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/operationsListSample.ts index 55f91946e6be..dbdf7b4001bf 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/operationsListSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the operations for this resource provider * * @summary Lists the operations for this resource provider - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Operations_List_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Operations_List_MaximumSet_Gen.json */ async function operationsListMaximumSetGen() { const subscriptionId = @@ -37,7 +37,7 @@ async function operationsListMaximumSetGen() { * This sample demonstrates how to Lists the operations for this resource provider * * @summary Lists the operations for this resource provider - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Operations_List_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Operations_List_MinimumSet_Gen.json */ async function operationsListMinimumSetGen() { const subscriptionId = diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/passwordHashesListByFirmwareSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/passwordHashesListByFirmwareSample.ts new file mode 100644 index 000000000000..4b82d9fc178a --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/passwordHashesListByFirmwareSample.ts @@ -0,0 +1,76 @@ +/* + * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists password hash analysis results of a firmware. + * + * @summary Lists password hash analysis results of a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/PasswordHashes_ListByFirmware_MaximumSet_Gen.json + */ +async function passwordHashesListByFirmwareMaximumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.passwordHashes.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to Lists password hash analysis results of a firmware. + * + * @summary Lists password hash analysis results of a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/PasswordHashes_ListByFirmware_MinimumSet_Gen.json + */ +async function passwordHashesListByFirmwareMinimumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.passwordHashes.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + passwordHashesListByFirmwareMaximumSetGen(); + passwordHashesListByFirmwareMinimumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/sbomComponentsListByFirmwareSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/sbomComponentsListByFirmwareSample.ts new file mode 100644 index 000000000000..108b8d25a332 --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/sbomComponentsListByFirmwareSample.ts @@ -0,0 +1,76 @@ +/* + * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists SBOM analysis results of a firmware. + * + * @summary Lists SBOM analysis results of a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/SbomComponents_ListByFirmware_MaximumSet_Gen.json + */ +async function sbomComponentsListByFirmwareMaximumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.sbomComponents.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to Lists SBOM analysis results of a firmware. + * + * @summary Lists SBOM analysis results of a firmware. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/SbomComponents_ListByFirmware_MinimumSet_Gen.json + */ +async function sbomComponentsListByFirmwareMinimumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.sbomComponents.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + sbomComponentsListByFirmwareMaximumSetGen(); + sbomComponentsListByFirmwareMinimumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/summariesGetSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/summariesGetSample.ts new file mode 100644 index 000000000000..e03c299125c4 --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/summariesGetSample.ts @@ -0,0 +1,74 @@ +/* + * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get an analysis result summary of a firmware by name. + * + * @summary Get an analysis result summary of a firmware by name. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Summaries_Get_MaximumSet_Gen.json + */ +async function summariesGetMaximumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const summaryName = "Firmware"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const result = await client.summaries.get( + resourceGroupName, + workspaceName, + firmwareId, + summaryName, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Get an analysis result summary of a firmware by name. + * + * @summary Get an analysis result summary of a firmware by name. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Summaries_Get_MinimumSet_Gen.json + */ +async function summariesGetMinimumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const summaryName = "Firmware"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const result = await client.summaries.get( + resourceGroupName, + workspaceName, + firmwareId, + summaryName, + ); + console.log(result); +} + +async function main() { + summariesGetMaximumSetGen(); + summariesGetMinimumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/summariesListByFirmwareSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/summariesListByFirmwareSample.ts new file mode 100644 index 000000000000..c0282fce9044 --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/summariesListByFirmwareSample.ts @@ -0,0 +1,76 @@ +/* + * 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 { IoTFirmwareDefenseClient } from "@azure/arm-iotfirmwaredefense"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists analysis result summary names of a firmware. To fetch the full summary data, get that summary by name. + * + * @summary Lists analysis result summary names of a firmware. To fetch the full summary data, get that summary by name. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Summaries_ListByFirmware_MaximumSet_Gen.json + */ +async function summariesListByFirmwareMaximumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.summaries.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +/** + * This sample demonstrates how to Lists analysis result summary names of a firmware. To fetch the full summary data, get that summary by name. + * + * @summary Lists analysis result summary names of a firmware. To fetch the full summary data, get that summary by name. + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Summaries_ListByFirmware_MinimumSet_Gen.json + */ +async function summariesListByFirmwareMinimumSetGen() { + const subscriptionId = + process.env["IOTFIRMWAREDEFENSE_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "FirmwareAnalysisRG"; + const workspaceName = "default"; + const firmwareId = "109a9886-50bf-85a8-9d75-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new IoTFirmwareDefenseClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.summaries.listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + summariesListByFirmwareMaximumSetGen(); + summariesListByFirmwareMinimumSetGen(); +} + +main().catch(console.error); diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesCreateSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesCreateSample.ts similarity index 88% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesCreateSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesCreateSample.ts index ee4bdd522b68..0e625a1aa8e0 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesCreateSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { Workspace, - IoTFirmwareDefenseClient + IoTFirmwareDefenseClient, } from "@azure/arm-iotfirmwaredefense"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to create or update a firmware analysis workspace. * * @summary The operation to create or update a firmware analysis workspace. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Create_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Create_MaximumSet_Gen.json */ async function workspacesCreateMaximumSetGen() { const subscriptionId = @@ -32,14 +32,15 @@ async function workspacesCreateMaximumSetGen() { const workspaceName = "E___-3"; const workspace: Workspace = { location: "jjwbseilitjgdrhbvvkwviqj", - tags: { key450: "rzqqumbpfsbibnpirsm" } + properties: {}, + tags: { key450: "rzqqumbpfsbibnpirsm" }, }; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const result = await client.workspaces.create( resourceGroupName, workspaceName, - workspace + workspace, ); console.log(result); } @@ -48,7 +49,7 @@ async function workspacesCreateMaximumSetGen() { * This sample demonstrates how to The operation to create or update a firmware analysis workspace. * * @summary The operation to create or update a firmware analysis workspace. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Create_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Create_MinimumSet_Gen.json */ async function workspacesCreateMinimumSetGen() { const subscriptionId = @@ -63,7 +64,7 @@ async function workspacesCreateMinimumSetGen() { const result = await client.workspaces.create( resourceGroupName, workspaceName, - workspace + workspace, ); console.log(result); } diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesDeleteSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesDeleteSample.ts similarity index 90% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesDeleteSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesDeleteSample.ts index ab29667e42f3..7b4b69656d09 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesDeleteSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The operation to delete a firmware analysis workspace. * * @summary The operation to delete a firmware analysis workspace. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Delete_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Delete_MaximumSet_Gen.json */ async function workspacesDeleteMaximumSetGen() { const subscriptionId = @@ -31,7 +31,7 @@ async function workspacesDeleteMaximumSetGen() { const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const result = await client.workspaces.delete( resourceGroupName, - workspaceName + workspaceName, ); console.log(result); } @@ -40,7 +40,7 @@ async function workspacesDeleteMaximumSetGen() { * This sample demonstrates how to The operation to delete a firmware analysis workspace. * * @summary The operation to delete a firmware analysis workspace. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Delete_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Delete_MinimumSet_Gen.json */ async function workspacesDeleteMinimumSetGen() { const subscriptionId = @@ -53,7 +53,7 @@ async function workspacesDeleteMinimumSetGen() { const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const result = await client.workspaces.delete( resourceGroupName, - workspaceName + workspaceName, ); console.log(result); } diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesGenerateUploadUrlSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesGenerateUploadUrlSample.ts similarity index 88% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesGenerateUploadUrlSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesGenerateUploadUrlSample.ts index e795809c7f5c..5ce164ee4a27 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesGenerateUploadUrlSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesGenerateUploadUrlSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GenerateUploadUrlRequest, - IoTFirmwareDefenseClient + IoTFirmwareDefenseClient, } from "@azure/arm-iotfirmwaredefense"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to get a url for file upload. * * @summary The operation to get a url for file upload. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_GenerateUploadUrl_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_GenerateUploadUrl_MaximumSet_Gen.json */ async function workspacesGenerateUploadUrlMaximumSetGen() { const subscriptionId = @@ -31,14 +31,14 @@ async function workspacesGenerateUploadUrlMaximumSetGen() { process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces"; const workspaceName = "E___-3"; const generateUploadUrl: GenerateUploadUrlRequest = { - firmwareId: "ytsfprbywi" + firmwareId: "ytsfprbywi", }; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const result = await client.workspaces.generateUploadUrl( resourceGroupName, workspaceName, - generateUploadUrl + generateUploadUrl, ); console.log(result); } @@ -47,7 +47,7 @@ async function workspacesGenerateUploadUrlMaximumSetGen() { * This sample demonstrates how to The operation to get a url for file upload. * * @summary The operation to get a url for file upload. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_GenerateUploadUrl_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_GenerateUploadUrl_MinimumSet_Gen.json */ async function workspacesGenerateUploadUrlMinimumSetGen() { const subscriptionId = @@ -62,7 +62,7 @@ async function workspacesGenerateUploadUrlMinimumSetGen() { const result = await client.workspaces.generateUploadUrl( resourceGroupName, workspaceName, - generateUploadUrl + generateUploadUrl, ); console.log(result); } diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesGetSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesGetSample.ts similarity index 91% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesGetSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesGetSample.ts index 505ba01ca2f8..26c376faa749 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesGetSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get firmware analysis workspace. * * @summary Get firmware analysis workspace. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Get_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Get_MaximumSet_Gen.json */ async function workspacesGetMaximumSetGen() { const subscriptionId = @@ -37,7 +37,7 @@ async function workspacesGetMaximumSetGen() { * This sample demonstrates how to Get firmware analysis workspace. * * @summary Get firmware analysis workspace. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Get_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Get_MinimumSet_Gen.json */ async function workspacesGetMinimumSetGen() { const subscriptionId = diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesListByResourceGroupSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesListByResourceGroupSample.ts similarity index 89% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesListByResourceGroupSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesListByResourceGroupSample.ts index 526fcbc2417b..f2fb56a6c1ba 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesListByResourceGroupSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the firmware analysis workspaces in the specified resource group. * * @summary Lists all of the firmware analysis workspaces in the specified resource group. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_ListByResourceGroup_MaximumSet_Gen.json */ async function workspacesListByResourceGroupMaximumSetGen() { const subscriptionId = @@ -30,7 +30,7 @@ async function workspacesListByResourceGroupMaximumSetGen() { const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.workspaces.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } @@ -41,7 +41,7 @@ async function workspacesListByResourceGroupMaximumSetGen() { * This sample demonstrates how to Lists all of the firmware analysis workspaces in the specified resource group. * * @summary Lists all of the firmware analysis workspaces in the specified resource group. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListByResourceGroup_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_ListByResourceGroup_MinimumSet_Gen.json */ async function workspacesListByResourceGroupMinimumSetGen() { const subscriptionId = @@ -53,7 +53,7 @@ async function workspacesListByResourceGroupMinimumSetGen() { const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.workspaces.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesListBySubscriptionSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesListBySubscriptionSample.ts similarity index 90% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesListBySubscriptionSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesListBySubscriptionSample.ts index cfdd984e4ca6..d5ec9dccd511 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesListBySubscriptionSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the firmware analysis workspaces in the specified subscription. * * @summary Lists all of the firmware analysis workspaces in the specified subscription. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_ListBySubscription_MaximumSet_Gen.json */ async function workspacesListBySubscriptionMaximumSetGen() { const subscriptionId = @@ -37,7 +37,7 @@ async function workspacesListBySubscriptionMaximumSetGen() { * This sample demonstrates how to Lists all of the firmware analysis workspaces in the specified subscription. * * @summary Lists all of the firmware analysis workspaces in the specified subscription. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListBySubscription_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_ListBySubscription_MinimumSet_Gen.json */ async function workspacesListBySubscriptionMinimumSetGen() { const subscriptionId = diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesUpdateSample.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesUpdateSample.ts similarity index 88% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesUpdateSample.ts rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesUpdateSample.ts index cbbc90073a35..08780161f3ca 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/src/workspacesUpdateSample.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/src/workspacesUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { WorkspaceUpdateDefinition, - IoTFirmwareDefenseClient + IoTFirmwareDefenseClient, } from "@azure/arm-iotfirmwaredefense"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The operation to update a firmware analysis workspaces. * * @summary The operation to update a firmware analysis workspaces. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Update_MaximumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Update_MaximumSet_Gen.json */ async function workspacesUpdateMaximumSetGen() { const subscriptionId = @@ -30,13 +30,13 @@ async function workspacesUpdateMaximumSetGen() { const resourceGroupName = process.env["IOTFIRMWAREDEFENSE_RESOURCE_GROUP"] || "rgworkspaces"; const workspaceName = "E___-3"; - const workspace: WorkspaceUpdateDefinition = {}; + const workspace: WorkspaceUpdateDefinition = { properties: {} }; const credential = new DefaultAzureCredential(); const client = new IoTFirmwareDefenseClient(credential, subscriptionId); const result = await client.workspaces.update( resourceGroupName, workspaceName, - workspace + workspace, ); console.log(result); } @@ -45,7 +45,7 @@ async function workspacesUpdateMaximumSetGen() { * This sample demonstrates how to The operation to update a firmware analysis workspaces. * * @summary The operation to update a firmware analysis workspaces. - * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Update_MinimumSet_Gen.json + * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/Workspaces_Update_MinimumSet_Gen.json */ async function workspacesUpdateMinimumSetGen() { const subscriptionId = @@ -60,7 +60,7 @@ async function workspacesUpdateMinimumSetGen() { const result = await client.workspaces.update( resourceGroupName, workspaceName, - workspace + workspace, ); console.log(result); } diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/tsconfig.json b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/tsconfig.json similarity index 100% rename from sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1-beta/typescript/tsconfig.json rename to sdk/iotfirmwaredefense/arm-iotfirmwaredefense/samples/v1/typescript/tsconfig.json diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/ioTFirmwareDefenseClient.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/ioTFirmwareDefenseClient.ts index 2f7f4be86f3f..a21406c99a0d 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/ioTFirmwareDefenseClient.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/ioTFirmwareDefenseClient.ts @@ -11,18 +11,32 @@ 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 { - FirmwareOperationsImpl, + BinaryHardeningImpl, + CryptoCertificatesImpl, + CryptoKeysImpl, + CvesImpl, + FirmwaresImpl, + OperationsImpl, + PasswordHashesImpl, + SbomComponentsImpl, + SummariesImpl, WorkspacesImpl, - OperationsImpl } from "./operations"; import { - FirmwareOperations, + BinaryHardening, + CryptoCertificates, + CryptoKeys, + Cves, + Firmwares, + Operations, + PasswordHashes, + SbomComponents, + Summaries, Workspaces, - Operations } from "./operationsInterfaces"; import { IoTFirmwareDefenseClientOptionalParams } from "./models"; @@ -34,13 +48,13 @@ export class IoTFirmwareDefenseClient extends coreClient.ServiceClient { /** * Initializes a new instance of the IoTFirmwareDefenseClient class. * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The ID of the target subscription. + * @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?: IoTFirmwareDefenseClientOptionalParams + options?: IoTFirmwareDefenseClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -55,10 +69,10 @@ export class IoTFirmwareDefenseClient extends coreClient.ServiceClient { } const defaults: IoTFirmwareDefenseClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-iotfirmwaredefense/1.0.0-beta.2`; + const packageDetails = `azsdk-js-arm-iotfirmwaredefense/1.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -68,20 +82,21 @@ export class IoTFirmwareDefenseClient 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 ( @@ -91,7 +106,7 @@ export class IoTFirmwareDefenseClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -101,9 +116,9 @@ export class IoTFirmwareDefenseClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -111,10 +126,17 @@ export class IoTFirmwareDefenseClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-02-08-preview"; - this.firmwareOperations = new FirmwareOperationsImpl(this); - this.workspaces = new WorkspacesImpl(this); + this.apiVersion = options.apiVersion || "2024-01-10"; + this.binaryHardening = new BinaryHardeningImpl(this); + this.cryptoCertificates = new CryptoCertificatesImpl(this); + this.cryptoKeys = new CryptoKeysImpl(this); + this.cves = new CvesImpl(this); + this.firmwares = new FirmwaresImpl(this); this.operations = new OperationsImpl(this); + this.passwordHashes = new PasswordHashesImpl(this); + this.sbomComponents = new SbomComponentsImpl(this); + this.summaries = new SummariesImpl(this); + this.workspaces = new WorkspacesImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -127,7 +149,7 @@ export class IoTFirmwareDefenseClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -141,12 +163,19 @@ export class IoTFirmwareDefenseClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } - firmwareOperations: FirmwareOperations; - workspaces: Workspaces; + binaryHardening: BinaryHardening; + cryptoCertificates: CryptoCertificates; + cryptoKeys: CryptoKeys; + cves: Cves; + firmwares: Firmwares; operations: Operations; + passwordHashes: PasswordHashes; + sbomComponents: SbomComponents; + summaries: Summaries; + workspaces: Workspaces; } diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/models/index.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/models/index.ts index d6473b5afc2a..95550f761c9d 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/models/index.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/models/index.ts @@ -8,21 +8,61 @@ import * as coreClient from "@azure/core-client"; -/** List of firmwares */ -export interface FirmwareList { +export type SummaryResourcePropertiesUnion = + | SummaryResourceProperties + | FirmwareSummary + | CveSummary + | BinaryHardeningSummaryResource + | CryptoCertificateSummaryResource + | CryptoKeySummaryResource; + +/** List of binary hardening results. */ +export interface BinaryHardeningListResult { /** - * The list of firmwares. + * The list of binary hardening results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Firmware[]; - /** The uri to fetch the next page of asset. */ + readonly value?: BinaryHardeningResource[]; + /** The uri to fetch the next page of resources. */ nextLink?: string; } +/** Binary hardening of a firmware. */ +export interface BinaryHardeningResult { + /** ID for the binary hardening result. */ + binaryHardeningId?: string; + /** Binary hardening features. */ + features?: BinaryHardeningFeatures; + /** The architecture of the uploaded firmware. */ + architecture?: string; + /** The executable path. */ + filePath?: string; + /** The executable class to indicate 32 or 64 bit. */ + class?: string; + /** The runpath of the uploaded firmware. */ + runpath?: string; + /** The rpath of the uploaded firmware. */ + rpath?: string; +} + +/** Binary hardening features. */ +export interface BinaryHardeningFeatures { + /** NX (no-execute) flag. */ + nx?: boolean; + /** PIE (position independent executable) flag. */ + pie?: boolean; + /** RELRO (relocation read-only) flag. */ + relro?: boolean; + /** Canary (stack canaries) flag. */ + canary?: boolean; + /** Stripped flag. */ + stripped?: boolean; +} + /** 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; @@ -108,286 +148,20 @@ export interface ErrorAdditionalInfo { readonly info?: Record; } -/** Firmware definition */ -export interface FirmwareUpdateDefinition { - /** File name for a firmware that user uploaded. */ - fileName?: string; - /** Firmware vendor. */ - vendor?: string; - /** Firmware model. */ - model?: string; - /** Firmware version. */ - version?: string; - /** User-specified description of the firmware. */ - description?: string; - /** File size of the uploaded firmware image. */ - fileSize?: number; - /** The status of firmware scan. */ - status?: Status; - /** A list of errors or other messages generated during firmware analysis */ - statusMessages?: Record[]; - /** - * Provisioning state of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; -} - -/** Url data for creating or accessing a blob file. */ -export interface UrlToken { - /** - * SAS URL for creating or accessing a blob file. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly url?: string; - /** - * SAS URL for file uploading. Kept for backwards compatibility - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly uploadUrl?: string; -} - -/** Summary result after scanning the firmware. */ -export interface FirmwareSummary { - /** Total extracted size of the firmware in bytes. */ - extractedSize?: number; - /** Firmware file size in bytes. */ - fileSize?: number; - /** Extracted file count. */ - extractedFileCount?: number; - /** Components count. */ - componentCount?: number; - /** Binary count */ - binaryCount?: number; - /** Time used for analysis */ - analysisTimeSeconds?: number; - /** The number of root file systems found. */ - rootFileSystems?: number; -} - -/** List result for components */ -export interface ComponentList { - /** - * The list of components. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: Component[]; - /** The uri to fetch the next page of asset. */ - nextLink?: string; -} - -/** Component of a firmware. */ -export interface Component { - /** ID for the component. */ - componentId?: string; - /** Name for the component. */ - componentName?: string; - /** Version for the component. */ - version?: string; - /** License for the component. */ - license?: string; - /** Release date for the component. */ - releaseDate?: Date; - /** Paths of the component. */ - paths?: string[]; - /** Flag if new update is available for the component. */ - isUpdateAvailable?: IsUpdateAvailable; -} - -/** List result for binary hardening */ -export interface BinaryHardeningList { - /** - * The list of binary hardening results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: BinaryHardening[]; - /** The uri to fetch the next page of asset. */ - nextLink?: string; -} - -/** Binary hardening of a firmware. */ -export interface BinaryHardening { - /** ID for the binary hardening result. */ - binaryHardeningId?: string; - /** The architecture of the uploaded firmware. */ - architecture?: string; - /** path for binary hardening. */ - path?: string; - /** class for binary hardening. */ - class?: string; - /** The runpath of the uploaded firmware. */ - runpath?: string; - /** The rpath of the uploaded firmware. */ - rpath?: string; - /** NX flag. */ - nx?: NxFlag; - /** PIE flag. */ - pie?: PieFlag; - /** RELRO flag. */ - relro?: RelroFlag; - /** Canary flag. */ - canary?: CanaryFlag; - /** Stripped flag. */ - stripped?: StrippedFlag; -} - -/** Binary hardening summary percentages. */ -export interface BinaryHardeningSummary { - /** Total number of binaries that were analyzed */ - totalFiles?: number; - /** NX summary percentage */ - nx?: number; - /** PIE summary percentage */ - pie?: number; - /** RELRO summary percentage */ - relro?: number; - /** Canary summary percentage */ - canary?: number; - /** Stripped summary percentage */ - stripped?: number; -} - -/** Password hashes list */ -export interface PasswordHashList { - /** - * Password hashes list - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: PasswordHash[]; - /** The uri to fetch the next page of asset. */ - nextLink?: string; -} - -/** Password hash properties */ -export interface PasswordHash { - /** ID for password hash */ - passwordHashId?: string; - /** File path of the password hash */ - filePath?: string; - /** Salt of the password hash */ - salt?: string; - /** Hash of the password */ - hash?: string; - /** Context of password hash */ - context?: string; - /** User name of password hash */ - username?: string; - /** Algorithm of the password hash */ - algorithm?: string; -} - -/** List result for CVE */ -export interface CveList { - /** - * The list of CVE results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: Cve[]; - /** The uri to fetch the next page of asset. */ - nextLink?: string; -} - -/** Known CVEs of a firmware. */ -export interface Cve { - /** ID of CVE */ - cveId?: string; - /** Component of CVE */ - component?: Record; - /** Severity of CVE */ - severity?: string; - /** Name of CVE */ - name?: string; - /** A single CVSS score to represent the CVE. If a V3 score is specified, then it will use the V3 score. Otherwise if the V2 score is specified it will be the V2 score */ - cvssScore?: string; - /** Cvss version of CVE */ - cvssVersion?: string; - /** Cvss V2 score of CVE */ - cvssV2Score?: string; - /** Cvss V3 score of CVE */ - cvssV3Score?: string; - /** Publish date of CVE */ - publishDate?: Date; - /** Updated date of CVE */ - updatedDate?: Date; - /** - * The list of CVE links. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly links?: CveLink[]; - /** Description of CVE */ - description?: string; -} - -/** Link for CVE */ -export interface CveLink { - /** Href of CVE link */ - href?: string; - /** Label of CVE link */ - label?: string; -} - -/** CVE summary values. */ -export interface CveSummary { - /** The total number of critical severity CVEs detected */ - critical?: number; - /** The total number of high severity CVEs detected */ - high?: number; - /** The total number of medium severity CVEs detected */ - medium?: number; - /** The total number of low severity CVEs detected */ - low?: number; - /** The total number of unknown severity CVEs detected */ - unknown?: number; - /** The total number of undefined severity CVEs detected */ - undefined?: number; -} - -/** Cryptographic certificate summary values. */ -export interface CryptoCertificateSummary { - /** Total number of certificates found. */ - totalCertificates?: number; - /** Total number of paired private keys found for the certificates. */ - pairedKeys?: number; - /** Total number of expired certificates found. */ - expired?: number; - /** Total number of nearly expired certificates found. */ - expiringSoon?: number; - /** Total number of certificates found using a weak signature algorithm. */ - weakSignature?: number; - /** Total number of certificates found that are self-signed. */ - selfSigned?: number; - /** Total number of certificates found that have an insecure key size for the key algorithm. */ - shortKeySize?: number; -} - -/** Cryptographic key summary values. */ -export interface CryptoKeySummary { - /** Total number of cryptographic keys found. */ - totalKeys?: number; - /** Total number of (non-certificate) public keys found. */ - publicKeys?: number; - /** Total number of private keys found. */ - privateKeys?: number; - /** Total number of keys found that have a matching paired key or certificate. */ - pairedKeys?: number; - /** Total number of keys found that have an insecure key size for the algorithm. */ - shortKeySize?: number; -} - -/** Crypto certificates list */ -export interface CryptoCertificateList { +/** List of crypto certificates. */ +export interface CryptoCertificateListResult { /** - * Crypto certificates list + * The list of crypto certificate results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: CryptoCertificate[]; - /** The uri to fetch the next page of asset. */ + readonly value?: CryptoCertificateResource[]; + /** The uri to fetch the next page of resources. */ nextLink?: string; } /** Crypto certificate properties */ export interface CryptoCertificate { - /** ID for the certificate. */ + /** ID for the certificate result. */ cryptoCertId?: string; /** Name of the certificate. */ name?: string; @@ -416,20 +190,20 @@ export interface CryptoCertificate { /** List of functions the certificate can fulfill. */ usage?: string[]; /** - * List of files paths for this certificate + * List of files where this certificate was found. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly filePaths?: string[]; /** A matching paired private key. */ pairedKey?: PairedKey; /** Indicates if the certificate is expired. */ - isExpired?: IsExpired; - /** Indicates if the certificate was self-signed. */ - isSelfSigned?: IsSelfSigned; + isExpired?: boolean; + /** Indicates if the certificate is self-signed. */ + isSelfSigned?: boolean; /** Indicates the signature algorithm used is insecure. */ - isWeakSignature?: IsWeakSignature; + isWeakSignature?: boolean; /** Indicates the certificate's key size is considered too small to be secure for the key algorithm. */ - isShortKeySize?: IsShortKeySize; + isShortKeySize?: boolean; } /** Information on an entity (distinguished name) in a cryptographic certificate. */ @@ -452,24 +226,22 @@ export interface PairedKey { id?: string; /** The type indicating whether the paired object is a key or certificate. */ type?: string; - /** Additional paired key properties */ - additionalProperties?: Record; } -/** Crypto keys list */ -export interface CryptoKeyList { +/** List of crypto keys. */ +export interface CryptoKeyListResult { /** - * Crypto keys list + * The list of crypto key results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: CryptoKey[]; - /** The uri to fetch the next page of asset. */ + readonly value?: CryptoKeyResource[]; + /** The uri to fetch the next page of resources. */ nextLink?: string; } /** Crypto key properties */ export interface CryptoKey { - /** ID for the key. */ + /** ID for the key result. */ cryptoKeyId?: string; /** Type of the key (public or private). */ keyType?: string; @@ -480,29 +252,101 @@ export interface CryptoKey { /** Functions the key can fulfill. */ usage?: string[]; /** - * List of files paths for this key. + * List of files where this key was found. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly filePaths?: string[]; /** A matching paired key or certificate. */ pairedKey?: PairedKey; /** Indicates the key size is considered too small to be secure for the algorithm. */ - isShortKeySize?: IsShortKeySize; + isShortKeySize?: boolean; } -/** Return a list of firmware analysis workspaces. */ -export interface WorkspaceList { +/** List of CVE results. */ +export interface CveListResult { /** - * The list of firmware analysis workspaces. + * The list of CVE results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Workspace[]; + readonly value?: CveResource[]; + /** The uri to fetch the next page of resources. */ + nextLink?: string; +} + +/** Details of a CVE detected in firmware. */ +export interface CveResult { + /** ID of the CVE result. */ + cveId?: string; + /** The SBOM component for the CVE. */ + component?: CveComponent; + /** Severity of the CVE. */ + severity?: string; + /** Name of the CVE. */ + name?: string; + /** A single CVSS score to represent the CVE. If a V3 score is specified, then it will use the V3 score. Otherwise if the V2 score is specified it will be the V2 score. */ + cvssScore?: string; + /** CVSS version of the CVE. */ + cvssVersion?: string; + /** CVSS V2 score of the CVE. */ + cvssV2Score?: string; + /** CVSS V3 score of the CVE. */ + cvssV3Score?: string; + /** + * The list of reference links for the CVE. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly links?: CveLink[]; + /** The CVE description. */ + description?: string; +} + +/** Properties of the SBOM component for a CVE. */ +export interface CveComponent { + /** ID of the SBOM component */ + componentId?: string; + /** Name of the SBOM component */ + name?: string; + /** Version of the SBOM component. */ + version?: string; +} + +/** Properties of a reference link for a CVE. */ +export interface CveLink { + /** The destination of the reference link. */ + href?: string; + /** The label of the reference link. */ + label?: string; +} + +/** List of firmwares */ +export interface FirmwareList { + /** + * The list of firmwares. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: Firmware[]; /** The uri to fetch the next page of asset. */ nextLink?: string; } -/** Firmware analysis workspace. */ -export interface WorkspaceUpdateDefinition { +/** Firmware properties. */ +export interface FirmwareProperties { + /** File name for a firmware that user uploaded. */ + fileName?: string; + /** Firmware vendor. */ + vendor?: string; + /** Firmware model. */ + model?: string; + /** Firmware version. */ + version?: string; + /** User-specified description of the firmware. */ + description?: string; + /** File size of the uploaded firmware image. */ + fileSize?: number; + /** The status of firmware scan. */ + status?: Status; + /** A list of errors or other messages generated during firmware analysis */ + statusMessages?: StatusMessage[]; /** * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -510,10 +354,27 @@ export interface WorkspaceUpdateDefinition { readonly provisioningState?: ProvisioningState; } -/** Properties for generating an upload URL */ -export interface GenerateUploadUrlRequest { - /** A unique ID for the firmware to be uploaded. */ - firmwareId?: string; +/** Error and status message */ +export interface StatusMessage { + /** The error code */ + errorCode?: number; + /** The error or status message */ + message?: string; +} + +/** Firmware definition */ +export interface FirmwareUpdateDefinition { + /** The editable properties of a firmware */ + properties?: FirmwareProperties; +} + +/** Url data for creating or accessing a blob file. */ +export interface UrlToken { + /** + * SAS URL for creating or accessing a blob file. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly url?: string; } /** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ @@ -580,18 +441,164 @@ export interface OperationDisplay { readonly description?: string; } -/** Component for CVE */ -export interface CveComponent { - /** ID of CVE component */ +/** List of password hash results */ +export interface PasswordHashListResult { + /** + * The list of password hash results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: PasswordHashResource[]; + /** The uri to fetch the next page of resources. */ + nextLink?: string; +} + +/** Password hash properties */ +export interface PasswordHash { + /** ID for password hash */ + passwordHashId?: string; + /** File path of the password hash */ + filePath?: string; + /** Salt of the password hash */ + salt?: string; + /** Hash of the password */ + hash?: string; + /** Context of password hash */ + context?: string; + /** User name of password hash */ + username?: string; + /** Algorithm of the password hash */ + algorithm?: string; +} + +/** List of SBOM results. */ +export interface SbomComponentListResult { + /** + * The list of SBOM components. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: SbomComponentResource[]; + /** The uri to fetch the next page of resources. */ + nextLink?: string; +} + +/** SBOM component of a firmware. */ +export interface SbomComponent { + /** ID for the component. */ componentId?: string; - /** Name of CVE component */ - name?: string; - /** Version of CVE component */ + /** Name for the component. */ + componentName?: string; + /** Version for the component. */ version?: string; + /** License for the component. */ + license?: string; + /** File paths related to the component. */ + filePaths?: string[]; +} + +/** List of analysis summaries. */ +export interface SummaryListResult { + /** + * The list of summaries. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: SummaryResource[]; + /** The uri to fetch the next page of resources. */ + nextLink?: string; +} + +/** Properties of an analysis summary. */ +export interface SummaryResourceProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + summaryType: + | "Firmware" + | "CVE" + | "BinaryHardening" + | "CryptoCertificate" + | "CryptoKey"; +} + +/** Return a list of firmware analysis workspaces. */ +export interface WorkspaceList { + /** + * The list of firmware analysis workspaces. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: Workspace[]; + /** The uri to fetch the next page of asset. */ + nextLink?: string; +} + +/** Workspace properties. */ +export interface WorkspaceProperties { + /** + * Provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** Firmware analysis workspace. */ +export interface WorkspaceUpdateDefinition { + /** The editable workspace properties. */ + properties?: WorkspaceProperties; +} + +/** Properties for generating an upload URL */ +export interface GenerateUploadUrlRequest { + /** A unique ID for the firmware to be uploaded. */ + firmwareId?: string; +} + +/** binary hardening analysis result resource */ +export interface BinaryHardeningResource extends Resource { + /** The properties of a binary hardening result found within a firmware image */ + properties?: BinaryHardeningResult; +} + +/** Crypto certificate resource */ +export interface CryptoCertificateResource extends Resource { + /** The properties of a crypto certificate found within a firmware image */ + properties?: CryptoCertificate; +} + +/** Crypto key resource */ +export interface CryptoKeyResource extends Resource { + /** The properties of a crypto key found within a firmware image */ + properties?: CryptoKey; +} + +/** CVE analysis result resource */ +export interface CveResource extends Resource { + /** The properties of a CVE result found within a firmware image */ + properties?: CveResult; +} + +/** Firmware definition */ +export interface Firmware extends Resource { + /** The properties of a firmware */ + properties?: FirmwareProperties; +} + +/** Password hash resource */ +export interface PasswordHashResource extends Resource { + /** The properties of a password hash found within a firmware image */ + properties?: PasswordHash; +} + +/** SBOM analysis result resource */ +export interface SbomComponentResource extends Resource { + /** The properties of an SBOM component found within a firmware image */ + properties?: SbomComponent; } -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResource extends Resource {} +/** The object representing a firmware analysis summary resource. */ +export interface SummaryResource extends Resource { + /** + * Properties of an analysis summary. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly properties?: SummaryResourcePropertiesUnion; +} /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ export interface TrackedResource extends Resource { @@ -601,40 +608,128 @@ export interface TrackedResource extends Resource { location: string; } -/** Firmware definition */ -export interface Firmware extends ProxyResource { - /** File name for a firmware that user uploaded. */ - fileName?: string; - /** Firmware vendor. */ - vendor?: string; - /** Firmware model. */ - model?: string; - /** Firmware version. */ - version?: string; - /** User-specified description of the firmware. */ - description?: string; - /** File size of the uploaded firmware image. */ +/** Properties for high level summary of firmware analysis results. */ +export interface FirmwareSummary extends SummaryResourceProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + summaryType: "Firmware"; + /** Total extracted size of the firmware in bytes. */ + extractedSize?: number; + /** Firmware file size in bytes. */ fileSize?: number; - /** The status of firmware scan. */ - status?: Status; - /** A list of errors or other messages generated during firmware analysis */ - statusMessages?: Record[]; - /** - * Provisioning state of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; + /** Extracted file count. */ + extractedFileCount?: number; + /** Components count. */ + componentCount?: number; + /** Binary count */ + binaryCount?: number; + /** Time used for analysis */ + analysisTimeSeconds?: number; + /** The number of root file systems found. */ + rootFileSystems?: number; +} + +/** Properties for a CVE analysis summary. */ +export interface CveSummary extends SummaryResourceProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + summaryType: "CVE"; + /** The total number of critical severity CVEs detected */ + critical?: number; + /** The total number of high severity CVEs detected */ + high?: number; + /** The total number of medium severity CVEs detected */ + medium?: number; + /** The total number of low severity CVEs detected */ + low?: number; + /** The total number of unknown severity CVEs detected */ + unknown?: number; +} + +/** Properties for a binary hardening analysis summary. */ +export interface BinaryHardeningSummaryResource + extends SummaryResourceProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + summaryType: "BinaryHardening"; + /** Total number of binaries that were analyzed */ + totalFiles?: number; + /** NX summary percentage */ + nx?: number; + /** PIE summary percentage */ + pie?: number; + /** RELRO summary percentage */ + relro?: number; + /** Canary summary percentage */ + canary?: number; + /** Stripped summary percentage */ + stripped?: number; +} + +/** Properties for cryptographic certificate summary. */ +export interface CryptoCertificateSummaryResource + extends SummaryResourceProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + summaryType: "CryptoCertificate"; + /** Total number of certificates found. */ + totalCertificates?: number; + /** Total number of paired private keys found for the certificates. */ + pairedKeys?: number; + /** Total number of expired certificates found. */ + expired?: number; + /** Total number of nearly expired certificates found. */ + expiringSoon?: number; + /** Total number of certificates found using a weak signature algorithm. */ + weakSignature?: number; + /** Total number of certificates found that are self-signed. */ + selfSigned?: number; + /** Total number of certificates found that have an insecure key size for the key algorithm. */ + shortKeySize?: number; +} + +/** Properties for cryptographic key summary. */ +export interface CryptoKeySummaryResource extends SummaryResourceProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + summaryType: "CryptoKey"; + /** Total number of cryptographic keys found. */ + totalKeys?: number; + /** Total number of (non-certificate) public keys found. */ + publicKeys?: number; + /** Total number of private keys found. */ + privateKeys?: number; + /** Total number of keys found that have a matching paired key or certificate. */ + pairedKeys?: number; + /** Total number of keys found that have an insecure key size for the algorithm. */ + shortKeySize?: number; } /** Firmware analysis workspace. */ export interface Workspace extends TrackedResource { - /** - * Provisioning state of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; + /** Workspace properties. */ + properties?: WorkspaceProperties; +} + +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key", } +/** + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type CreatedByType = string; + /** Known values of {@link Status} that the service accepts. */ export enum KnownStatus { /** Pending */ @@ -646,7 +741,7 @@ export enum KnownStatus { /** Ready */ Ready = "Ready", /** Error */ - Error = "Error" + Error = "Error", } /** @@ -671,7 +766,7 @@ export enum KnownProvisioningState { /** Canceled */ Canceled = "Canceled", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -686,210 +781,6 @@ export enum KnownProvisioningState { */ export type ProvisioningState = string; -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key" -} - -/** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type CreatedByType = string; - -/** Known values of {@link IsUpdateAvailable} that the service accepts. */ -export enum KnownIsUpdateAvailable { - /** True */ - True = "True", - /** False */ - False = "False" -} - -/** - * Defines values for IsUpdateAvailable. \ - * {@link KnownIsUpdateAvailable} can be used interchangeably with IsUpdateAvailable, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **True** \ - * **False** - */ -export type IsUpdateAvailable = string; - -/** Known values of {@link NxFlag} that the service accepts. */ -export enum KnownNxFlag { - /** True */ - True = "True", - /** False */ - False = "False" -} - -/** - * Defines values for NxFlag. \ - * {@link KnownNxFlag} can be used interchangeably with NxFlag, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **True** \ - * **False** - */ -export type NxFlag = string; - -/** Known values of {@link PieFlag} that the service accepts. */ -export enum KnownPieFlag { - /** True */ - True = "True", - /** False */ - False = "False" -} - -/** - * Defines values for PieFlag. \ - * {@link KnownPieFlag} can be used interchangeably with PieFlag, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **True** \ - * **False** - */ -export type PieFlag = string; - -/** Known values of {@link RelroFlag} that the service accepts. */ -export enum KnownRelroFlag { - /** True */ - True = "True", - /** False */ - False = "False" -} - -/** - * Defines values for RelroFlag. \ - * {@link KnownRelroFlag} can be used interchangeably with RelroFlag, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **True** \ - * **False** - */ -export type RelroFlag = string; - -/** Known values of {@link CanaryFlag} that the service accepts. */ -export enum KnownCanaryFlag { - /** True */ - True = "True", - /** False */ - False = "False" -} - -/** - * Defines values for CanaryFlag. \ - * {@link KnownCanaryFlag} can be used interchangeably with CanaryFlag, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **True** \ - * **False** - */ -export type CanaryFlag = string; - -/** Known values of {@link StrippedFlag} that the service accepts. */ -export enum KnownStrippedFlag { - /** True */ - True = "True", - /** False */ - False = "False" -} - -/** - * Defines values for StrippedFlag. \ - * {@link KnownStrippedFlag} can be used interchangeably with StrippedFlag, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **True** \ - * **False** - */ -export type StrippedFlag = string; - -/** Known values of {@link IsExpired} that the service accepts. */ -export enum KnownIsExpired { - /** True */ - True = "True", - /** False */ - False = "False" -} - -/** - * Defines values for IsExpired. \ - * {@link KnownIsExpired} can be used interchangeably with IsExpired, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **True** \ - * **False** - */ -export type IsExpired = string; - -/** Known values of {@link IsSelfSigned} that the service accepts. */ -export enum KnownIsSelfSigned { - /** True */ - True = "True", - /** False */ - False = "False" -} - -/** - * Defines values for IsSelfSigned. \ - * {@link KnownIsSelfSigned} can be used interchangeably with IsSelfSigned, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **True** \ - * **False** - */ -export type IsSelfSigned = string; - -/** Known values of {@link IsWeakSignature} that the service accepts. */ -export enum KnownIsWeakSignature { - /** True */ - True = "True", - /** False */ - False = "False" -} - -/** - * Defines values for IsWeakSignature. \ - * {@link KnownIsWeakSignature} can be used interchangeably with IsWeakSignature, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **True** \ - * **False** - */ -export type IsWeakSignature = string; - -/** Known values of {@link IsShortKeySize} that the service accepts. */ -export enum KnownIsShortKeySize { - /** True */ - True = "True", - /** False */ - False = "False" -} - -/** - * Defines values for IsShortKeySize. \ - * {@link KnownIsShortKeySize} can be used interchangeably with IsShortKeySize, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **True** \ - * **False** - */ -export type IsShortKeySize = string; - /** Known values of {@link Origin} that the service accepts. */ export enum KnownOrigin { /** User */ @@ -897,7 +788,7 @@ export enum KnownOrigin { /** System */ System = "system", /** UserSystem */ - UserSystem = "user,system" + UserSystem = "user,system", } /** @@ -914,7 +805,7 @@ export type Origin = string; /** Known values of {@link ActionType} that the service accepts. */ export enum KnownActionType { /** Internal */ - Internal = "Internal" + Internal = "Internal", } /** @@ -926,191 +817,234 @@ export enum KnownActionType { */ export type ActionType = string; -/** Optional parameters. */ -export interface FirmwareListByWorkspaceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByWorkspace operation. */ -export type FirmwareListByWorkspaceResponse = FirmwareList; +/** Known values of {@link SummaryType} that the service accepts. */ +export enum KnownSummaryType { + /** Firmware */ + Firmware = "Firmware", + /** CVE */ + CVE = "CVE", + /** BinaryHardening */ + BinaryHardening = "BinaryHardening", + /** CryptoCertificate */ + CryptoCertificate = "CryptoCertificate", + /** CryptoKey */ + CryptoKey = "CryptoKey", +} -/** Optional parameters. */ -export interface FirmwareCreateOptionalParams - extends coreClient.OperationOptions {} +/** + * Defines values for SummaryType. \ + * {@link KnownSummaryType} can be used interchangeably with SummaryType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Firmware** \ + * **CVE** \ + * **BinaryHardening** \ + * **CryptoCertificate** \ + * **CryptoKey** + */ +export type SummaryType = string; + +/** Known values of {@link SummaryName} that the service accepts. */ +export enum KnownSummaryName { + /** Firmware */ + Firmware = "Firmware", + /** CVE */ + CVE = "CVE", + /** BinaryHardening */ + BinaryHardening = "BinaryHardening", + /** CryptoCertificate */ + CryptoCertificate = "CryptoCertificate", + /** CryptoKey */ + CryptoKey = "CryptoKey", +} -/** Contains response data for the create operation. */ -export type FirmwareCreateResponse = Firmware; +/** + * Defines values for SummaryName. \ + * {@link KnownSummaryName} can be used interchangeably with SummaryName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Firmware** \ + * **CVE** \ + * **BinaryHardening** \ + * **CryptoCertificate** \ + * **CryptoKey** + */ +export type SummaryName = string; /** Optional parameters. */ -export interface FirmwareUpdateOptionalParams +export interface BinaryHardeningListByFirmwareOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type FirmwareUpdateResponse = Firmware; +/** Contains response data for the listByFirmware operation. */ +export type BinaryHardeningListByFirmwareResponse = BinaryHardeningListResult; /** Optional parameters. */ -export interface FirmwareDeleteOptionalParams +export interface BinaryHardeningListByFirmwareNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByFirmwareNext operation. */ +export type BinaryHardeningListByFirmwareNextResponse = + BinaryHardeningListResult; + /** Optional parameters. */ -export interface FirmwareGetOptionalParams +export interface CryptoCertificatesListByFirmwareOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type FirmwareGetResponse = Firmware; +/** Contains response data for the listByFirmware operation. */ +export type CryptoCertificatesListByFirmwareResponse = + CryptoCertificateListResult; /** Optional parameters. */ -export interface FirmwareGenerateDownloadUrlOptionalParams +export interface CryptoCertificatesListByFirmwareNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateDownloadUrl operation. */ -export type FirmwareGenerateDownloadUrlResponse = UrlToken; +/** Contains response data for the listByFirmwareNext operation. */ +export type CryptoCertificatesListByFirmwareNextResponse = + CryptoCertificateListResult; /** Optional parameters. */ -export interface FirmwareGenerateFilesystemDownloadUrlOptionalParams +export interface CryptoKeysListByFirmwareOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateFilesystemDownloadUrl operation. */ -export type FirmwareGenerateFilesystemDownloadUrlResponse = UrlToken; +/** Contains response data for the listByFirmware operation. */ +export type CryptoKeysListByFirmwareResponse = CryptoKeyListResult; /** Optional parameters. */ -export interface FirmwareGenerateSummaryOptionalParams +export interface CryptoKeysListByFirmwareNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateSummary operation. */ -export type FirmwareGenerateSummaryResponse = FirmwareSummary; +/** Contains response data for the listByFirmwareNext operation. */ +export type CryptoKeysListByFirmwareNextResponse = CryptoKeyListResult; /** Optional parameters. */ -export interface FirmwareListGenerateComponentListOptionalParams +export interface CvesListByFirmwareOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listGenerateComponentList operation. */ -export type FirmwareListGenerateComponentListResponse = ComponentList; +/** Contains response data for the listByFirmware operation. */ +export type CvesListByFirmwareResponse = CveListResult; /** Optional parameters. */ -export interface FirmwareGenerateComponentDetailsOptionalParams +export interface CvesListByFirmwareNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateComponentDetails operation. */ -export type FirmwareGenerateComponentDetailsResponse = Component; +/** Contains response data for the listByFirmwareNext operation. */ +export type CvesListByFirmwareNextResponse = CveListResult; /** Optional parameters. */ -export interface FirmwareListGenerateBinaryHardeningListOptionalParams +export interface FirmwaresListByWorkspaceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listGenerateBinaryHardeningList operation. */ -export type FirmwareListGenerateBinaryHardeningListResponse = BinaryHardeningList; +/** Contains response data for the listByWorkspace operation. */ +export type FirmwaresListByWorkspaceResponse = FirmwareList; /** Optional parameters. */ -export interface FirmwareGenerateBinaryHardeningSummaryOptionalParams +export interface FirmwaresCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateBinaryHardeningSummary operation. */ -export type FirmwareGenerateBinaryHardeningSummaryResponse = BinaryHardeningSummary; +/** Contains response data for the create operation. */ +export type FirmwaresCreateResponse = Firmware; /** Optional parameters. */ -export interface FirmwareGenerateBinaryHardeningDetailsOptionalParams +export interface FirmwaresUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateBinaryHardeningDetails operation. */ -export type FirmwareGenerateBinaryHardeningDetailsResponse = BinaryHardening; +/** Contains response data for the update operation. */ +export type FirmwaresUpdateResponse = Firmware; /** Optional parameters. */ -export interface FirmwareListGeneratePasswordHashListOptionalParams +export interface FirmwaresDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listGeneratePasswordHashList operation. */ -export type FirmwareListGeneratePasswordHashListResponse = PasswordHashList; - /** Optional parameters. */ -export interface FirmwareListGenerateCveListOptionalParams +export interface FirmwaresGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listGenerateCveList operation. */ -export type FirmwareListGenerateCveListResponse = CveList; +/** Contains response data for the get operation. */ +export type FirmwaresGetResponse = Firmware; /** Optional parameters. */ -export interface FirmwareGenerateCveSummaryOptionalParams +export interface FirmwaresGenerateDownloadUrlOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateCveSummary operation. */ -export type FirmwareGenerateCveSummaryResponse = CveSummary; +/** Contains response data for the generateDownloadUrl operation. */ +export type FirmwaresGenerateDownloadUrlResponse = UrlToken; /** Optional parameters. */ -export interface FirmwareGenerateCryptoCertificateSummaryOptionalParams +export interface FirmwaresGenerateFilesystemDownloadUrlOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateCryptoCertificateSummary operation. */ -export type FirmwareGenerateCryptoCertificateSummaryResponse = CryptoCertificateSummary; +/** Contains response data for the generateFilesystemDownloadUrl operation. */ +export type FirmwaresGenerateFilesystemDownloadUrlResponse = UrlToken; /** Optional parameters. */ -export interface FirmwareGenerateCryptoKeySummaryOptionalParams +export interface FirmwaresListByWorkspaceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateCryptoKeySummary operation. */ -export type FirmwareGenerateCryptoKeySummaryResponse = CryptoKeySummary; +/** Contains response data for the listByWorkspaceNext operation. */ +export type FirmwaresListByWorkspaceNextResponse = FirmwareList; /** Optional parameters. */ -export interface FirmwareListGenerateCryptoCertificateListOptionalParams +export interface OperationsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listGenerateCryptoCertificateList operation. */ -export type FirmwareListGenerateCryptoCertificateListResponse = CryptoCertificateList; +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationListResult; /** Optional parameters. */ -export interface FirmwareListGenerateCryptoKeyListOptionalParams +export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listGenerateCryptoKeyList operation. */ -export type FirmwareListGenerateCryptoKeyListResponse = CryptoKeyList; +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = OperationListResult; /** Optional parameters. */ -export interface FirmwareListByWorkspaceNextOptionalParams +export interface PasswordHashesListByFirmwareOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByWorkspaceNext operation. */ -export type FirmwareListByWorkspaceNextResponse = FirmwareList; +/** Contains response data for the listByFirmware operation. */ +export type PasswordHashesListByFirmwareResponse = PasswordHashListResult; /** Optional parameters. */ -export interface FirmwareListGenerateComponentListNextOptionalParams +export interface PasswordHashesListByFirmwareNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listGenerateComponentListNext operation. */ -export type FirmwareListGenerateComponentListNextResponse = ComponentList; +/** Contains response data for the listByFirmwareNext operation. */ +export type PasswordHashesListByFirmwareNextResponse = PasswordHashListResult; /** Optional parameters. */ -export interface FirmwareListGenerateBinaryHardeningListNextOptionalParams +export interface SbomComponentsListByFirmwareOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listGenerateBinaryHardeningListNext operation. */ -export type FirmwareListGenerateBinaryHardeningListNextResponse = BinaryHardeningList; +/** Contains response data for the listByFirmware operation. */ +export type SbomComponentsListByFirmwareResponse = SbomComponentListResult; /** Optional parameters. */ -export interface FirmwareListGeneratePasswordHashListNextOptionalParams +export interface SbomComponentsListByFirmwareNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listGeneratePasswordHashListNext operation. */ -export type FirmwareListGeneratePasswordHashListNextResponse = PasswordHashList; +/** Contains response data for the listByFirmwareNext operation. */ +export type SbomComponentsListByFirmwareNextResponse = SbomComponentListResult; /** Optional parameters. */ -export interface FirmwareListGenerateCveListNextOptionalParams +export interface SummariesListByFirmwareOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listGenerateCveListNext operation. */ -export type FirmwareListGenerateCveListNextResponse = CveList; +/** Contains response data for the listByFirmware operation. */ +export type SummariesListByFirmwareResponse = SummaryListResult; /** Optional parameters. */ -export interface FirmwareListGenerateCryptoCertificateListNextOptionalParams +export interface SummariesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listGenerateCryptoCertificateListNext operation. */ -export type FirmwareListGenerateCryptoCertificateListNextResponse = CryptoCertificateList; +/** Contains response data for the get operation. */ +export type SummariesGetResponse = SummaryResource; /** Optional parameters. */ -export interface FirmwareListGenerateCryptoKeyListNextOptionalParams +export interface SummariesListByFirmwareNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listGenerateCryptoKeyListNext operation. */ -export type FirmwareListGenerateCryptoKeyListNextResponse = CryptoKeyList; +/** Contains response data for the listByFirmwareNext operation. */ +export type SummariesListByFirmwareNextResponse = SummaryListResult; /** Optional parameters. */ export interface WorkspacesListBySubscriptionOptionalParams @@ -1172,20 +1106,6 @@ export interface WorkspacesListByResourceGroupNextOptionalParams /** Contains response data for the listByResourceGroupNext operation. */ export type WorkspacesListByResourceGroupNextResponse = WorkspaceList; -/** Optional parameters. */ -export interface OperationsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type OperationsListResponse = OperationListResult; - -/** Optional parameters. */ -export interface OperationsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationListResult; - /** Optional parameters. */ export interface IoTFirmwareDefenseClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/models/mappers.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/models/mappers.ts index 1e80387dfa59..393dde8bac8c 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/models/mappers.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/models/mappers.ts @@ -8,10 +8,10 @@ import * as coreClient from "@azure/core-client"; -export const FirmwareList: coreClient.CompositeMapper = { +export const BinaryHardeningListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FirmwareList", + className: "BinaryHardeningListResult", modelProperties: { value: { serializedName: "value", @@ -21,19 +21,116 @@ export const FirmwareList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Firmware" - } - } - } + className: "BinaryHardeningResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const BinaryHardeningResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BinaryHardeningResult", + modelProperties: { + binaryHardeningId: { + serializedName: "binaryHardeningId", + nullable: true, + type: { + name: "String", + }, + }, + features: { + serializedName: "features", + type: { + name: "Composite", + className: "BinaryHardeningFeatures", + }, + }, + architecture: { + serializedName: "architecture", + nullable: true, + type: { + name: "String", + }, + }, + filePath: { + serializedName: "filePath", + nullable: true, + type: { + name: "String", + }, + }, + class: { + serializedName: "class", + nullable: true, + type: { + name: "String", + }, + }, + runpath: { + serializedName: "runpath", + nullable: true, + type: { + name: "String", + }, + }, + rpath: { + serializedName: "rpath", + nullable: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const BinaryHardeningFeatures: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BinaryHardeningFeatures", + modelProperties: { + nx: { + serializedName: "nx", + type: { + name: "Boolean", + }, + }, + pie: { + serializedName: "pie", + type: { + name: "Boolean", + }, + }, + relro: { + serializedName: "relro", + type: { + name: "Boolean", + }, + }, + canary: { + serializedName: "canary", + type: { + name: "Boolean", + }, + }, + stripped: { + serializedName: "stripped", + type: { + name: "Boolean", + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -45,32 +142,32 @@ 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", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -81,41 +178,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" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const ErrorResponse: coreClient.CompositeMapper = { @@ -127,11 +224,11 @@ export const ErrorResponse: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorDetail" - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, }; export const ErrorDetail: coreClient.CompositeMapper = { @@ -143,22 +240,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", @@ -168,10 +265,10 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorDetail" - } - } - } + className: "ErrorDetail", + }, + }, + }, }, additionalInfo: { serializedName: "additionalInfo", @@ -181,13 +278,13 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; export const ErrorAdditionalInfo: coreClient.CompositeMapper = { @@ -199,266 +296,278 @@ 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 FirmwareUpdateDefinition: coreClient.CompositeMapper = { +export const CryptoCertificateListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FirmwareUpdateDefinition", + className: "CryptoCertificateListResult", modelProperties: { - fileName: { - serializedName: "properties.fileName", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CryptoCertificateResource", + }, + }, + }, }, - vendor: { - serializedName: "properties.vendor", + nextLink: { + serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, - model: { - serializedName: "properties.model", + }, + }, +}; + +export const CryptoCertificate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CryptoCertificate", + modelProperties: { + cryptoCertId: { + serializedName: "cryptoCertId", + nullable: true, type: { - name: "String" - } + name: "String", + }, }, - version: { - serializedName: "properties.version", + name: { + serializedName: "name", + nullable: true, type: { - name: "String" - } + name: "String", + }, }, - description: { - serializedName: "properties.description", + subject: { + serializedName: "subject", type: { - name: "String" - } + name: "Composite", + className: "CryptoCertificateEntity", + }, }, - fileSize: { - serializedName: "properties.fileSize", - nullable: true, + issuer: { + serializedName: "issuer", type: { - name: "Number" - } + name: "Composite", + className: "CryptoCertificateEntity", + }, }, - status: { - defaultValue: "Pending", - serializedName: "properties.status", + issuedDate: { + serializedName: "issuedDate", + nullable: true, type: { - name: "String" - } + name: "DateTime", + }, }, - statusMessages: { - serializedName: "properties.statusMessages", + expirationDate: { + serializedName: "expirationDate", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } + name: "DateTime", + }, }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const UrlToken: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UrlToken", - modelProperties: { - url: { - serializedName: "url", - readOnly: true, + role: { + serializedName: "role", + nullable: true, type: { - name: "String" - } + name: "String", + }, }, - uploadUrl: { - serializedName: "uploadUrl", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const FirmwareSummary: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FirmwareSummary", - modelProperties: { - extractedSize: { - serializedName: "extractedSize", + signatureAlgorithm: { + serializedName: "signatureAlgorithm", nullable: true, type: { - name: "Number" - } + name: "String", + }, }, - fileSize: { - serializedName: "fileSize", + keySize: { + serializedName: "keySize", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, - extractedFileCount: { - serializedName: "extractedFileCount", + keyAlgorithm: { + serializedName: "keyAlgorithm", nullable: true, type: { - name: "Number" - } + name: "String", + }, }, - componentCount: { - serializedName: "componentCount", + encoding: { + serializedName: "encoding", nullable: true, type: { - name: "Number" - } + name: "String", + }, }, - binaryCount: { - serializedName: "binaryCount", + serialNumber: { + serializedName: "serialNumber", nullable: true, type: { - name: "Number" - } + name: "String", + }, }, - analysisTimeSeconds: { - serializedName: "analysisTimeSeconds", + fingerprint: { + serializedName: "fingerprint", nullable: true, type: { - name: "Number" - } + name: "String", + }, }, - rootFileSystems: { - serializedName: "rootFileSystems", + usage: { + serializedName: "usage", nullable: true, type: { - name: "Number" - } - } - } - } -}; - -export const ComponentList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComponentList", - modelProperties: { - value: { - serializedName: "value", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + filePaths: { + serializedName: "filePaths", readOnly: true, + nullable: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "Component" - } - } - } + name: "String", + }, + }, + }, }, - nextLink: { - serializedName: "nextLink", + pairedKey: { + serializedName: "pairedKey", type: { - name: "String" - } - } - } - } + name: "Composite", + className: "PairedKey", + }, + }, + isExpired: { + serializedName: "isExpired", + nullable: true, + type: { + name: "Boolean", + }, + }, + isSelfSigned: { + serializedName: "isSelfSigned", + nullable: true, + type: { + name: "Boolean", + }, + }, + isWeakSignature: { + serializedName: "isWeakSignature", + nullable: true, + type: { + name: "Boolean", + }, + }, + isShortKeySize: { + serializedName: "isShortKeySize", + nullable: true, + type: { + name: "Boolean", + }, + }, + }, + }, }; -export const Component: coreClient.CompositeMapper = { +export const CryptoCertificateEntity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Component", + className: "CryptoCertificateEntity", modelProperties: { - componentId: { - serializedName: "componentId", + commonName: { + serializedName: "commonName", nullable: true, type: { - name: "String" - } + name: "String", + }, }, - componentName: { - serializedName: "componentName", + organization: { + serializedName: "organization", nullable: true, type: { - name: "String" - } + name: "String", + }, }, - version: { - serializedName: "version", + organizationalUnit: { + serializedName: "organizationalUnit", nullable: true, type: { - name: "String" - } + name: "String", + }, }, - license: { - serializedName: "license", + state: { + serializedName: "state", nullable: true, type: { - name: "String" - } + name: "String", + }, }, - releaseDate: { - serializedName: "releaseDate", + country: { + serializedName: "country", + nullable: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const PairedKey: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PairedKey", + modelProperties: { + id: { + serializedName: "id", type: { - name: "DateTime" - } + name: "String", + }, }, - paths: { - serializedName: "paths", + type: { + serializedName: "type", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - isUpdateAvailable: { - serializedName: "isUpdateAvailable", - type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const BinaryHardeningList: coreClient.CompositeMapper = { +export const CryptoKeyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BinaryHardeningList", + className: "CryptoKeyListResult", modelProperties: { value: { serializedName: "value", @@ -468,242 +577,101 @@ export const BinaryHardeningList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BinaryHardening" - } - } - } + className: "CryptoKeyResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const BinaryHardening: coreClient.CompositeMapper = { +export const CryptoKey: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BinaryHardening", + className: "CryptoKey", modelProperties: { - binaryHardeningId: { - serializedName: "binaryHardeningId", - nullable: true, - type: { - name: "String" - } - }, - architecture: { - serializedName: "architecture", - nullable: true, - type: { - name: "String" - } - }, - path: { - serializedName: "path", - nullable: true, - type: { - name: "String" - } - }, - class: { - serializedName: "class", - nullable: true, - type: { - name: "String" - } - }, - runpath: { - serializedName: "runpath", - nullable: true, - type: { - name: "String" - } - }, - rpath: { - serializedName: "rpath", - nullable: true, - type: { - name: "String" - } - }, - nx: { - serializedName: "features.nx", - type: { - name: "String" - } - }, - pie: { - serializedName: "features.pie", - type: { - name: "String" - } - }, - relro: { - serializedName: "features.relro", - type: { - name: "String" - } - }, - canary: { - serializedName: "features.canary", - type: { - name: "String" - } - }, - stripped: { - serializedName: "features.stripped", - type: { - name: "String" - } - } - } - } -}; - -export const BinaryHardeningSummary: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BinaryHardeningSummary", - modelProperties: { - totalFiles: { - serializedName: "totalFiles", - type: { - name: "Number" - } - }, - nx: { - serializedName: "nx", + cryptoKeyId: { + serializedName: "cryptoKeyId", nullable: true, type: { - name: "Number" - } + name: "String", + }, }, - pie: { - serializedName: "pie", + keyType: { + serializedName: "keyType", nullable: true, type: { - name: "Number" - } + name: "String", + }, }, - relro: { - serializedName: "relro", + keySize: { + serializedName: "keySize", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, - canary: { - serializedName: "canary", + keyAlgorithm: { + serializedName: "keyAlgorithm", nullable: true, type: { - name: "Number" - } + name: "String", + }, }, - stripped: { - serializedName: "stripped", + usage: { + serializedName: "usage", nullable: true, - type: { - name: "Number" - } - } - } - } -}; - -export const PasswordHashList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PasswordHashList", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "PasswordHash" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const PasswordHash: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PasswordHash", - modelProperties: { - passwordHashId: { - serializedName: "passwordHashId", - nullable: true, - type: { - name: "String" - } - }, - filePath: { - serializedName: "filePath", - nullable: true, - type: { - name: "String" - } - }, - salt: { - serializedName: "salt", - nullable: true, - type: { - name: "String" - } + name: "String", + }, + }, + }, }, - hash: { - serializedName: "hash", + filePaths: { + serializedName: "filePaths", + readOnly: true, nullable: true, type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - context: { - serializedName: "context", - nullable: true, + pairedKey: { + serializedName: "pairedKey", type: { - name: "String" - } + name: "Composite", + className: "PairedKey", + }, }, - username: { - serializedName: "username", + isShortKeySize: { + serializedName: "isShortKeySize", nullable: true, type: { - name: "String" - } + name: "Boolean", + }, }, - algorithm: { - serializedName: "algorithm", - nullable: true, - type: { - name: "String" - } - } - } - } + }, + }, }; -export const CveList: coreClient.CompositeMapper = { +export const CveListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CveList", + className: "CveListResult", modelProperties: { value: { serializedName: "value", @@ -713,93 +681,80 @@ export const CveList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Cve" - } - } - } + className: "CveResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const Cve: coreClient.CompositeMapper = { +export const CveResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Cve", + className: "CveResult", modelProperties: { cveId: { serializedName: "cveId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, component: { serializedName: "component", type: { - name: "Dictionary", - value: { type: { name: "any" } } - } + name: "Composite", + className: "CveComponent", + }, }, severity: { serializedName: "severity", nullable: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", - nullable: true, type: { - name: "String" - } + name: "String", + }, }, cvssScore: { serializedName: "cvssScore", nullable: true, type: { - name: "String" - } + name: "String", + }, }, cvssVersion: { serializedName: "cvssVersion", nullable: true, type: { - name: "String" - } + name: "String", + }, }, cvssV2Score: { serializedName: "cvssV2Score", nullable: true, type: { - name: "String" - } + name: "String", + }, }, cvssV3Score: { serializedName: "cvssV3Score", nullable: true, type: { - name: "String" - } - }, - publishDate: { - serializedName: "publishDate", - type: { - name: "DateTime" - } - }, - updatedDate: { - serializedName: "updatedDate", - type: { - name: "DateTime" - } + name: "String", + }, }, links: { serializedName: "links", @@ -809,20 +764,47 @@ export const Cve: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CveLink" - } - } - } + className: "CveLink", + }, + }, + }, }, description: { serializedName: "description", nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const CveComponent: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CveComponent", + modelProperties: { + componentId: { + serializedName: "componentId", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + version: { + serializedName: "version", + type: { + name: "String", + }, + }, + }, + }, }; export const CveLink: coreClient.CompositeMapper = { @@ -834,167 +816,179 @@ export const CveLink: coreClient.CompositeMapper = { serializedName: "href", nullable: true, type: { - name: "String" - } + name: "String", + }, }, label: { serializedName: "label", nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CveSummary: coreClient.CompositeMapper = { +export const FirmwareList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CveSummary", + className: "FirmwareList", modelProperties: { - critical: { - serializedName: "critical", - nullable: true, - type: { - name: "Number" - } - }, - high: { - serializedName: "high", - nullable: true, - type: { - name: "Number" - } - }, - medium: { - serializedName: "medium", - nullable: true, - type: { - name: "Number" - } - }, - low: { - serializedName: "low", - nullable: true, + value: { + serializedName: "value", + readOnly: true, type: { - name: "Number" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Firmware", + }, + }, + }, }, - unknown: { - serializedName: "unknown", - nullable: true, + nextLink: { + serializedName: "nextLink", type: { - name: "Number" - } + name: "String", + }, }, - undefined: { - serializedName: "undefined", - nullable: true, - type: { - name: "Number" - } - } - } - } + }, + }, }; -export const CryptoCertificateSummary: coreClient.CompositeMapper = { +export const FirmwareProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CryptoCertificateSummary", + className: "FirmwareProperties", modelProperties: { - totalCertificates: { - serializedName: "totalCertificates", + fileName: { + serializedName: "fileName", type: { - name: "Number" - } + name: "String", + }, }, - pairedKeys: { - serializedName: "pairedKeys", + vendor: { + serializedName: "vendor", type: { - name: "Number" - } + name: "String", + }, }, - expired: { - serializedName: "expired", + model: { + serializedName: "model", type: { - name: "Number" - } + name: "String", + }, }, - expiringSoon: { - serializedName: "expiringSoon", + version: { + serializedName: "version", type: { - name: "Number" - } + name: "String", + }, }, - weakSignature: { - serializedName: "weakSignature", + description: { + serializedName: "description", type: { - name: "Number" - } + name: "String", + }, }, - selfSigned: { - serializedName: "selfSigned", + fileSize: { + serializedName: "fileSize", + nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, - shortKeySize: { - serializedName: "shortKeySize", + status: { + defaultValue: "Pending", + serializedName: "status", + type: { + name: "String", + }, + }, + statusMessages: { + serializedName: "statusMessages", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StatusMessage", + }, + }, + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "Number" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CryptoKeySummary: coreClient.CompositeMapper = { +export const StatusMessage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CryptoKeySummary", + className: "StatusMessage", modelProperties: { - totalKeys: { - serializedName: "totalKeys", + errorCode: { + serializedName: "errorCode", type: { - name: "Number" - } + name: "Number", + }, }, - publicKeys: { - serializedName: "publicKeys", - type: { - name: "Number" - } - }, - privateKeys: { - serializedName: "privateKeys", + message: { + serializedName: "message", type: { - name: "Number" - } + name: "String", + }, }, - pairedKeys: { - serializedName: "pairedKeys", + }, + }, +}; + +export const FirmwareUpdateDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FirmwareUpdateDefinition", + modelProperties: { + properties: { + serializedName: "properties", type: { - name: "Number" - } + name: "Composite", + className: "FirmwareProperties", + }, }, - shortKeySize: { - serializedName: "shortKeySize", - type: { - name: "Number" - } - } - } - } + }, + }, }; -export const CryptoCertificateList: coreClient.CompositeMapper = { +export const UrlToken: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CryptoCertificateList", + className: "UrlToken", modelProperties: { - value: { + url: { + serializedName: "url", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const OperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { serializedName: "value", readOnly: true, type: { @@ -1002,258 +996,193 @@ export const CryptoCertificateList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CryptoCertificate" - } - } - } + className: "Operation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", + readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CryptoCertificate: coreClient.CompositeMapper = { +export const Operation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CryptoCertificate", + className: "Operation", modelProperties: { - cryptoCertId: { - serializedName: "cryptoCertId", - nullable: true, - type: { - name: "String" - } - }, name: { serializedName: "name", - nullable: true, + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - subject: { - serializedName: "subject", + isDataAction: { + serializedName: "isDataAction", + readOnly: true, type: { - name: "Composite", - className: "CryptoCertificateEntity" - } + name: "Boolean", + }, }, - issuer: { - serializedName: "issuer", + display: { + serializedName: "display", type: { name: "Composite", - className: "CryptoCertificateEntity" - } - }, - issuedDate: { - serializedName: "issuedDate", - nullable: true, - type: { - name: "DateTime" - } - }, - expirationDate: { - serializedName: "expirationDate", - nullable: true, - type: { - name: "DateTime" - } - }, - role: { - serializedName: "role", - nullable: true, - type: { - name: "String" - } - }, - signatureAlgorithm: { - serializedName: "signatureAlgorithm", - nullable: true, - type: { - name: "String" - } + className: "OperationDisplay", + }, }, - keySize: { - serializedName: "keySize", - nullable: true, + origin: { + serializedName: "origin", + readOnly: true, type: { - name: "Number" - } + name: "String", + }, }, - keyAlgorithm: { - serializedName: "keyAlgorithm", - nullable: true, + actionType: { + serializedName: "actionType", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - encoding: { - serializedName: "encoding", - nullable: true, + }, + }, +}; + +export const OperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - serialNumber: { - serializedName: "serialNumber", - nullable: true, + resource: { + serializedName: "resource", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - fingerprint: { - serializedName: "fingerprint", - nullable: true, + operation: { + serializedName: "operation", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - usage: { - serializedName: "usage", - nullable: true, + description: { + serializedName: "description", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - filePaths: { - serializedName: "filePaths", + }, + }, +}; + +export const PasswordHashListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PasswordHashListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, - nullable: true, type: { name: "Sequence", element: { type: { - name: "String" - } - } - } - }, - pairedKey: { - serializedName: "pairedKey", - type: { - name: "Composite", - className: "PairedKey" - } - }, - isExpired: { - serializedName: "isExpired", - nullable: true, - type: { - name: "String" - } - }, - isSelfSigned: { - serializedName: "isSelfSigned", - nullable: true, - type: { - name: "String" - } + name: "Composite", + className: "PasswordHashResource", + }, + }, + }, }, - isWeakSignature: { - serializedName: "isWeakSignature", - nullable: true, + nextLink: { + serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, - isShortKeySize: { - serializedName: "isShortKeySize", - nullable: true, - type: { - name: "String" - } - } - } - } + }, + }, }; -export const CryptoCertificateEntity: coreClient.CompositeMapper = { +export const PasswordHash: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CryptoCertificateEntity", + className: "PasswordHash", modelProperties: { - commonName: { - serializedName: "commonName", + passwordHashId: { + serializedName: "passwordHashId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, - organization: { - serializedName: "organization", + filePath: { + serializedName: "filePath", nullable: true, type: { - name: "String" - } + name: "String", + }, }, - organizationalUnit: { - serializedName: "organizationalUnit", + salt: { + serializedName: "salt", nullable: true, type: { - name: "String" - } + name: "String", + }, }, - state: { - serializedName: "state", + hash: { + serializedName: "hash", nullable: true, type: { - name: "String" - } + name: "String", + }, }, - country: { - serializedName: "country", + context: { + serializedName: "context", nullable: true, type: { - name: "String" - } - } - } - } -}; - -export const PairedKey: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PairedKey", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } + name: "String", + }, }, - type: { - serializedName: "type", + username: { + serializedName: "username", + nullable: true, type: { - name: "String" - } + name: "String", + }, }, - additionalProperties: { - serializedName: "additionalProperties", + algorithm: { + serializedName: "algorithm", nullable: true, type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CryptoKeyList: coreClient.CompositeMapper = { +export const SbomComponentListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CryptoKeyList", + className: "SbomComponentListResult", modelProperties: { value: { serializedName: "value", @@ -1263,95 +1192,114 @@ export const CryptoKeyList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CryptoKey" - } - } - } + className: "SbomComponentResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CryptoKey: coreClient.CompositeMapper = { +export const SbomComponent: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CryptoKey", + className: "SbomComponent", modelProperties: { - cryptoKeyId: { - serializedName: "cryptoKeyId", + componentId: { + serializedName: "componentId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, - keyType: { - serializedName: "keyType", - nullable: true, + componentName: { + serializedName: "componentName", type: { - name: "String" - } + name: "String", + }, }, - keySize: { - serializedName: "keySize", - nullable: true, + version: { + serializedName: "version", type: { - name: "Number" - } + name: "String", + }, }, - keyAlgorithm: { - serializedName: "keyAlgorithm", + license: { + serializedName: "license", nullable: true, type: { - name: "String" - } + name: "String", + }, }, - usage: { - serializedName: "usage", - nullable: true, + filePaths: { + serializedName: "filePaths", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - filePaths: { - serializedName: "filePaths", + }, + }, +}; + +export const SummaryListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SummaryListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, - nullable: true, type: { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "Composite", + className: "SummaryResource", + }, + }, + }, }, - pairedKey: { - serializedName: "pairedKey", + nextLink: { + serializedName: "nextLink", type: { - name: "Composite", - className: "PairedKey" - } + name: "String", + }, }, - isShortKeySize: { - serializedName: "isShortKeySize", - nullable: true, + }, + }, +}; + +export const SummaryResourceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SummaryResourceProperties", + uberParent: "SummaryResourceProperties", + polymorphicDiscriminator: { + serializedName: "summaryType", + clientName: "summaryType", + }, + modelProperties: { + summaryType: { + serializedName: "summaryType", + required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WorkspaceList: coreClient.CompositeMapper = { @@ -1367,35 +1315,51 @@ export const WorkspaceList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Workspace" - } - } - } + className: "Workspace", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const WorkspaceUpdateDefinition: coreClient.CompositeMapper = { +export const WorkspaceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceUpdateDefinition", + className: "WorkspaceProperties", modelProperties: { provisioningState: { - serializedName: "properties.provisioningState", + serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceUpdateDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceUpdateDefinition", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "WorkspaceProperties", + }, + }, + }, + }, }; export const GenerateUploadUrlRequest: coreClient.CompositeMapper = { @@ -1406,258 +1370,438 @@ export const GenerateUploadUrlRequest: coreClient.CompositeMapper = { firmwareId: { serializedName: "firmwareId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const OperationListResult: coreClient.CompositeMapper = { +export const BinaryHardeningResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationListResult", + className: "BinaryHardeningResource", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation" - } - } - } + name: "Composite", + className: "BinaryHardeningResult", + }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } + }, + }, }; -export const Operation: coreClient.CompositeMapper = { +export const CryptoCertificateResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Operation", + className: "CryptoCertificateResource", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" - } + name: "Composite", + className: "CryptoCertificate", + }, }, - isDataAction: { - serializedName: "isDataAction", - readOnly: true, + }, + }, +}; + +export const CryptoKeyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CryptoKeyResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "Boolean" - } + name: "Composite", + className: "CryptoKey", + }, }, - display: { - serializedName: "display", + }, + }, +}; + +export const CveResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CveResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { name: "Composite", - className: "OperationDisplay" - } + className: "CveResult", + }, }, - origin: { - serializedName: "origin", - readOnly: true, + }, + }, +}; + +export const Firmware: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Firmware", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" - } + name: "Composite", + className: "FirmwareProperties", + }, }, - actionType: { - serializedName: "actionType", - readOnly: true, + }, + }, +}; + +export const PasswordHashResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PasswordHashResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" - } - } - } - } + name: "Composite", + className: "PasswordHash", + }, + }, + }, + }, }; -export const OperationDisplay: coreClient.CompositeMapper = { +export const SbomComponentResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDisplay", + className: "SbomComponentResource", modelProperties: { - provider: { - serializedName: "provider", - readOnly: true, + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" - } + name: "Composite", + className: "SbomComponent", + }, }, - resource: { - serializedName: "resource", - readOnly: true, + }, + }, +}; + +export const SummaryResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SummaryResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" - } + name: "Composite", + className: "SummaryResourceProperties", + }, }, - operation: { - serializedName: "operation", - readOnly: true, + }, + }, +}; + +export const TrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - description: { - serializedName: "description", - readOnly: true, + location: { + serializedName: "location", + required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CveComponent: coreClient.CompositeMapper = { +export const FirmwareSummary: coreClient.CompositeMapper = { + serializedName: "Firmware", type: { name: "Composite", - className: "CveComponent", + className: "FirmwareSummary", + uberParent: "SummaryResourceProperties", + polymorphicDiscriminator: + SummaryResourceProperties.type.polymorphicDiscriminator, modelProperties: { - componentId: { - serializedName: "componentId", + ...SummaryResourceProperties.type.modelProperties, + extractedSize: { + serializedName: "extractedSize", nullable: true, type: { - name: "String" - } + name: "Number", + }, }, - name: { - serializedName: "name", + fileSize: { + serializedName: "fileSize", nullable: true, type: { - name: "String" - } + name: "Number", + }, }, - version: { - serializedName: "version", + extractedFileCount: { + serializedName: "extractedFileCount", nullable: true, type: { - name: "String" - } - } - } - } + name: "Number", + }, + }, + componentCount: { + serializedName: "componentCount", + nullable: true, + type: { + name: "Number", + }, + }, + binaryCount: { + serializedName: "binaryCount", + nullable: true, + type: { + name: "Number", + }, + }, + analysisTimeSeconds: { + serializedName: "analysisTimeSeconds", + nullable: true, + type: { + name: "Number", + }, + }, + rootFileSystems: { + serializedName: "rootFileSystems", + nullable: true, + type: { + name: "Number", + }, + }, + }, + }, }; -export const ProxyResource: coreClient.CompositeMapper = { +export const CveSummary: coreClient.CompositeMapper = { + serializedName: "CVE", type: { name: "Composite", - className: "ProxyResource", + className: "CveSummary", + uberParent: "SummaryResourceProperties", + polymorphicDiscriminator: + SummaryResourceProperties.type.polymorphicDiscriminator, modelProperties: { - ...Resource.type.modelProperties - } - } + ...SummaryResourceProperties.type.modelProperties, + critical: { + serializedName: "critical", + nullable: true, + type: { + name: "Number", + }, + }, + high: { + serializedName: "high", + nullable: true, + type: { + name: "Number", + }, + }, + medium: { + serializedName: "medium", + nullable: true, + type: { + name: "Number", + }, + }, + low: { + serializedName: "low", + nullable: true, + type: { + name: "Number", + }, + }, + unknown: { + serializedName: "unknown", + nullable: true, + type: { + name: "Number", + }, + }, + }, + }, }; -export const TrackedResource: coreClient.CompositeMapper = { +export const BinaryHardeningSummaryResource: coreClient.CompositeMapper = { + serializedName: "BinaryHardening", type: { name: "Composite", - className: "TrackedResource", + className: "BinaryHardeningSummaryResource", + uberParent: "SummaryResourceProperties", + polymorphicDiscriminator: + SummaryResourceProperties.type.polymorphicDiscriminator, modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", + ...SummaryResourceProperties.type.modelProperties, + totalFiles: { + serializedName: "totalFiles", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "Number", + }, }, - location: { - serializedName: "location", - required: true, + nx: { + serializedName: "nx", + nullable: true, + type: { + name: "Number", + }, + }, + pie: { + serializedName: "pie", + nullable: true, + type: { + name: "Number", + }, + }, + relro: { + serializedName: "relro", + nullable: true, + type: { + name: "Number", + }, + }, + canary: { + serializedName: "canary", + nullable: true, + type: { + name: "Number", + }, + }, + stripped: { + serializedName: "stripped", + nullable: true, type: { - name: "String" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; -export const Firmware: coreClient.CompositeMapper = { +export const CryptoCertificateSummaryResource: coreClient.CompositeMapper = { + serializedName: "CryptoCertificate", type: { name: "Composite", - className: "Firmware", + className: "CryptoCertificateSummaryResource", + uberParent: "SummaryResourceProperties", + polymorphicDiscriminator: + SummaryResourceProperties.type.polymorphicDiscriminator, modelProperties: { - ...ProxyResource.type.modelProperties, - fileName: { - serializedName: "properties.fileName", + ...SummaryResourceProperties.type.modelProperties, + totalCertificates: { + serializedName: "totalCertificates", type: { - name: "String" - } + name: "Number", + }, }, - vendor: { - serializedName: "properties.vendor", + pairedKeys: { + serializedName: "pairedKeys", type: { - name: "String" - } + name: "Number", + }, }, - model: { - serializedName: "properties.model", + expired: { + serializedName: "expired", type: { - name: "String" - } + name: "Number", + }, }, - version: { - serializedName: "properties.version", + expiringSoon: { + serializedName: "expiringSoon", type: { - name: "String" - } + name: "Number", + }, }, - description: { - serializedName: "properties.description", + weakSignature: { + serializedName: "weakSignature", type: { - name: "String" - } + name: "Number", + }, }, - fileSize: { - serializedName: "properties.fileSize", - nullable: true, + selfSigned: { + serializedName: "selfSigned", type: { - name: "Number" - } + name: "Number", + }, }, - status: { - defaultValue: "Pending", - serializedName: "properties.status", + shortKeySize: { + serializedName: "shortKeySize", type: { - name: "String" - } + name: "Number", + }, }, - statusMessages: { - serializedName: "properties.statusMessages", + }, + }, +}; + +export const CryptoKeySummaryResource: coreClient.CompositeMapper = { + serializedName: "CryptoKey", + type: { + name: "Composite", + className: "CryptoKeySummaryResource", + uberParent: "SummaryResourceProperties", + polymorphicDiscriminator: + SummaryResourceProperties.type.polymorphicDiscriminator, + modelProperties: { + ...SummaryResourceProperties.type.modelProperties, + totalKeys: { + serializedName: "totalKeys", type: { - name: "Sequence", - element: { - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } + name: "Number", + }, }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + publicKeys: { + serializedName: "publicKeys", + type: { + name: "Number", + }, + }, + privateKeys: { + serializedName: "privateKeys", type: { - name: "String" - } - } - } - } + name: "Number", + }, + }, + pairedKeys: { + serializedName: "pairedKeys", + type: { + name: "Number", + }, + }, + shortKeySize: { + serializedName: "shortKeySize", + type: { + name: "Number", + }, + }, + }, + }, }; export const Workspace: coreClient.CompositeMapper = { @@ -1666,13 +1810,23 @@ export const Workspace: coreClient.CompositeMapper = { className: "Workspace", modelProperties: { ...TrackedResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + properties: { + serializedName: "properties", type: { - name: "String" - } - } - } - } + name: "Composite", + className: "WorkspaceProperties", + }, + }, + }, + }, +}; + +export let discriminators = { + SummaryResourceProperties: SummaryResourceProperties, + "SummaryResourceProperties.Firmware": FirmwareSummary, + "SummaryResourceProperties.CVE": CveSummary, + "SummaryResourceProperties.BinaryHardening": BinaryHardeningSummaryResource, + "SummaryResourceProperties.CryptoCertificate": + CryptoCertificateSummaryResource, + "SummaryResourceProperties.CryptoKey": CryptoKeySummaryResource, }; diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/models/parameters.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/models/parameters.ts index d857a69cae44..1e6bb9c545ae 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/models/parameters.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/models/parameters.ts @@ -9,14 +9,14 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { Firmware as FirmwareMapper, FirmwareUpdateDefinition as FirmwareUpdateDefinitionMapper, Workspace as WorkspaceMapper, WorkspaceUpdateDefinition as WorkspaceUpdateDefinitionMapper, - GenerateUploadUrlRequest as GenerateUploadUrlRequestMapper + GenerateUploadUrlRequest as GenerateUploadUrlRequestMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -26,9 +26,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -37,24 +37,21 @@ 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 - }, serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "Uuid", + }, + }, }; export const resourceGroupName: OperationURLParameter = { @@ -62,40 +59,63 @@ export const resourceGroupName: OperationURLParameter = { mapper: { constraints: { MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const workspaceName: OperationURLParameter = { parameterPath: "workspaceName", mapper: { constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_.-]*$") + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"), }, serializedName: "workspaceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, +}; + +export const firmwareId: OperationURLParameter = { + parameterPath: "firmwareId", + mapper: { + serializedName: "firmwareId", + required: true, + type: { + name: "String", + }, + }, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-02-08-preview", + defaultValue: "2024-01-10", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, +}; + +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", + required: true, + type: { + name: "String", + }, + }, + skipEncoding: true, }; export const contentType: OperationParameter = { @@ -105,55 +125,43 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const firmware: OperationParameter = { parameterPath: "firmware", - mapper: FirmwareMapper -}; - -export const firmwareId: OperationURLParameter = { - parameterPath: "firmwareId", - mapper: { - serializedName: "firmwareId", - required: true, - type: { - name: "String" - } - } + mapper: FirmwareMapper, }; export const firmware1: OperationParameter = { parameterPath: "firmware", - mapper: FirmwareUpdateDefinitionMapper + mapper: FirmwareUpdateDefinitionMapper, }; -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", +export const summaryName: OperationURLParameter = { + parameterPath: "summaryName", mapper: { - serializedName: "nextLink", + serializedName: "summaryName", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true }; export const workspace: OperationParameter = { parameterPath: "workspace", - mapper: WorkspaceMapper + mapper: WorkspaceMapper, }; export const workspace1: OperationParameter = { parameterPath: "workspace", - mapper: WorkspaceUpdateDefinitionMapper + mapper: WorkspaceUpdateDefinitionMapper, }; export const generateUploadUrl: OperationParameter = { parameterPath: "generateUploadUrl", - mapper: GenerateUploadUrlRequestMapper + mapper: GenerateUploadUrlRequestMapper, }; diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/binaryHardening.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/binaryHardening.ts new file mode 100644 index 000000000000..aa56dad83ca8 --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/binaryHardening.ts @@ -0,0 +1,216 @@ +/* + * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { BinaryHardening } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { IoTFirmwareDefenseClient } from "../ioTFirmwareDefenseClient"; +import { + BinaryHardeningResource, + BinaryHardeningListByFirmwareNextOptionalParams, + BinaryHardeningListByFirmwareOptionalParams, + BinaryHardeningListByFirmwareResponse, + BinaryHardeningListByFirmwareNextResponse, +} from "../models"; + +/// +/** Class containing BinaryHardening operations. */ +export class BinaryHardeningImpl implements BinaryHardening { + private readonly client: IoTFirmwareDefenseClient; + + /** + * Initialize a new instance of the class BinaryHardening class. + * @param client Reference to the service client + */ + constructor(client: IoTFirmwareDefenseClient) { + this.client = client; + } + + /** + * Lists binary hardening analysis results of a firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + public listByFirmware( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: BinaryHardeningListByFirmwareOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByFirmwarePagingAll( + resourceGroupName, + workspaceName, + firmwareId, + 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.listByFirmwarePagingPage( + resourceGroupName, + workspaceName, + firmwareId, + options, + settings, + ); + }, + }; + } + + private async *listByFirmwarePagingPage( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: BinaryHardeningListByFirmwareOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: BinaryHardeningListByFirmwareResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByFirmwareNext( + resourceGroupName, + workspaceName, + firmwareId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByFirmwarePagingAll( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: BinaryHardeningListByFirmwareOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByFirmwarePagingPage( + resourceGroupName, + workspaceName, + firmwareId, + options, + )) { + yield* page; + } + } + + /** + * Lists binary hardening analysis results of a firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + private _listByFirmware( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: BinaryHardeningListByFirmwareOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, firmwareId, options }, + listByFirmwareOperationSpec, + ); + } + + /** + * ListByFirmwareNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param nextLink The nextLink from the previous successful call to the ListByFirmware method. + * @param options The options parameters. + */ + private _listByFirmwareNext( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + nextLink: string, + options?: BinaryHardeningListByFirmwareNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, firmwareId, nextLink, options }, + listByFirmwareNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByFirmwareOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/binaryHardeningResults", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BinaryHardeningListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.firmwareId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByFirmwareNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BinaryHardeningListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.firmwareId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/cryptoCertificates.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/cryptoCertificates.ts new file mode 100644 index 000000000000..2173b9a4579b --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/cryptoCertificates.ts @@ -0,0 +1,216 @@ +/* + * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { CryptoCertificates } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { IoTFirmwareDefenseClient } from "../ioTFirmwareDefenseClient"; +import { + CryptoCertificateResource, + CryptoCertificatesListByFirmwareNextOptionalParams, + CryptoCertificatesListByFirmwareOptionalParams, + CryptoCertificatesListByFirmwareResponse, + CryptoCertificatesListByFirmwareNextResponse, +} from "../models"; + +/// +/** Class containing CryptoCertificates operations. */ +export class CryptoCertificatesImpl implements CryptoCertificates { + private readonly client: IoTFirmwareDefenseClient; + + /** + * Initialize a new instance of the class CryptoCertificates class. + * @param client Reference to the service client + */ + constructor(client: IoTFirmwareDefenseClient) { + this.client = client; + } + + /** + * Lists cryptographic certificate analysis results found in a firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + public listByFirmware( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: CryptoCertificatesListByFirmwareOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByFirmwarePagingAll( + resourceGroupName, + workspaceName, + firmwareId, + 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.listByFirmwarePagingPage( + resourceGroupName, + workspaceName, + firmwareId, + options, + settings, + ); + }, + }; + } + + private async *listByFirmwarePagingPage( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: CryptoCertificatesListByFirmwareOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: CryptoCertificatesListByFirmwareResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByFirmwareNext( + resourceGroupName, + workspaceName, + firmwareId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByFirmwarePagingAll( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: CryptoCertificatesListByFirmwareOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByFirmwarePagingPage( + resourceGroupName, + workspaceName, + firmwareId, + options, + )) { + yield* page; + } + } + + /** + * Lists cryptographic certificate analysis results found in a firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + private _listByFirmware( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: CryptoCertificatesListByFirmwareOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, firmwareId, options }, + listByFirmwareOperationSpec, + ); + } + + /** + * ListByFirmwareNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param nextLink The nextLink from the previous successful call to the ListByFirmware method. + * @param options The options parameters. + */ + private _listByFirmwareNext( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + nextLink: string, + options?: CryptoCertificatesListByFirmwareNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, firmwareId, nextLink, options }, + listByFirmwareNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByFirmwareOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/cryptoCertificates", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CryptoCertificateListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.firmwareId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByFirmwareNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CryptoCertificateListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.firmwareId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/cryptoKeys.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/cryptoKeys.ts new file mode 100644 index 000000000000..1d42ae32d207 --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/cryptoKeys.ts @@ -0,0 +1,216 @@ +/* + * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { CryptoKeys } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { IoTFirmwareDefenseClient } from "../ioTFirmwareDefenseClient"; +import { + CryptoKeyResource, + CryptoKeysListByFirmwareNextOptionalParams, + CryptoKeysListByFirmwareOptionalParams, + CryptoKeysListByFirmwareResponse, + CryptoKeysListByFirmwareNextResponse, +} from "../models"; + +/// +/** Class containing CryptoKeys operations. */ +export class CryptoKeysImpl implements CryptoKeys { + private readonly client: IoTFirmwareDefenseClient; + + /** + * Initialize a new instance of the class CryptoKeys class. + * @param client Reference to the service client + */ + constructor(client: IoTFirmwareDefenseClient) { + this.client = client; + } + + /** + * Lists cryptographic key analysis results found in a firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + public listByFirmware( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: CryptoKeysListByFirmwareOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByFirmwarePagingAll( + resourceGroupName, + workspaceName, + firmwareId, + 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.listByFirmwarePagingPage( + resourceGroupName, + workspaceName, + firmwareId, + options, + settings, + ); + }, + }; + } + + private async *listByFirmwarePagingPage( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: CryptoKeysListByFirmwareOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: CryptoKeysListByFirmwareResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByFirmwareNext( + resourceGroupName, + workspaceName, + firmwareId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByFirmwarePagingAll( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: CryptoKeysListByFirmwareOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByFirmwarePagingPage( + resourceGroupName, + workspaceName, + firmwareId, + options, + )) { + yield* page; + } + } + + /** + * Lists cryptographic key analysis results found in a firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + private _listByFirmware( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: CryptoKeysListByFirmwareOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, firmwareId, options }, + listByFirmwareOperationSpec, + ); + } + + /** + * ListByFirmwareNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param nextLink The nextLink from the previous successful call to the ListByFirmware method. + * @param options The options parameters. + */ + private _listByFirmwareNext( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + nextLink: string, + options?: CryptoKeysListByFirmwareNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, firmwareId, nextLink, options }, + listByFirmwareNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByFirmwareOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/cryptoKeys", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CryptoKeyListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.firmwareId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByFirmwareNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CryptoKeyListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.firmwareId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/cves.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/cves.ts new file mode 100644 index 000000000000..58e2a18d6791 --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/cves.ts @@ -0,0 +1,216 @@ +/* + * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { Cves } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { IoTFirmwareDefenseClient } from "../ioTFirmwareDefenseClient"; +import { + CveResource, + CvesListByFirmwareNextOptionalParams, + CvesListByFirmwareOptionalParams, + CvesListByFirmwareResponse, + CvesListByFirmwareNextResponse, +} from "../models"; + +/// +/** Class containing Cves operations. */ +export class CvesImpl implements Cves { + private readonly client: IoTFirmwareDefenseClient; + + /** + * Initialize a new instance of the class Cves class. + * @param client Reference to the service client + */ + constructor(client: IoTFirmwareDefenseClient) { + this.client = client; + } + + /** + * Lists CVE analysis results of a firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + public listByFirmware( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: CvesListByFirmwareOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByFirmwarePagingAll( + resourceGroupName, + workspaceName, + firmwareId, + 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.listByFirmwarePagingPage( + resourceGroupName, + workspaceName, + firmwareId, + options, + settings, + ); + }, + }; + } + + private async *listByFirmwarePagingPage( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: CvesListByFirmwareOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: CvesListByFirmwareResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByFirmwareNext( + resourceGroupName, + workspaceName, + firmwareId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByFirmwarePagingAll( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: CvesListByFirmwareOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByFirmwarePagingPage( + resourceGroupName, + workspaceName, + firmwareId, + options, + )) { + yield* page; + } + } + + /** + * Lists CVE analysis results of a firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + private _listByFirmware( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: CvesListByFirmwareOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, firmwareId, options }, + listByFirmwareOperationSpec, + ); + } + + /** + * ListByFirmwareNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param nextLink The nextLink from the previous successful call to the ListByFirmware method. + * @param options The options parameters. + */ + private _listByFirmwareNext( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + nextLink: string, + options?: CvesListByFirmwareNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, firmwareId, nextLink, options }, + listByFirmwareNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByFirmwareOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/cves", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CveListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.firmwareId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByFirmwareNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CveListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.firmwareId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/firmwareOperations.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/firmwareOperations.ts deleted file mode 100644 index 008ed4d68211..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/firmwareOperations.ts +++ /dev/null @@ -1,1892 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { FirmwareOperations } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { IoTFirmwareDefenseClient } from "../ioTFirmwareDefenseClient"; -import { - Firmware, - FirmwareListByWorkspaceNextOptionalParams, - FirmwareListByWorkspaceOptionalParams, - FirmwareListByWorkspaceResponse, - Component, - FirmwareListGenerateComponentListNextOptionalParams, - FirmwareListGenerateComponentListOptionalParams, - FirmwareListGenerateComponentListResponse, - BinaryHardening, - FirmwareListGenerateBinaryHardeningListNextOptionalParams, - FirmwareListGenerateBinaryHardeningListOptionalParams, - FirmwareListGenerateBinaryHardeningListResponse, - PasswordHash, - FirmwareListGeneratePasswordHashListNextOptionalParams, - FirmwareListGeneratePasswordHashListOptionalParams, - FirmwareListGeneratePasswordHashListResponse, - Cve, - FirmwareListGenerateCveListNextOptionalParams, - FirmwareListGenerateCveListOptionalParams, - FirmwareListGenerateCveListResponse, - CryptoCertificate, - FirmwareListGenerateCryptoCertificateListNextOptionalParams, - FirmwareListGenerateCryptoCertificateListOptionalParams, - FirmwareListGenerateCryptoCertificateListResponse, - CryptoKey, - FirmwareListGenerateCryptoKeyListNextOptionalParams, - FirmwareListGenerateCryptoKeyListOptionalParams, - FirmwareListGenerateCryptoKeyListResponse, - FirmwareCreateOptionalParams, - FirmwareCreateResponse, - FirmwareUpdateDefinition, - FirmwareUpdateOptionalParams, - FirmwareUpdateResponse, - FirmwareDeleteOptionalParams, - FirmwareGetOptionalParams, - FirmwareGetResponse, - FirmwareGenerateDownloadUrlOptionalParams, - FirmwareGenerateDownloadUrlResponse, - FirmwareGenerateFilesystemDownloadUrlOptionalParams, - FirmwareGenerateFilesystemDownloadUrlResponse, - FirmwareGenerateSummaryOptionalParams, - FirmwareGenerateSummaryResponse, - FirmwareGenerateComponentDetailsOptionalParams, - FirmwareGenerateComponentDetailsResponse, - FirmwareGenerateBinaryHardeningSummaryOptionalParams, - FirmwareGenerateBinaryHardeningSummaryResponse, - FirmwareGenerateBinaryHardeningDetailsOptionalParams, - FirmwareGenerateBinaryHardeningDetailsResponse, - FirmwareGenerateCveSummaryOptionalParams, - FirmwareGenerateCveSummaryResponse, - FirmwareGenerateCryptoCertificateSummaryOptionalParams, - FirmwareGenerateCryptoCertificateSummaryResponse, - FirmwareGenerateCryptoKeySummaryOptionalParams, - FirmwareGenerateCryptoKeySummaryResponse, - FirmwareListByWorkspaceNextResponse, - FirmwareListGenerateComponentListNextResponse, - FirmwareListGenerateBinaryHardeningListNextResponse, - FirmwareListGeneratePasswordHashListNextResponse, - FirmwareListGenerateCveListNextResponse, - FirmwareListGenerateCryptoCertificateListNextResponse, - FirmwareListGenerateCryptoKeyListNextResponse -} from "../models"; - -/// -/** Class containing FirmwareOperations operations. */ -export class FirmwareOperationsImpl implements FirmwareOperations { - private readonly client: IoTFirmwareDefenseClient; - - /** - * Initialize a new instance of the class FirmwareOperations class. - * @param client Reference to the service client - */ - constructor(client: IoTFirmwareDefenseClient) { - this.client = client; - } - - /** - * Lists all of firmwares inside a workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param options The options parameters. - */ - public listByWorkspace( - resourceGroupName: string, - workspaceName: string, - options?: FirmwareListByWorkspaceOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByWorkspacePagingAll( - resourceGroupName, - workspaceName, - 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.listByWorkspacePagingPage( - resourceGroupName, - workspaceName, - options, - settings - ); - } - }; - } - - private async *listByWorkspacePagingPage( - resourceGroupName: string, - workspaceName: string, - options?: FirmwareListByWorkspaceOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: FirmwareListByWorkspaceResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByWorkspace( - resourceGroupName, - workspaceName, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByWorkspaceNext( - resourceGroupName, - workspaceName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByWorkspacePagingAll( - resourceGroupName: string, - workspaceName: string, - options?: FirmwareListByWorkspaceOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByWorkspacePagingPage( - resourceGroupName, - workspaceName, - options - )) { - yield* page; - } - } - - /** - * The operation to list all components result for a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - public listGenerateComponentList( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGenerateComponentListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listGenerateComponentListPagingAll( - resourceGroupName, - workspaceName, - firmwareId, - 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.listGenerateComponentListPagingPage( - resourceGroupName, - workspaceName, - firmwareId, - options, - settings - ); - } - }; - } - - private async *listGenerateComponentListPagingPage( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGenerateComponentListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: FirmwareListGenerateComponentListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listGenerateComponentList( - resourceGroupName, - workspaceName, - firmwareId, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listGenerateComponentListNext( - resourceGroupName, - workspaceName, - firmwareId, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listGenerateComponentListPagingAll( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGenerateComponentListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listGenerateComponentListPagingPage( - resourceGroupName, - workspaceName, - firmwareId, - options - )) { - yield* page; - } - } - - /** - * The operation to list all binary hardening result for a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - public listGenerateBinaryHardeningList( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGenerateBinaryHardeningListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listGenerateBinaryHardeningListPagingAll( - resourceGroupName, - workspaceName, - firmwareId, - 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.listGenerateBinaryHardeningListPagingPage( - resourceGroupName, - workspaceName, - firmwareId, - options, - settings - ); - } - }; - } - - private async *listGenerateBinaryHardeningListPagingPage( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGenerateBinaryHardeningListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: FirmwareListGenerateBinaryHardeningListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listGenerateBinaryHardeningList( - resourceGroupName, - workspaceName, - firmwareId, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listGenerateBinaryHardeningListNext( - resourceGroupName, - workspaceName, - firmwareId, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listGenerateBinaryHardeningListPagingAll( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGenerateBinaryHardeningListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listGenerateBinaryHardeningListPagingPage( - resourceGroupName, - workspaceName, - firmwareId, - options - )) { - yield* page; - } - } - - /** - * The operation to list all password hashes for a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - public listGeneratePasswordHashList( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGeneratePasswordHashListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listGeneratePasswordHashListPagingAll( - resourceGroupName, - workspaceName, - firmwareId, - 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.listGeneratePasswordHashListPagingPage( - resourceGroupName, - workspaceName, - firmwareId, - options, - settings - ); - } - }; - } - - private async *listGeneratePasswordHashListPagingPage( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGeneratePasswordHashListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: FirmwareListGeneratePasswordHashListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listGeneratePasswordHashList( - resourceGroupName, - workspaceName, - firmwareId, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listGeneratePasswordHashListNext( - resourceGroupName, - workspaceName, - firmwareId, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listGeneratePasswordHashListPagingAll( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGeneratePasswordHashListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listGeneratePasswordHashListPagingPage( - resourceGroupName, - workspaceName, - firmwareId, - options - )) { - yield* page; - } - } - - /** - * The operation to list all cve results for a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - public listGenerateCveList( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGenerateCveListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listGenerateCveListPagingAll( - resourceGroupName, - workspaceName, - firmwareId, - 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.listGenerateCveListPagingPage( - resourceGroupName, - workspaceName, - firmwareId, - options, - settings - ); - } - }; - } - - private async *listGenerateCveListPagingPage( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGenerateCveListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: FirmwareListGenerateCveListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listGenerateCveList( - resourceGroupName, - workspaceName, - firmwareId, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listGenerateCveListNext( - resourceGroupName, - workspaceName, - firmwareId, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listGenerateCveListPagingAll( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGenerateCveListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listGenerateCveListPagingPage( - resourceGroupName, - workspaceName, - firmwareId, - options - )) { - yield* page; - } - } - - /** - * The operation to list all crypto certificates for a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - public listGenerateCryptoCertificateList( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGenerateCryptoCertificateListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listGenerateCryptoCertificateListPagingAll( - resourceGroupName, - workspaceName, - firmwareId, - 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.listGenerateCryptoCertificateListPagingPage( - resourceGroupName, - workspaceName, - firmwareId, - options, - settings - ); - } - }; - } - - private async *listGenerateCryptoCertificateListPagingPage( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGenerateCryptoCertificateListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: FirmwareListGenerateCryptoCertificateListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listGenerateCryptoCertificateList( - resourceGroupName, - workspaceName, - firmwareId, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listGenerateCryptoCertificateListNext( - resourceGroupName, - workspaceName, - firmwareId, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listGenerateCryptoCertificateListPagingAll( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGenerateCryptoCertificateListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listGenerateCryptoCertificateListPagingPage( - resourceGroupName, - workspaceName, - firmwareId, - options - )) { - yield* page; - } - } - - /** - * The operation to list all crypto keys for a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - public listGenerateCryptoKeyList( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGenerateCryptoKeyListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listGenerateCryptoKeyListPagingAll( - resourceGroupName, - workspaceName, - firmwareId, - 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.listGenerateCryptoKeyListPagingPage( - resourceGroupName, - workspaceName, - firmwareId, - options, - settings - ); - } - }; - } - - private async *listGenerateCryptoKeyListPagingPage( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGenerateCryptoKeyListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: FirmwareListGenerateCryptoKeyListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listGenerateCryptoKeyList( - resourceGroupName, - workspaceName, - firmwareId, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listGenerateCryptoKeyListNext( - resourceGroupName, - workspaceName, - firmwareId, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listGenerateCryptoKeyListPagingAll( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGenerateCryptoKeyListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listGenerateCryptoKeyListPagingPage( - resourceGroupName, - workspaceName, - firmwareId, - options - )) { - yield* page; - } - } - - /** - * Lists all of firmwares inside a workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param options The options parameters. - */ - private _listByWorkspace( - resourceGroupName: string, - workspaceName: string, - options?: FirmwareListByWorkspaceOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, options }, - listByWorkspaceOperationSpec - ); - } - - /** - * The operation to create a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param firmware Details of the firmware being created or updated. - * @param options The options parameters. - */ - create( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - firmware: Firmware, - options?: FirmwareCreateOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, firmwareId, firmware, options }, - createOperationSpec - ); - } - - /** - * The operation to update firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param firmware Details of the firmware being created or updated. - * @param options The options parameters. - */ - update( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - firmware: FirmwareUpdateDefinition, - options?: FirmwareUpdateOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, firmwareId, firmware, options }, - updateOperationSpec - ); - } - - /** - * The operation to delete a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - delete( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareDeleteOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, firmwareId, options }, - deleteOperationSpec - ); - } - - /** - * Get firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, firmwareId, options }, - getOperationSpec - ); - } - - /** - * The operation to a url for file download. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - generateDownloadUrl( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareGenerateDownloadUrlOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, firmwareId, options }, - generateDownloadUrlOperationSpec - ); - } - - /** - * The operation to a url for tar file download. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - generateFilesystemDownloadUrl( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareGenerateFilesystemDownloadUrlOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, firmwareId, options }, - generateFilesystemDownloadUrlOperationSpec - ); - } - - /** - * The operation to get a scan summary. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - generateSummary( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareGenerateSummaryOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, firmwareId, options }, - generateSummaryOperationSpec - ); - } - - /** - * The operation to list all components result for a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - private _listGenerateComponentList( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGenerateComponentListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, firmwareId, options }, - listGenerateComponentListOperationSpec - ); - } - - /** - * The operation to get component details for a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - generateComponentDetails( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareGenerateComponentDetailsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, firmwareId, options }, - generateComponentDetailsOperationSpec - ); - } - - /** - * The operation to list all binary hardening result for a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - private _listGenerateBinaryHardeningList( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGenerateBinaryHardeningListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, firmwareId, options }, - listGenerateBinaryHardeningListOperationSpec - ); - } - - /** - * The operation to list the binary hardening summary percentages for a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - generateBinaryHardeningSummary( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareGenerateBinaryHardeningSummaryOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, firmwareId, options }, - generateBinaryHardeningSummaryOperationSpec - ); - } - - /** - * The operation to get binary hardening details for a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - generateBinaryHardeningDetails( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareGenerateBinaryHardeningDetailsOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, firmwareId, options }, - generateBinaryHardeningDetailsOperationSpec - ); - } - - /** - * The operation to list all password hashes for a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - private _listGeneratePasswordHashList( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGeneratePasswordHashListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, firmwareId, options }, - listGeneratePasswordHashListOperationSpec - ); - } - - /** - * The operation to list all cve results for a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - private _listGenerateCveList( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGenerateCveListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, firmwareId, options }, - listGenerateCveListOperationSpec - ); - } - - /** - * The operation to provide a high level summary of the CVEs reported for the firmware image. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - generateCveSummary( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareGenerateCveSummaryOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, firmwareId, options }, - generateCveSummaryOperationSpec - ); - } - - /** - * The operation to provide a high level summary of the discovered cryptographic certificates reported - * for the firmware image. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - generateCryptoCertificateSummary( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareGenerateCryptoCertificateSummaryOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, firmwareId, options }, - generateCryptoCertificateSummaryOperationSpec - ); - } - - /** - * The operation to provide a high level summary of the discovered cryptographic keys reported for the - * firmware image. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - generateCryptoKeySummary( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareGenerateCryptoKeySummaryOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, firmwareId, options }, - generateCryptoKeySummaryOperationSpec - ); - } - - /** - * The operation to list all crypto certificates for a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - private _listGenerateCryptoCertificateList( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGenerateCryptoCertificateListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, firmwareId, options }, - listGenerateCryptoCertificateListOperationSpec - ); - } - - /** - * The operation to list all crypto keys for a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - private _listGenerateCryptoKeyList( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGenerateCryptoKeyListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, firmwareId, options }, - listGenerateCryptoKeyListOperationSpec - ); - } - - /** - * ListByWorkspaceNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method. - * @param options The options parameters. - */ - private _listByWorkspaceNext( - resourceGroupName: string, - workspaceName: string, - nextLink: string, - options?: FirmwareListByWorkspaceNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, nextLink, options }, - listByWorkspaceNextOperationSpec - ); - } - - /** - * ListGenerateComponentListNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param nextLink The nextLink from the previous successful call to the ListGenerateComponentList - * method. - * @param options The options parameters. - */ - private _listGenerateComponentListNext( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - nextLink: string, - options?: FirmwareListGenerateComponentListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, firmwareId, nextLink, options }, - listGenerateComponentListNextOperationSpec - ); - } - - /** - * ListGenerateBinaryHardeningListNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param nextLink The nextLink from the previous successful call to the - * ListGenerateBinaryHardeningList method. - * @param options The options parameters. - */ - private _listGenerateBinaryHardeningListNext( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - nextLink: string, - options?: FirmwareListGenerateBinaryHardeningListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, firmwareId, nextLink, options }, - listGenerateBinaryHardeningListNextOperationSpec - ); - } - - /** - * ListGeneratePasswordHashListNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param nextLink The nextLink from the previous successful call to the ListGeneratePasswordHashList - * method. - * @param options The options parameters. - */ - private _listGeneratePasswordHashListNext( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - nextLink: string, - options?: FirmwareListGeneratePasswordHashListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, firmwareId, nextLink, options }, - listGeneratePasswordHashListNextOperationSpec - ); - } - - /** - * ListGenerateCveListNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param nextLink The nextLink from the previous successful call to the ListGenerateCveList method. - * @param options The options parameters. - */ - private _listGenerateCveListNext( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - nextLink: string, - options?: FirmwareListGenerateCveListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, firmwareId, nextLink, options }, - listGenerateCveListNextOperationSpec - ); - } - - /** - * ListGenerateCryptoCertificateListNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param nextLink The nextLink from the previous successful call to the - * ListGenerateCryptoCertificateList method. - * @param options The options parameters. - */ - private _listGenerateCryptoCertificateListNext( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - nextLink: string, - options?: FirmwareListGenerateCryptoCertificateListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, firmwareId, nextLink, options }, - listGenerateCryptoCertificateListNextOperationSpec - ); - } - - /** - * ListGenerateCryptoKeyListNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param nextLink The nextLink from the previous successful call to the ListGenerateCryptoKeyList - * method. - * @param options The options parameters. - */ - private _listGenerateCryptoKeyListNext( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - nextLink: string, - options?: FirmwareListGenerateCryptoKeyListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, firmwareId, nextLink, options }, - listGenerateCryptoKeyListNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByWorkspaceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.FirmwareList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.Firmware - }, - 201: { - bodyMapper: Mappers.Firmware - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.firmware, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.firmwareId - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.Firmware - }, - 201: { - bodyMapper: Mappers.Firmware - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.firmware1, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.firmwareId - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}", - httpMethod: "DELETE", - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.firmwareId - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.Firmware - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.firmwareId - ], - headerParameters: [Parameters.accept], - serializer -}; -const generateDownloadUrlOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateDownloadUrl", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.UrlToken - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.firmwareId - ], - headerParameters: [Parameters.accept], - serializer -}; -const generateFilesystemDownloadUrlOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateFilesystemDownloadUrl", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.UrlToken - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.firmwareId - ], - headerParameters: [Parameters.accept], - serializer -}; -const generateSummaryOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateSummary", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.FirmwareSummary - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.firmwareId - ], - headerParameters: [Parameters.accept], - serializer -}; -const listGenerateComponentListOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateComponentList", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.ComponentList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.firmwareId - ], - headerParameters: [Parameters.accept], - serializer -}; -const generateComponentDetailsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateComponentDetails", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.Component - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.firmwareId - ], - headerParameters: [Parameters.accept], - serializer -}; -const listGenerateBinaryHardeningListOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateBinaryHardeningList", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.BinaryHardeningList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.firmwareId - ], - headerParameters: [Parameters.accept], - serializer -}; -const generateBinaryHardeningSummaryOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateBinaryHardeningSummary", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.BinaryHardeningSummary - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.firmwareId - ], - headerParameters: [Parameters.accept], - serializer -}; -const generateBinaryHardeningDetailsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateBinaryHardeningDetails", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.BinaryHardening - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.firmwareId - ], - headerParameters: [Parameters.accept], - serializer -}; -const listGeneratePasswordHashListOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generatePasswordHashList", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.PasswordHashList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.firmwareId - ], - headerParameters: [Parameters.accept], - serializer -}; -const listGenerateCveListOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateCveList", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.CveList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.firmwareId - ], - headerParameters: [Parameters.accept], - serializer -}; -const generateCveSummaryOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateCveSummary", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.CveSummary - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.firmwareId - ], - headerParameters: [Parameters.accept], - serializer -}; -const generateCryptoCertificateSummaryOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateCryptoCertificateSummary", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.CryptoCertificateSummary - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.firmwareId - ], - headerParameters: [Parameters.accept], - serializer -}; -const generateCryptoKeySummaryOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateCryptoKeySummary", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.CryptoKeySummary - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.firmwareId - ], - headerParameters: [Parameters.accept], - serializer -}; -const listGenerateCryptoCertificateListOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateCryptoCertificateList", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.CryptoCertificateList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.firmwareId - ], - headerParameters: [Parameters.accept], - serializer -}; -const listGenerateCryptoKeyListOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateCryptoKeyList", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.CryptoKeyList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.firmwareId - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.FirmwareList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; -const listGenerateComponentListNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ComponentList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.firmwareId, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; -const listGenerateBinaryHardeningListNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BinaryHardeningList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.firmwareId, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; -const listGeneratePasswordHashListNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PasswordHashList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.firmwareId, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; -const listGenerateCveListNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CveList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.firmwareId, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; -const listGenerateCryptoCertificateListNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CryptoCertificateList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.firmwareId, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; -const listGenerateCryptoKeyListNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CryptoKeyList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.firmwareId, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/firmwares.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/firmwares.ts new file mode 100644 index 000000000000..84b03e7c3a79 --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/firmwares.ts @@ -0,0 +1,469 @@ +/* + * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { Firmwares } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { IoTFirmwareDefenseClient } from "../ioTFirmwareDefenseClient"; +import { + Firmware, + FirmwaresListByWorkspaceNextOptionalParams, + FirmwaresListByWorkspaceOptionalParams, + FirmwaresListByWorkspaceResponse, + FirmwaresCreateOptionalParams, + FirmwaresCreateResponse, + FirmwareUpdateDefinition, + FirmwaresUpdateOptionalParams, + FirmwaresUpdateResponse, + FirmwaresDeleteOptionalParams, + FirmwaresGetOptionalParams, + FirmwaresGetResponse, + FirmwaresGenerateDownloadUrlOptionalParams, + FirmwaresGenerateDownloadUrlResponse, + FirmwaresGenerateFilesystemDownloadUrlOptionalParams, + FirmwaresGenerateFilesystemDownloadUrlResponse, + FirmwaresListByWorkspaceNextResponse, +} from "../models"; + +/// +/** Class containing Firmwares operations. */ +export class FirmwaresImpl implements Firmwares { + private readonly client: IoTFirmwareDefenseClient; + + /** + * Initialize a new instance of the class Firmwares class. + * @param client Reference to the service client + */ + constructor(client: IoTFirmwareDefenseClient) { + this.client = client; + } + + /** + * Lists all of firmwares inside a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param options The options parameters. + */ + public listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: FirmwaresListByWorkspaceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByWorkspacePagingAll( + resourceGroupName, + workspaceName, + 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.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options, + settings, + ); + }, + }; + } + + private async *listByWorkspacePagingPage( + resourceGroupName: string, + workspaceName: string, + options?: FirmwaresListByWorkspaceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: FirmwaresListByWorkspaceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByWorkspace( + resourceGroupName, + workspaceName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByWorkspaceNext( + resourceGroupName, + workspaceName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByWorkspacePagingAll( + resourceGroupName: string, + workspaceName: string, + options?: FirmwaresListByWorkspaceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options, + )) { + yield* page; + } + } + + /** + * Lists all of firmwares inside a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param options The options parameters. + */ + private _listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: FirmwaresListByWorkspaceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listByWorkspaceOperationSpec, + ); + } + + /** + * The operation to create a firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param firmware Details of the firmware being created or updated. + * @param options The options parameters. + */ + create( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + firmware: Firmware, + options?: FirmwaresCreateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, firmwareId, firmware, options }, + createOperationSpec, + ); + } + + /** + * The operation to update firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param firmware Details of the firmware being created or updated. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + firmware: FirmwareUpdateDefinition, + options?: FirmwaresUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, firmwareId, firmware, options }, + updateOperationSpec, + ); + } + + /** + * The operation to delete a firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: FirmwaresDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, firmwareId, options }, + deleteOperationSpec, + ); + } + + /** + * Get firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: FirmwaresGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, firmwareId, options }, + getOperationSpec, + ); + } + + /** + * The operation to a url for file download. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + generateDownloadUrl( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: FirmwaresGenerateDownloadUrlOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, firmwareId, options }, + generateDownloadUrlOperationSpec, + ); + } + + /** + * The operation to a url for tar file download. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + generateFilesystemDownloadUrl( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: FirmwaresGenerateFilesystemDownloadUrlOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, firmwareId, options }, + generateFilesystemDownloadUrlOperationSpec, + ); + } + + /** + * ListByWorkspaceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method. + * @param options The options parameters. + */ + private _listByWorkspaceNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: FirmwaresListByWorkspaceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listByWorkspaceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FirmwareList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.Firmware, + }, + 201: { + bodyMapper: Mappers.Firmware, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.firmware, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.firmwareId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.Firmware, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.firmware1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.firmwareId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.firmwareId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.Firmware, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.firmwareId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const generateDownloadUrlOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateDownloadUrl", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.UrlToken, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.firmwareId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const generateFilesystemDownloadUrlOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateFilesystemDownloadUrl", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.UrlToken, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.firmwareId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FirmwareList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/index.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/index.ts index e435c0528d6c..e920abdccbeb 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/index.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/index.ts @@ -6,6 +6,13 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./firmwareOperations"; -export * from "./workspaces"; +export * from "./binaryHardening"; +export * from "./cryptoCertificates"; +export * from "./cryptoKeys"; +export * from "./cves"; +export * from "./firmwares"; export * from "./operations"; +export * from "./passwordHashes"; +export * from "./sbomComponents"; +export * from "./summaries"; +export * from "./workspaces"; diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/operations.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/operations.ts index c34da8ccc29c..b9d7144a494f 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/operations.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/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.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.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/passwordHashes.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/passwordHashes.ts new file mode 100644 index 000000000000..a112c806c418 --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/passwordHashes.ts @@ -0,0 +1,216 @@ +/* + * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { PasswordHashes } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { IoTFirmwareDefenseClient } from "../ioTFirmwareDefenseClient"; +import { + PasswordHashResource, + PasswordHashesListByFirmwareNextOptionalParams, + PasswordHashesListByFirmwareOptionalParams, + PasswordHashesListByFirmwareResponse, + PasswordHashesListByFirmwareNextResponse, +} from "../models"; + +/// +/** Class containing PasswordHashes operations. */ +export class PasswordHashesImpl implements PasswordHashes { + private readonly client: IoTFirmwareDefenseClient; + + /** + * Initialize a new instance of the class PasswordHashes class. + * @param client Reference to the service client + */ + constructor(client: IoTFirmwareDefenseClient) { + this.client = client; + } + + /** + * Lists password hash analysis results of a firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + public listByFirmware( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: PasswordHashesListByFirmwareOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByFirmwarePagingAll( + resourceGroupName, + workspaceName, + firmwareId, + 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.listByFirmwarePagingPage( + resourceGroupName, + workspaceName, + firmwareId, + options, + settings, + ); + }, + }; + } + + private async *listByFirmwarePagingPage( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: PasswordHashesListByFirmwareOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: PasswordHashesListByFirmwareResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByFirmwareNext( + resourceGroupName, + workspaceName, + firmwareId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByFirmwarePagingAll( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: PasswordHashesListByFirmwareOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByFirmwarePagingPage( + resourceGroupName, + workspaceName, + firmwareId, + options, + )) { + yield* page; + } + } + + /** + * Lists password hash analysis results of a firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + private _listByFirmware( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: PasswordHashesListByFirmwareOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, firmwareId, options }, + listByFirmwareOperationSpec, + ); + } + + /** + * ListByFirmwareNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param nextLink The nextLink from the previous successful call to the ListByFirmware method. + * @param options The options parameters. + */ + private _listByFirmwareNext( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + nextLink: string, + options?: PasswordHashesListByFirmwareNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, firmwareId, nextLink, options }, + listByFirmwareNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByFirmwareOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/passwordHashes", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PasswordHashListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.firmwareId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByFirmwareNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PasswordHashListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.firmwareId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/sbomComponents.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/sbomComponents.ts new file mode 100644 index 000000000000..3ab4b69e8c63 --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/sbomComponents.ts @@ -0,0 +1,216 @@ +/* + * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { SbomComponents } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { IoTFirmwareDefenseClient } from "../ioTFirmwareDefenseClient"; +import { + SbomComponentResource, + SbomComponentsListByFirmwareNextOptionalParams, + SbomComponentsListByFirmwareOptionalParams, + SbomComponentsListByFirmwareResponse, + SbomComponentsListByFirmwareNextResponse, +} from "../models"; + +/// +/** Class containing SbomComponents operations. */ +export class SbomComponentsImpl implements SbomComponents { + private readonly client: IoTFirmwareDefenseClient; + + /** + * Initialize a new instance of the class SbomComponents class. + * @param client Reference to the service client + */ + constructor(client: IoTFirmwareDefenseClient) { + this.client = client; + } + + /** + * Lists SBOM analysis results of a firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + public listByFirmware( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: SbomComponentsListByFirmwareOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByFirmwarePagingAll( + resourceGroupName, + workspaceName, + firmwareId, + 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.listByFirmwarePagingPage( + resourceGroupName, + workspaceName, + firmwareId, + options, + settings, + ); + }, + }; + } + + private async *listByFirmwarePagingPage( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: SbomComponentsListByFirmwareOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: SbomComponentsListByFirmwareResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByFirmwareNext( + resourceGroupName, + workspaceName, + firmwareId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByFirmwarePagingAll( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: SbomComponentsListByFirmwareOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByFirmwarePagingPage( + resourceGroupName, + workspaceName, + firmwareId, + options, + )) { + yield* page; + } + } + + /** + * Lists SBOM analysis results of a firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + private _listByFirmware( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: SbomComponentsListByFirmwareOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, firmwareId, options }, + listByFirmwareOperationSpec, + ); + } + + /** + * ListByFirmwareNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param nextLink The nextLink from the previous successful call to the ListByFirmware method. + * @param options The options parameters. + */ + private _listByFirmwareNext( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + nextLink: string, + options?: SbomComponentsListByFirmwareNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, firmwareId, nextLink, options }, + listByFirmwareNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByFirmwareOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/sbomComponents", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SbomComponentListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.firmwareId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByFirmwareNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SbomComponentListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.firmwareId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/summaries.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/summaries.ts new file mode 100644 index 000000000000..5d40cb5290a5 --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/summaries.ts @@ -0,0 +1,265 @@ +/* + * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { Summaries } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { IoTFirmwareDefenseClient } from "../ioTFirmwareDefenseClient"; +import { + SummaryResource, + SummariesListByFirmwareNextOptionalParams, + SummariesListByFirmwareOptionalParams, + SummariesListByFirmwareResponse, + SummaryName, + SummariesGetOptionalParams, + SummariesGetResponse, + SummariesListByFirmwareNextResponse, +} from "../models"; + +/// +/** Class containing Summaries operations. */ +export class SummariesImpl implements Summaries { + private readonly client: IoTFirmwareDefenseClient; + + /** + * Initialize a new instance of the class Summaries class. + * @param client Reference to the service client + */ + constructor(client: IoTFirmwareDefenseClient) { + this.client = client; + } + + /** + * Lists analysis result summary names of a firmware. To fetch the full summary data, get that summary + * by name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + public listByFirmware( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: SummariesListByFirmwareOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByFirmwarePagingAll( + resourceGroupName, + workspaceName, + firmwareId, + 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.listByFirmwarePagingPage( + resourceGroupName, + workspaceName, + firmwareId, + options, + settings, + ); + }, + }; + } + + private async *listByFirmwarePagingPage( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: SummariesListByFirmwareOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: SummariesListByFirmwareResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByFirmware( + resourceGroupName, + workspaceName, + firmwareId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByFirmwareNext( + resourceGroupName, + workspaceName, + firmwareId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByFirmwarePagingAll( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: SummariesListByFirmwareOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByFirmwarePagingPage( + resourceGroupName, + workspaceName, + firmwareId, + options, + )) { + yield* page; + } + } + + /** + * Lists analysis result summary names of a firmware. To fetch the full summary data, get that summary + * by name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + private _listByFirmware( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: SummariesListByFirmwareOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, firmwareId, options }, + listByFirmwareOperationSpec, + ); + } + + /** + * Get an analysis result summary of a firmware by name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param summaryName The Firmware analysis summary name describing the type of summary. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + summaryName: SummaryName, + options?: SummariesGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, firmwareId, summaryName, options }, + getOperationSpec, + ); + } + + /** + * ListByFirmwareNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param nextLink The nextLink from the previous successful call to the ListByFirmware method. + * @param options The options parameters. + */ + private _listByFirmwareNext( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + nextLink: string, + options?: SummariesListByFirmwareNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, firmwareId, nextLink, options }, + listByFirmwareNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByFirmwareOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/summaries", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SummaryListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.firmwareId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/summaries/{summaryName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SummaryResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.firmwareId, + Parameters.summaryName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByFirmwareNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SummaryListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.firmwareId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/workspaces.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/workspaces.ts index cf189758a4c2..92d2574e5125 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/workspaces.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operations/workspaces.ts @@ -33,7 +33,7 @@ import { WorkspacesGenerateUploadUrlOptionalParams, WorkspacesGenerateUploadUrlResponse, WorkspacesListBySubscriptionNextResponse, - WorkspacesListByResourceGroupNextResponse + WorkspacesListByResourceGroupNextResponse, } from "../models"; /// @@ -54,7 +54,7 @@ export class WorkspacesImpl implements Workspaces { * @param options The options parameters. */ public listBySubscription( - options?: WorkspacesListBySubscriptionOptionalParams + options?: WorkspacesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -69,13 +69,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; @@ -96,7 +96,7 @@ export class WorkspacesImpl implements Workspaces { } private async *listBySubscriptionPagingAll( - options?: WorkspacesListBySubscriptionOptionalParams + options?: WorkspacesListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -110,7 +110,7 @@ export class WorkspacesImpl implements Workspaces { */ public listByResourceGroup( resourceGroupName: string, - options?: WorkspacesListByResourceGroupOptionalParams + options?: WorkspacesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -127,16 +127,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; @@ -151,7 +151,7 @@ export class WorkspacesImpl implements Workspaces { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -162,11 +162,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,11 +177,11 @@ export class WorkspacesImpl implements Workspaces { * @param options The options parameters. */ private _listBySubscription( - options?: WorkspacesListBySubscriptionOptionalParams + options?: WorkspacesListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -192,11 +192,11 @@ export class WorkspacesImpl implements Workspaces { */ private _listByResourceGroup( resourceGroupName: string, - options?: WorkspacesListByResourceGroupOptionalParams + options?: WorkspacesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -211,11 +211,11 @@ export class WorkspacesImpl implements Workspaces { resourceGroupName: string, workspaceName: string, workspace: Workspace, - options?: WorkspacesCreateOptionalParams + options?: WorkspacesCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, workspace, options }, - createOperationSpec + createOperationSpec, ); } @@ -230,11 +230,11 @@ export class WorkspacesImpl implements Workspaces { resourceGroupName: string, workspaceName: string, workspace: WorkspaceUpdateDefinition, - options?: WorkspacesUpdateOptionalParams + options?: WorkspacesUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, workspace, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -247,11 +247,11 @@ export class WorkspacesImpl implements Workspaces { delete( resourceGroupName: string, workspaceName: string, - options?: WorkspacesDeleteOptionalParams + options?: WorkspacesDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -264,11 +264,11 @@ export class WorkspacesImpl implements Workspaces { get( resourceGroupName: string, workspaceName: string, - options?: WorkspacesGetOptionalParams + options?: WorkspacesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -283,11 +283,11 @@ export class WorkspacesImpl implements Workspaces { resourceGroupName: string, workspaceName: string, generateUploadUrl: GenerateUploadUrlRequest, - options?: WorkspacesGenerateUploadUrlOptionalParams + options?: WorkspacesGenerateUploadUrlOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, generateUploadUrl, options }, - generateUploadUrlOperationSpec + generateUploadUrlOperationSpec, ); } @@ -298,11 +298,11 @@ export class WorkspacesImpl implements Workspaces { */ private _listBySubscriptionNext( nextLink: string, - options?: WorkspacesListBySubscriptionNextOptionalParams + options?: WorkspacesListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -315,11 +315,11 @@ export class WorkspacesImpl implements Workspaces { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: WorkspacesListByResourceGroupNextOptionalParams + options?: WorkspacesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -327,57 +327,54 @@ export class WorkspacesImpl implements Workspaces { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.IoTFirmwareDefense/workspaces", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.IoTFirmwareDefense/workspaces", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkspaceList + bodyMapper: Mappers.WorkspaceList, }, 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.IoTFirmwareDefense/workspaces", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkspaceList + bodyMapper: Mappers.WorkspaceList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, 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.IoTFirmwareDefense/workspaces/{workspaceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.Workspace, }, 201: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.Workspace, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.workspace, queryParameters: [Parameters.apiVersion], @@ -385,26 +382,22 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Workspace - }, - 201: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.Workspace, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.workspace1, queryParameters: [Parameters.apiVersion], @@ -412,67 +405,63 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.Workspace, }, - 304: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const generateUploadUrlOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/generateUploadUrl", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/generateUploadUrl", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.UrlToken + bodyMapper: Mappers.UrlToken, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.generateUploadUrl, queryParameters: [Parameters.apiVersion], @@ -480,48 +469,48 @@ const generateUploadUrlOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkspaceList + bodyMapper: Mappers.WorkspaceList, }, 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.WorkspaceList + bodyMapper: Mappers.WorkspaceList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/binaryHardening.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/binaryHardening.ts new file mode 100644 index 000000000000..a7f59ecb0afc --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/binaryHardening.ts @@ -0,0 +1,31 @@ +/* + * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + BinaryHardeningResource, + BinaryHardeningListByFirmwareOptionalParams, +} from "../models"; + +/// +/** Interface representing a BinaryHardening. */ +export interface BinaryHardening { + /** + * Lists binary hardening analysis results of a firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + listByFirmware( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: BinaryHardeningListByFirmwareOptionalParams, + ): PagedAsyncIterableIterator; +} diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/cryptoCertificates.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/cryptoCertificates.ts new file mode 100644 index 000000000000..fc370a4db478 --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/cryptoCertificates.ts @@ -0,0 +1,31 @@ +/* + * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + CryptoCertificateResource, + CryptoCertificatesListByFirmwareOptionalParams, +} from "../models"; + +/// +/** Interface representing a CryptoCertificates. */ +export interface CryptoCertificates { + /** + * Lists cryptographic certificate analysis results found in a firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + listByFirmware( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: CryptoCertificatesListByFirmwareOptionalParams, + ): PagedAsyncIterableIterator; +} diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/cryptoKeys.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/cryptoKeys.ts new file mode 100644 index 000000000000..1e56a7452f80 --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/cryptoKeys.ts @@ -0,0 +1,31 @@ +/* + * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + CryptoKeyResource, + CryptoKeysListByFirmwareOptionalParams, +} from "../models"; + +/// +/** Interface representing a CryptoKeys. */ +export interface CryptoKeys { + /** + * Lists cryptographic key analysis results found in a firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + listByFirmware( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: CryptoKeysListByFirmwareOptionalParams, + ): PagedAsyncIterableIterator; +} diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/cves.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/cves.ts new file mode 100644 index 000000000000..e968a9dd8172 --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/cves.ts @@ -0,0 +1,28 @@ +/* + * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { CveResource, CvesListByFirmwareOptionalParams } from "../models"; + +/// +/** Interface representing a Cves. */ +export interface Cves { + /** + * Lists CVE analysis results of a firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + listByFirmware( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: CvesListByFirmwareOptionalParams, + ): PagedAsyncIterableIterator; +} diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/firmwareOperations.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/firmwareOperations.ts deleted file mode 100644 index 256b7bdf7b24..000000000000 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/firmwareOperations.ts +++ /dev/null @@ -1,320 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - Firmware, - FirmwareListByWorkspaceOptionalParams, - Component, - FirmwareListGenerateComponentListOptionalParams, - BinaryHardening, - FirmwareListGenerateBinaryHardeningListOptionalParams, - PasswordHash, - FirmwareListGeneratePasswordHashListOptionalParams, - Cve, - FirmwareListGenerateCveListOptionalParams, - CryptoCertificate, - FirmwareListGenerateCryptoCertificateListOptionalParams, - CryptoKey, - FirmwareListGenerateCryptoKeyListOptionalParams, - FirmwareCreateOptionalParams, - FirmwareCreateResponse, - FirmwareUpdateDefinition, - FirmwareUpdateOptionalParams, - FirmwareUpdateResponse, - FirmwareDeleteOptionalParams, - FirmwareGetOptionalParams, - FirmwareGetResponse, - FirmwareGenerateDownloadUrlOptionalParams, - FirmwareGenerateDownloadUrlResponse, - FirmwareGenerateFilesystemDownloadUrlOptionalParams, - FirmwareGenerateFilesystemDownloadUrlResponse, - FirmwareGenerateSummaryOptionalParams, - FirmwareGenerateSummaryResponse, - FirmwareGenerateComponentDetailsOptionalParams, - FirmwareGenerateComponentDetailsResponse, - FirmwareGenerateBinaryHardeningSummaryOptionalParams, - FirmwareGenerateBinaryHardeningSummaryResponse, - FirmwareGenerateBinaryHardeningDetailsOptionalParams, - FirmwareGenerateBinaryHardeningDetailsResponse, - FirmwareGenerateCveSummaryOptionalParams, - FirmwareGenerateCveSummaryResponse, - FirmwareGenerateCryptoCertificateSummaryOptionalParams, - FirmwareGenerateCryptoCertificateSummaryResponse, - FirmwareGenerateCryptoKeySummaryOptionalParams, - FirmwareGenerateCryptoKeySummaryResponse -} from "../models"; - -/// -/** Interface representing a FirmwareOperations. */ -export interface FirmwareOperations { - /** - * Lists all of firmwares inside a workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param options The options parameters. - */ - listByWorkspace( - resourceGroupName: string, - workspaceName: string, - options?: FirmwareListByWorkspaceOptionalParams - ): PagedAsyncIterableIterator; - /** - * The operation to list all components result for a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - listGenerateComponentList( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGenerateComponentListOptionalParams - ): PagedAsyncIterableIterator; - /** - * The operation to list all binary hardening result for a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - listGenerateBinaryHardeningList( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGenerateBinaryHardeningListOptionalParams - ): PagedAsyncIterableIterator; - /** - * The operation to list all password hashes for a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - listGeneratePasswordHashList( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGeneratePasswordHashListOptionalParams - ): PagedAsyncIterableIterator; - /** - * The operation to list all cve results for a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - listGenerateCveList( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGenerateCveListOptionalParams - ): PagedAsyncIterableIterator; - /** - * The operation to list all crypto certificates for a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - listGenerateCryptoCertificateList( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGenerateCryptoCertificateListOptionalParams - ): PagedAsyncIterableIterator; - /** - * The operation to list all crypto keys for a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - listGenerateCryptoKeyList( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareListGenerateCryptoKeyListOptionalParams - ): PagedAsyncIterableIterator; - /** - * The operation to create a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param firmware Details of the firmware being created or updated. - * @param options The options parameters. - */ - create( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - firmware: Firmware, - options?: FirmwareCreateOptionalParams - ): Promise; - /** - * The operation to update firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param firmware Details of the firmware being created or updated. - * @param options The options parameters. - */ - update( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - firmware: FirmwareUpdateDefinition, - options?: FirmwareUpdateOptionalParams - ): Promise; - /** - * The operation to delete a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - delete( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareDeleteOptionalParams - ): Promise; - /** - * Get firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareGetOptionalParams - ): Promise; - /** - * The operation to a url for file download. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - generateDownloadUrl( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareGenerateDownloadUrlOptionalParams - ): Promise; - /** - * The operation to a url for tar file download. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - generateFilesystemDownloadUrl( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareGenerateFilesystemDownloadUrlOptionalParams - ): Promise; - /** - * The operation to get a scan summary. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - generateSummary( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareGenerateSummaryOptionalParams - ): Promise; - /** - * The operation to get component details for a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - generateComponentDetails( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareGenerateComponentDetailsOptionalParams - ): Promise; - /** - * The operation to list the binary hardening summary percentages for a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - generateBinaryHardeningSummary( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareGenerateBinaryHardeningSummaryOptionalParams - ): Promise; - /** - * The operation to get binary hardening details for a firmware. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - generateBinaryHardeningDetails( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareGenerateBinaryHardeningDetailsOptionalParams - ): Promise; - /** - * The operation to provide a high level summary of the CVEs reported for the firmware image. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - generateCveSummary( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareGenerateCveSummaryOptionalParams - ): Promise; - /** - * The operation to provide a high level summary of the discovered cryptographic certificates reported - * for the firmware image. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - generateCryptoCertificateSummary( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareGenerateCryptoCertificateSummaryOptionalParams - ): Promise; - /** - * The operation to provide a high level summary of the discovered cryptographic keys reported for the - * firmware image. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the firmware analysis workspace. - * @param firmwareId The id of the firmware. - * @param options The options parameters. - */ - generateCryptoKeySummary( - resourceGroupName: string, - workspaceName: string, - firmwareId: string, - options?: FirmwareGenerateCryptoKeySummaryOptionalParams - ): Promise; -} diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/firmwares.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/firmwares.ts new file mode 100644 index 000000000000..63f5c71f75f1 --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/firmwares.ts @@ -0,0 +1,123 @@ +/* + * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + Firmware, + FirmwaresListByWorkspaceOptionalParams, + FirmwaresCreateOptionalParams, + FirmwaresCreateResponse, + FirmwareUpdateDefinition, + FirmwaresUpdateOptionalParams, + FirmwaresUpdateResponse, + FirmwaresDeleteOptionalParams, + FirmwaresGetOptionalParams, + FirmwaresGetResponse, + FirmwaresGenerateDownloadUrlOptionalParams, + FirmwaresGenerateDownloadUrlResponse, + FirmwaresGenerateFilesystemDownloadUrlOptionalParams, + FirmwaresGenerateFilesystemDownloadUrlResponse, +} from "../models"; + +/// +/** Interface representing a Firmwares. */ +export interface Firmwares { + /** + * Lists all of firmwares inside a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param options The options parameters. + */ + listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: FirmwaresListByWorkspaceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * The operation to create a firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param firmware Details of the firmware being created or updated. + * @param options The options parameters. + */ + create( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + firmware: Firmware, + options?: FirmwaresCreateOptionalParams, + ): Promise; + /** + * The operation to update firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param firmware Details of the firmware being created or updated. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + firmware: FirmwareUpdateDefinition, + options?: FirmwaresUpdateOptionalParams, + ): Promise; + /** + * The operation to delete a firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: FirmwaresDeleteOptionalParams, + ): Promise; + /** + * Get firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: FirmwaresGetOptionalParams, + ): Promise; + /** + * The operation to a url for file download. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + generateDownloadUrl( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: FirmwaresGenerateDownloadUrlOptionalParams, + ): Promise; + /** + * The operation to a url for tar file download. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + generateFilesystemDownloadUrl( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: FirmwaresGenerateFilesystemDownloadUrlOptionalParams, + ): Promise; +} diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/index.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/index.ts index e435c0528d6c..e920abdccbeb 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/index.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/index.ts @@ -6,6 +6,13 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./firmwareOperations"; -export * from "./workspaces"; +export * from "./binaryHardening"; +export * from "./cryptoCertificates"; +export * from "./cryptoKeys"; +export * from "./cves"; +export * from "./firmwares"; export * from "./operations"; +export * from "./passwordHashes"; +export * from "./sbomComponents"; +export * from "./summaries"; +export * from "./workspaces"; diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/operations.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/operations.ts index fc1266988ba8..24de1617dfb7 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/operations.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/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/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/passwordHashes.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/passwordHashes.ts new file mode 100644 index 000000000000..742132300ba3 --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/passwordHashes.ts @@ -0,0 +1,31 @@ +/* + * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + PasswordHashResource, + PasswordHashesListByFirmwareOptionalParams, +} from "../models"; + +/// +/** Interface representing a PasswordHashes. */ +export interface PasswordHashes { + /** + * Lists password hash analysis results of a firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + listByFirmware( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: PasswordHashesListByFirmwareOptionalParams, + ): PagedAsyncIterableIterator; +} diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/sbomComponents.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/sbomComponents.ts new file mode 100644 index 000000000000..7ff19c07c3af --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/sbomComponents.ts @@ -0,0 +1,31 @@ +/* + * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + SbomComponentResource, + SbomComponentsListByFirmwareOptionalParams, +} from "../models"; + +/// +/** Interface representing a SbomComponents. */ +export interface SbomComponents { + /** + * Lists SBOM analysis results of a firmware. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + listByFirmware( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: SbomComponentsListByFirmwareOptionalParams, + ): PagedAsyncIterableIterator; +} diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/summaries.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/summaries.ts new file mode 100644 index 000000000000..87351872b734 --- /dev/null +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/summaries.ts @@ -0,0 +1,50 @@ +/* + * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + SummaryResource, + SummariesListByFirmwareOptionalParams, + SummaryName, + SummariesGetOptionalParams, + SummariesGetResponse, +} from "../models"; + +/// +/** Interface representing a Summaries. */ +export interface Summaries { + /** + * Lists analysis result summary names of a firmware. To fetch the full summary data, get that summary + * by name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param options The options parameters. + */ + listByFirmware( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + options?: SummariesListByFirmwareOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Get an analysis result summary of a firmware by name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the firmware analysis workspace. + * @param firmwareId The id of the firmware. + * @param summaryName The Firmware analysis summary name describing the type of summary. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + firmwareId: string, + summaryName: SummaryName, + options?: SummariesGetOptionalParams, + ): Promise; +} diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/workspaces.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/workspaces.ts index 198ea6736488..a0674ea567e9 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/workspaces.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/operationsInterfaces/workspaces.ts @@ -21,7 +21,7 @@ import { WorkspacesGetResponse, GenerateUploadUrlRequest, WorkspacesGenerateUploadUrlOptionalParams, - WorkspacesGenerateUploadUrlResponse + WorkspacesGenerateUploadUrlResponse, } from "../models"; /// @@ -32,7 +32,7 @@ export interface Workspaces { * @param options The options parameters. */ listBySubscription( - options?: WorkspacesListBySubscriptionOptionalParams + options?: WorkspacesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all of the firmware analysis workspaces in the specified resource group. @@ -41,7 +41,7 @@ export interface Workspaces { */ listByResourceGroup( resourceGroupName: string, - options?: WorkspacesListByResourceGroupOptionalParams + options?: WorkspacesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * The operation to create or update a firmware analysis workspace. @@ -54,7 +54,7 @@ export interface Workspaces { resourceGroupName: string, workspaceName: string, workspace: Workspace, - options?: WorkspacesCreateOptionalParams + options?: WorkspacesCreateOptionalParams, ): Promise; /** * The operation to update a firmware analysis workspaces. @@ -67,7 +67,7 @@ export interface Workspaces { resourceGroupName: string, workspaceName: string, workspace: WorkspaceUpdateDefinition, - options?: WorkspacesUpdateOptionalParams + options?: WorkspacesUpdateOptionalParams, ): Promise; /** * The operation to delete a firmware analysis workspace. @@ -78,7 +78,7 @@ export interface Workspaces { delete( resourceGroupName: string, workspaceName: string, - options?: WorkspacesDeleteOptionalParams + options?: WorkspacesDeleteOptionalParams, ): Promise; /** * Get firmware analysis workspace. @@ -89,7 +89,7 @@ export interface Workspaces { get( resourceGroupName: string, workspaceName: string, - options?: WorkspacesGetOptionalParams + options?: WorkspacesGetOptionalParams, ): Promise; /** * The operation to get a url for file upload. @@ -102,6 +102,6 @@ export interface Workspaces { resourceGroupName: string, workspaceName: string, generateUploadUrl: GenerateUploadUrlRequest, - options?: WorkspacesGenerateUploadUrlOptionalParams + options?: WorkspacesGenerateUploadUrlOptionalParams, ): Promise; } diff --git a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/pagingHelper.ts b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/src/pagingHelper.ts +++ b/sdk/iotfirmwaredefense/arm-iotfirmwaredefense/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;