diff --git a/sdk/dataprotection/arm-dataprotection/CHANGELOG.md b/sdk/dataprotection/arm-dataprotection/CHANGELOG.md index f9342f32eb47..0bdce2343b50 100644 --- a/sdk/dataprotection/arm-dataprotection/CHANGELOG.md +++ b/sdk/dataprotection/arm-dataprotection/CHANGELOG.md @@ -1,15 +1,26 @@ # Release History + +## 2.1.0 (2024-03-26) + +**Features** -## 2.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added Interface CmkKekIdentity + - Added Interface CmkKeyVaultProperties + - Added Interface EncryptionSettings + - Added Type Alias BcdrSecurityLevel + - Added Type Alias EncryptionState + - Added Type Alias IdentityType + - Added Type Alias InfrastructureEncryptionState + - Interface BackupVault has a new optional parameter bcdrSecurityLevel + - Interface KubernetesClusterRestoreCriteria has a new optional parameter resourceModifierReference + - Interface KubernetesClusterVaultTierRestoreCriteria has a new optional parameter resourceModifierReference + - Interface SecuritySettings has a new optional parameter encryptionSettings + - Added Enum KnownBcdrSecurityLevel + - Added Enum KnownEncryptionState + - Added Enum KnownIdentityType + - Added Enum KnownInfrastructureEncryptionState + + ## 2.0.0 (2023-12-05) **Features** diff --git a/sdk/dataprotection/arm-dataprotection/LICENSE b/sdk/dataprotection/arm-dataprotection/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/dataprotection/arm-dataprotection/LICENSE +++ b/sdk/dataprotection/arm-dataprotection/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/dataprotection/arm-dataprotection/_meta.json b/sdk/dataprotection/arm-dataprotection/_meta.json index 54e9def0e7b8..6090e95ce89c 100644 --- a/sdk/dataprotection/arm-dataprotection/_meta.json +++ b/sdk/dataprotection/arm-dataprotection/_meta.json @@ -1,8 +1,8 @@ { - "commit": "cb798ffa99c193a88388f358965f377fde3699e8", + "commit": "8bf919b0730d585384708f4e4d8a756c4ea711dd", "readme": "specification/dataprotection/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\\dataprotection\\resource-manager\\readme.md --use=@autorest/typescript@6.0.12 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/dataprotection/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", - "use": "@autorest/typescript@6.0.12" + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/dataprotection/arm-dataprotection/package.json b/sdk/dataprotection/arm-dataprotection/package.json index 51555875abdc..3e38ff0630cb 100644 --- a/sdk/dataprotection/arm-dataprotection/package.json +++ b/sdk/dataprotection/arm-dataprotection/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for DataProtectionClient.", - "version": "2.0.1", + "version": "2.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", @@ -107,13 +106,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/dataprotection/arm-dataprotection", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-dataprotection?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/dataprotection/arm-dataprotection" +} \ No newline at end of file diff --git a/sdk/dataprotection/arm-dataprotection/review/arm-dataprotection.api.md b/sdk/dataprotection/arm-dataprotection/review/arm-dataprotection.api.md index 5f14fdd6112a..e4faefca88be 100644 --- a/sdk/dataprotection/arm-dataprotection/review/arm-dataprotection.api.md +++ b/sdk/dataprotection/arm-dataprotection/review/arm-dataprotection.api.md @@ -618,6 +618,7 @@ export interface BackupSchedule { // @public export interface BackupVault { + readonly bcdrSecurityLevel?: BcdrSecurityLevel; featureSettings?: FeatureSettings; readonly isVaultProtectedByResourceGuard?: boolean; monitoringSettings?: MonitoringSettings; @@ -777,6 +778,9 @@ export interface BaseResourceProperties { // @public (undocumented) export type BaseResourcePropertiesUnion = BaseResourceProperties | DefaultResourceProperties; +// @public +export type BcdrSecurityLevel = string; + // @public export interface BlobBackupDatasourceParameters extends BackupDatasourceParameters { containersList: string[]; @@ -841,6 +845,17 @@ export interface CloudError { error?: ErrorModel; } +// @public +export interface CmkKekIdentity { + identityId?: string; + identityType?: IdentityType; +} + +// @public +export interface CmkKeyVaultProperties { + keyUri?: string; +} + // @public export interface CopyOnExpiryOption extends CopyOption { objectType: "CopyOnExpiryOption"; @@ -1269,6 +1284,17 @@ export interface DppWorkerRequest { uri?: string; } +// @public +export interface EncryptionSettings { + infrastructureEncryption?: InfrastructureEncryptionState; + kekIdentity?: CmkKekIdentity; + keyVaultProperties?: CmkKeyVaultProperties; + state?: EncryptionState; +} + +// @public +export type EncryptionState = string; + // @public export interface ErrorAdditionalInfo { readonly info?: Record; @@ -1453,6 +1479,9 @@ export interface IdentityDetails { useSystemAssignedIdentity?: boolean; } +// @public +export type IdentityType = string; + // @public export interface ImmediateCopyOption extends CopyOption { objectType: "ImmediateCopyOption"; @@ -1466,6 +1495,9 @@ export interface ImmutabilitySettings { // @public export type ImmutabilityState = string; +// @public +export type InfrastructureEncryptionState = string; + // @public export interface InnerError { additionalInfo?: { @@ -1567,6 +1599,15 @@ export enum KnownAlertsState { Enabled = "Enabled" } +// @public +export enum KnownBcdrSecurityLevel { + Excellent = "Excellent", + Fair = "Fair", + Good = "Good", + NotSupported = "NotSupported", + Poor = "Poor" +} + // @public export enum KnownCreatedByType { Application = "Application", @@ -1622,6 +1663,13 @@ export enum KnownDayOfWeek { Wednesday = "Wednesday" } +// @public +export enum KnownEncryptionState { + Disabled = "Disabled", + Enabled = "Enabled", + Inconsistent = "Inconsistent" +} + // @public export enum KnownExistingResourcePolicy { Patch = "Patch", @@ -1644,6 +1692,12 @@ export enum KnownFeatureType { Invalid = "Invalid" } +// @public +export enum KnownIdentityType { + SystemAssigned = "SystemAssigned", + UserAssigned = "UserAssigned" +} + // @public export enum KnownImmutabilityState { Disabled = "Disabled", @@ -1651,6 +1705,12 @@ export enum KnownImmutabilityState { Unlocked = "Unlocked" } +// @public +export enum KnownInfrastructureEncryptionState { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownMonth { April = "April", @@ -1844,6 +1904,7 @@ export interface KubernetesClusterRestoreCriteria extends ItemLevelRestoreCriter }; objectType: "KubernetesClusterRestoreCriteria"; persistentVolumeRestoreMode?: PersistentVolumeRestoreMode; + resourceModifierReference?: NamespacedNameResource; restoreHookReferences?: NamespacedNameResource[]; } @@ -1861,6 +1922,7 @@ export interface KubernetesClusterVaultTierRestoreCriteria extends ItemLevelRest }; objectType: "KubernetesClusterVaultTierRestoreCriteria"; persistentVolumeRestoreMode?: PersistentVolumeRestoreMode; + resourceModifierReference?: NamespacedNameResource; restoreHookReferences?: NamespacedNameResource[]; stagingResourceGroupId?: string; stagingStorageAccountId?: string; @@ -2484,6 +2546,7 @@ export type SecureScoreLevel = string; // @public export interface SecuritySettings { + encryptionSettings?: EncryptionSettings; immutabilitySettings?: ImmutabilitySettings; softDeleteSettings?: SoftDeleteSettings; } diff --git a/sdk/dataprotection/arm-dataprotection/src/dataProtectionClient.ts b/sdk/dataprotection/arm-dataprotection/src/dataProtectionClient.ts index 4987f169246e..597426a926c4 100644 --- a/sdk/dataprotection/arm-dataprotection/src/dataProtectionClient.ts +++ b/sdk/dataprotection/arm-dataprotection/src/dataProtectionClient.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 { @@ -35,7 +35,7 @@ import { ExportJobsOperationResultImpl, DeletedBackupInstancesImpl, ResourceGuardsImpl, - DppResourceGuardProxyImpl + DppResourceGuardProxyImpl, } from "./operations"; import { BackupVaults, @@ -58,7 +58,7 @@ import { ExportJobsOperationResult, DeletedBackupInstances, ResourceGuards, - DppResourceGuardProxy + DppResourceGuardProxy, } from "./operationsInterfaces"; import { DataProtectionClientOptionalParams } from "./models"; @@ -76,16 +76,16 @@ export class DataProtectionClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: DataProtectionClientOptionalParams + options?: DataProtectionClientOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, - options?: DataProtectionClientOptionalParams + options?: DataProtectionClientOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, subscriptionIdOrOptions?: DataProtectionClientOptionalParams | string, - options?: DataProtectionClientOptionalParams + options?: DataProtectionClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -105,10 +105,10 @@ export class DataProtectionClient extends coreClient.ServiceClient { } const defaults: DataProtectionClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-dataprotection/2.0.1`; + const packageDetails = `azsdk-js-arm-dataprotection/2.1.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -118,20 +118,21 @@ export class DataProtectionClient 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 ( @@ -141,7 +142,7 @@ export class DataProtectionClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -151,9 +152,9 @@ export class DataProtectionClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -161,18 +162,16 @@ export class DataProtectionClient 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"; this.backupVaults = new BackupVaultsImpl(this); this.operationResult = new OperationResultImpl(this); this.operationStatus = new OperationStatusImpl(this); - this.operationStatusBackupVaultContext = new OperationStatusBackupVaultContextImpl( - this - ); - this.operationStatusResourceGroupContext = new OperationStatusResourceGroupContextImpl( - this - ); + this.operationStatusBackupVaultContext = + new OperationStatusBackupVaultContextImpl(this); + this.operationStatusResourceGroupContext = + new OperationStatusResourceGroupContextImpl(this); this.backupVaultOperationResults = new BackupVaultOperationResultsImpl( - this + this, ); this.dataProtection = new DataProtectionImpl(this); this.dataProtectionOperations = new DataProtectionOperationsImpl(this); @@ -180,11 +179,11 @@ export class DataProtectionClient extends coreClient.ServiceClient { this.backupInstances = new BackupInstancesImpl(this); this.recoveryPoints = new RecoveryPointsImpl(this); this.fetchSecondaryRecoveryPoints = new FetchSecondaryRecoveryPointsImpl( - this + this, ); this.fetchCrossRegionRestoreJob = new FetchCrossRegionRestoreJobImpl(this); this.fetchCrossRegionRestoreJobs = new FetchCrossRegionRestoreJobsImpl( - this + this, ); this.jobs = new JobsImpl(this); this.restorableTimeRanges = new RestorableTimeRangesImpl(this); @@ -205,7 +204,7 @@ export class DataProtectionClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -219,7 +218,7 @@ export class DataProtectionClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } diff --git a/sdk/dataprotection/arm-dataprotection/src/lroImpl.ts b/sdk/dataprotection/arm-dataprotection/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/dataprotection/arm-dataprotection/src/lroImpl.ts +++ b/sdk/dataprotection/arm-dataprotection/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/dataprotection/arm-dataprotection/src/models/index.ts b/sdk/dataprotection/arm-dataprotection/src/models/index.ts index 5565bb3e34cf..651ac88efe0e 100644 --- a/sdk/dataprotection/arm-dataprotection/src/models/index.ts +++ b/sdk/dataprotection/arm-dataprotection/src/models/index.ts @@ -106,6 +106,11 @@ export interface BackupVault { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly secureScore?: SecureScoreLevel; + /** + * Security Level of Backup Vault + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly bcdrSecurityLevel?: BcdrSecurityLevel; /** List of replicated regions for Backup Vault */ replicatedRegions?: string[]; } @@ -141,6 +146,8 @@ export interface SecuritySettings { softDeleteSettings?: SoftDeleteSettings; /** Immutability Settings at vault level */ immutabilitySettings?: ImmutabilitySettings; + /** Customer Managed Key details of the resource. */ + encryptionSettings?: EncryptionSettings; } /** Soft delete related settings */ @@ -157,6 +164,32 @@ export interface ImmutabilitySettings { state?: ImmutabilityState; } +/** Customer Managed Key details of the resource. */ +export interface EncryptionSettings { + /** Encryption state of the Backup Vault. */ + state?: EncryptionState; + /** The properties of the Key Vault which hosts CMK */ + keyVaultProperties?: CmkKeyVaultProperties; + /** The details of the managed identity used for CMK */ + kekIdentity?: CmkKekIdentity; + /** Enabling/Disabling the Double Encryption state */ + infrastructureEncryption?: InfrastructureEncryptionState; +} + +/** The properties of the Key Vault which hosts CMK */ +export interface CmkKeyVaultProperties { + /** The key uri of the Customer Managed Key */ + keyUri?: string; +} + +/** The details of the managed identity used for CMK */ +export interface CmkKekIdentity { + /** The identity type. 'SystemAssigned' and 'UserAssigned' are mutually exclusive. 'SystemAssigned' will use implicitly created managed identity. */ + identityType?: IdentityType; + /** The managed identity to be used which has access permissions to the Key Vault. Provide a value here in case identity types: 'UserAssigned' only. */ + identityId?: string; +} + /** Storage setting */ export interface StorageSetting { /** Gets or sets the type of the datastore. */ @@ -1836,6 +1869,8 @@ export interface KubernetesClusterRestoreCriteria namespaceMappings?: { [propertyName: string]: string }; /** Gets or sets the restore hook references. This property sets the hook reference to be executed during restore. */ restoreHookReferences?: NamespacedNameResource[]; + /** Gets or sets the resource modifier reference. This property sets the reference for resource modifier during restore. */ + resourceModifierReference?: NamespacedNameResource; } /** kubernetes Cluster Backup target info for restore operation from vault */ @@ -1867,6 +1902,8 @@ export interface KubernetesClusterVaultTierRestoreCriteria stagingResourceGroupId?: string; /** Gets or sets the staging Storage Account Id for creating backup extension object store data during restore from vault. */ stagingStorageAccountId?: string; + /** Gets or sets the resource modifier reference. This property sets the reference for resource modifier during restore. */ + resourceModifierReference?: NamespacedNameResource; } /** Backup Vault Resource */ @@ -2057,7 +2094,7 @@ export enum KnownAlertsState { /** Enabled */ Enabled = "Enabled", /** Disabled */ - Disabled = "Disabled" + Disabled = "Disabled", } /** @@ -2081,7 +2118,7 @@ export enum KnownProvisioningState { /** Unknown */ Unknown = "Unknown", /** Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -2118,7 +2155,7 @@ export enum KnownResourceMoveState { /** PartialSuccess */ PartialSuccess = "PartialSuccess", /** MoveSucceeded */ - MoveSucceeded = "MoveSucceeded" + MoveSucceeded = "MoveSucceeded", } /** @@ -2146,7 +2183,7 @@ export enum KnownSoftDeleteState { /** Soft Delete is enabled for the BackupVault but can be turned off */ On = "On", /** Soft Delete is permanently enabled for the BackupVault and the setting cannot be changed */ - AlwaysOn = "AlwaysOn" + AlwaysOn = "AlwaysOn", } /** @@ -2167,7 +2204,7 @@ export enum KnownImmutabilityState { /** Unlocked */ Unlocked = "Unlocked", /** Locked */ - Locked = "Locked" + Locked = "Locked", } /** @@ -2181,6 +2218,63 @@ export enum KnownImmutabilityState { */ export type ImmutabilityState = string; +/** Known values of {@link EncryptionState} that the service accepts. */ +export enum KnownEncryptionState { + /** CMK encryption is enabled on the Backup Vault */ + Enabled = "Enabled", + /** CMK encryption is disabled on the Backup Vault. User can not set this state once Encryption State is 'Enabled'. */ + Disabled = "Disabled", + /** CMK encryption is in inconsistent state on the Backup Vault. This state indicates that user needs to retry the encryption settings operation immediately to correct the state. */ + Inconsistent = "Inconsistent", +} + +/** + * Defines values for EncryptionState. \ + * {@link KnownEncryptionState} can be used interchangeably with EncryptionState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled**: CMK encryption is enabled on the Backup Vault \ + * **Disabled**: CMK encryption is disabled on the Backup Vault. User can not set this state once Encryption State is 'Enabled'. \ + * **Inconsistent**: CMK encryption is in inconsistent state on the Backup Vault. This state indicates that user needs to retry the encryption settings operation immediately to correct the state. + */ +export type EncryptionState = string; + +/** Known values of {@link IdentityType} that the service accepts. */ +export enum KnownIdentityType { + /** SystemAssigned */ + SystemAssigned = "SystemAssigned", + /** UserAssigned */ + UserAssigned = "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 + * **SystemAssigned** \ + * **UserAssigned** + */ +export type IdentityType = string; + +/** Known values of {@link InfrastructureEncryptionState} that the service accepts. */ +export enum KnownInfrastructureEncryptionState { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled", +} + +/** + * Defines values for InfrastructureEncryptionState. \ + * {@link KnownInfrastructureEncryptionState} can be used interchangeably with InfrastructureEncryptionState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type InfrastructureEncryptionState = string; + /** Known values of {@link StorageSettingStoreTypes} that the service accepts. */ export enum KnownStorageSettingStoreTypes { /** ArchiveStore */ @@ -2188,7 +2282,7 @@ export enum KnownStorageSettingStoreTypes { /** OperationalStore */ OperationalStore = "OperationalStore", /** VaultStore */ - VaultStore = "VaultStore" + VaultStore = "VaultStore", } /** @@ -2209,7 +2303,7 @@ export enum KnownStorageSettingTypes { /** LocallyRedundant */ LocallyRedundant = "LocallyRedundant", /** ZoneRedundant */ - ZoneRedundant = "ZoneRedundant" + ZoneRedundant = "ZoneRedundant", } /** @@ -2230,7 +2324,7 @@ export enum KnownCrossSubscriptionRestoreState { /** PermanentlyDisabled */ PermanentlyDisabled = "PermanentlyDisabled", /** Enabled */ - Enabled = "Enabled" + Enabled = "Enabled", } /** @@ -2249,7 +2343,7 @@ export enum KnownCrossRegionRestoreState { /** Disabled */ Disabled = "Disabled", /** Enabled */ - Enabled = "Enabled" + Enabled = "Enabled", } /** @@ -2273,7 +2367,7 @@ export enum KnownSecureScoreLevel { /** Maximum */ Maximum = "Maximum", /** NotSupported */ - NotSupported = "NotSupported" + NotSupported = "NotSupported", } /** @@ -2289,6 +2383,33 @@ export enum KnownSecureScoreLevel { */ export type SecureScoreLevel = string; +/** Known values of {@link BcdrSecurityLevel} that the service accepts. */ +export enum KnownBcdrSecurityLevel { + /** Poor */ + Poor = "Poor", + /** Fair */ + Fair = "Fair", + /** Good */ + Good = "Good", + /** Excellent */ + Excellent = "Excellent", + /** NotSupported */ + NotSupported = "NotSupported", +} + +/** + * Defines values for BcdrSecurityLevel. \ + * {@link KnownBcdrSecurityLevel} can be used interchangeably with BcdrSecurityLevel, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Poor** \ + * **Fair** \ + * **Good** \ + * **Excellent** \ + * **NotSupported** + */ +export type BcdrSecurityLevel = string; + /** Known values of {@link CreatedByType} that the service accepts. */ export enum KnownCreatedByType { /** User */ @@ -2298,7 +2419,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -2316,7 +2437,7 @@ export type CreatedByType = string; /** Known values of {@link ResourcePropertiesObjectType} that the service accepts. */ export enum KnownResourcePropertiesObjectType { /** DefaultResourceProperties */ - DefaultResourceProperties = "DefaultResourceProperties" + DefaultResourceProperties = "DefaultResourceProperties", } /** @@ -2335,7 +2456,7 @@ export enum KnownDataStoreTypes { /** VaultStore */ VaultStore = "VaultStore", /** ArchiveStore */ - ArchiveStore = "ArchiveStore" + ArchiveStore = "ArchiveStore", } /** @@ -2362,7 +2483,7 @@ export enum KnownStatus { /** SoftDeleted */ SoftDeleted = "SoftDeleted", /** SoftDeleting */ - SoftDeleting = "SoftDeleting" + SoftDeleting = "SoftDeleting", } /** @@ -2404,7 +2525,7 @@ export enum KnownCurrentProtectionState { /** SoftDeleted */ SoftDeleted = "SoftDeleted", /** UpdatingProtection */ - UpdatingProtection = "UpdatingProtection" + UpdatingProtection = "UpdatingProtection", } /** @@ -2432,7 +2553,7 @@ export enum KnownValidationType { /** ShallowValidation */ ShallowValidation = "ShallowValidation", /** DeepValidation */ - DeepValidation = "DeepValidation" + DeepValidation = "DeepValidation", } /** @@ -2448,7 +2569,7 @@ export type ValidationType = string; /** Known values of {@link RecoveryOption} that the service accepts. */ export enum KnownRecoveryOption { /** FailIfExists */ - FailIfExists = "FailIfExists" + FailIfExists = "FailIfExists", } /** @@ -2469,7 +2590,7 @@ export enum KnownSourceDataStoreType { /** OperationalStore */ OperationalStore = "OperationalStore", /** VaultStore */ - VaultStore = "VaultStore" + VaultStore = "VaultStore", } /** @@ -2491,7 +2612,7 @@ export enum KnownRehydrationPriority { /** High */ High = "High", /** Standard */ - Standard = "Standard" + Standard = "Standard", } /** @@ -2510,7 +2631,7 @@ export enum KnownSyncType { /** Default */ Default = "Default", /** ForceResync */ - ForceResync = "ForceResync" + ForceResync = "ForceResync", } /** @@ -2530,7 +2651,7 @@ export enum KnownRestoreSourceDataStoreType { /** VaultStore */ VaultStore = "VaultStore", /** ArchiveStore */ - ArchiveStore = "ArchiveStore" + ArchiveStore = "ArchiveStore", } /** @@ -2555,7 +2676,7 @@ export enum KnownRehydrationStatus { /** Deleted */ Deleted = "DELETED", /** Failed */ - Failed = "FAILED" + Failed = "FAILED", } /** @@ -2576,7 +2697,7 @@ export enum KnownRecoveryPointCompletionState { /** Completed */ Completed = "Completed", /** Partial */ - Partial = "Partial" + Partial = "Partial", } /** @@ -2594,7 +2715,7 @@ export enum KnownFeatureType { /** Invalid */ Invalid = "Invalid", /** DataSourceType */ - DataSourceType = "DataSourceType" + DataSourceType = "DataSourceType", } /** @@ -2620,7 +2741,7 @@ export enum KnownFeatureSupportStatus { /** PublicPreview */ PublicPreview = "PublicPreview", /** GenerallyAvailable */ - GenerallyAvailable = "GenerallyAvailable" + GenerallyAvailable = "GenerallyAvailable", } /** @@ -2642,7 +2763,7 @@ export enum KnownPersistentVolumeRestoreMode { /** RestoreWithVolumeData */ RestoreWithVolumeData = "RestoreWithVolumeData", /** RestoreWithoutVolumeData */ - RestoreWithoutVolumeData = "RestoreWithoutVolumeData" + RestoreWithoutVolumeData = "RestoreWithoutVolumeData", } /** @@ -2660,7 +2781,7 @@ export enum KnownExistingResourcePolicy { /** Skip */ Skip = "Skip", /** Patch */ - Patch = "Patch" + Patch = "Patch", } /** @@ -2680,7 +2801,7 @@ export enum KnownRestoreTargetLocationType { /** AzureBlobs */ AzureBlobs = "AzureBlobs", /** AzureFiles */ - AzureFiles = "AzureFiles" + AzureFiles = "AzureFiles", } /** @@ -2705,7 +2826,7 @@ export enum KnownAbsoluteMarker { /** FirstOfWeek */ FirstOfWeek = "FirstOfWeek", /** FirstOfYear */ - FirstOfYear = "FirstOfYear" + FirstOfYear = "FirstOfYear", } /** @@ -2736,7 +2857,7 @@ export enum KnownDayOfWeek { /** Tuesday */ Tuesday = "Tuesday", /** Wednesday */ - Wednesday = "Wednesday" + Wednesday = "Wednesday", } /** @@ -2779,7 +2900,7 @@ export enum KnownMonth { /** October */ October = "October", /** September */ - September = "September" + September = "September", } /** @@ -2813,7 +2934,7 @@ export enum KnownWeekNumber { /** Second */ Second = "Second", /** Third */ - Third = "Third" + Third = "Third", } /** @@ -2834,7 +2955,7 @@ export enum KnownSecretStoreType { /** Invalid */ Invalid = "Invalid", /** AzureKeyVault */ - AzureKeyVault = "AzureKeyVault" + AzureKeyVault = "AzureKeyVault", } /** @@ -2906,7 +3027,8 @@ export interface BackupVaultsCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the checkNameAvailability operation. */ -export type BackupVaultsCheckNameAvailabilityResponse = CheckNameAvailabilityResult; +export type BackupVaultsCheckNameAvailabilityResponse = + CheckNameAvailabilityResult; /** Optional parameters. */ export interface BackupVaultsGetInSubscriptionNextOptionalParams @@ -2920,7 +3042,8 @@ export interface BackupVaultsGetInResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getInResourceGroupNext operation. */ -export type BackupVaultsGetInResourceGroupNextResponse = BackupVaultResourceList; +export type BackupVaultsGetInResourceGroupNextResponse = + BackupVaultResourceList; /** Optional parameters. */ export interface OperationResultGetOptionalParams @@ -2962,7 +3085,8 @@ export interface DataProtectionCheckFeatureSupportOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the checkFeatureSupport operation. */ -export type DataProtectionCheckFeatureSupportResponse = FeatureValidationResponseBaseUnion; +export type DataProtectionCheckFeatureSupportResponse = + FeatureValidationResponseBaseUnion; /** Optional parameters. */ export interface DataProtectionOperationsListOptionalParams @@ -3074,7 +3198,8 @@ export interface BackupInstancesGetBackupInstanceOperationResultOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getBackupInstanceOperationResult operation. */ -export type BackupInstancesGetBackupInstanceOperationResultResponse = BackupInstanceResource; +export type BackupInstancesGetBackupInstanceOperationResultResponse = + BackupInstanceResource; /** Optional parameters. */ export interface BackupInstancesTriggerCrossRegionRestoreOptionalParams @@ -3086,7 +3211,8 @@ export interface BackupInstancesTriggerCrossRegionRestoreOptionalParams } /** Contains response data for the triggerCrossRegionRestore operation. */ -export type BackupInstancesTriggerCrossRegionRestoreResponse = OperationJobExtendedInfo; +export type BackupInstancesTriggerCrossRegionRestoreResponse = + OperationJobExtendedInfo; /** Optional parameters. */ export interface BackupInstancesValidateCrossRegionRestoreOptionalParams @@ -3098,7 +3224,8 @@ export interface BackupInstancesValidateCrossRegionRestoreOptionalParams } /** Contains response data for the validateCrossRegionRestore operation. */ -export type BackupInstancesValidateCrossRegionRestoreResponse = OperationJobExtendedInfo; +export type BackupInstancesValidateCrossRegionRestoreResponse = + OperationJobExtendedInfo; /** Optional parameters. */ export interface BackupInstancesTriggerRehydrateOptionalParams @@ -3110,7 +3237,8 @@ export interface BackupInstancesTriggerRehydrateOptionalParams } /** Contains response data for the triggerRehydrate operation. */ -export type BackupInstancesTriggerRehydrateResponse = BackupInstancesTriggerRehydrateHeaders; +export type BackupInstancesTriggerRehydrateResponse = + BackupInstancesTriggerRehydrateHeaders; /** Optional parameters. */ export interface BackupInstancesTriggerRestoreOptionalParams @@ -3179,7 +3307,8 @@ export interface BackupInstancesValidateForRestoreOptionalParams } /** Contains response data for the validateForRestore operation. */ -export type BackupInstancesValidateForRestoreResponse = OperationJobExtendedInfo; +export type BackupInstancesValidateForRestoreResponse = + OperationJobExtendedInfo; /** Optional parameters. */ export interface BackupInstancesListNextOptionalParams @@ -3212,7 +3341,8 @@ export interface RecoveryPointsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type RecoveryPointsListNextResponse = AzureBackupRecoveryPointResourceList; +export type RecoveryPointsListNextResponse = + AzureBackupRecoveryPointResourceList; /** Optional parameters. */ export interface FetchSecondaryRecoveryPointsListOptionalParams @@ -3224,14 +3354,16 @@ export interface FetchSecondaryRecoveryPointsListOptionalParams } /** Contains response data for the list operation. */ -export type FetchSecondaryRecoveryPointsListResponse = AzureBackupRecoveryPointResourceList; +export type FetchSecondaryRecoveryPointsListResponse = + AzureBackupRecoveryPointResourceList; /** Optional parameters. */ export interface FetchSecondaryRecoveryPointsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type FetchSecondaryRecoveryPointsListNextResponse = AzureBackupRecoveryPointResourceList; +export type FetchSecondaryRecoveryPointsListNextResponse = + AzureBackupRecoveryPointResourceList; /** Optional parameters. */ export interface FetchCrossRegionRestoreJobGetOptionalParams @@ -3248,14 +3380,16 @@ export interface FetchCrossRegionRestoreJobsListOptionalParams } /** Contains response data for the list operation. */ -export type FetchCrossRegionRestoreJobsListResponse = AzureBackupJobResourceList; +export type FetchCrossRegionRestoreJobsListResponse = + AzureBackupJobResourceList; /** Optional parameters. */ export interface FetchCrossRegionRestoreJobsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type FetchCrossRegionRestoreJobsListNextResponse = AzureBackupJobResourceList; +export type FetchCrossRegionRestoreJobsListNextResponse = + AzureBackupJobResourceList; /** Optional parameters. */ export interface JobsListOptionalParams extends coreClient.OperationOptions {} @@ -3281,7 +3415,8 @@ export interface RestorableTimeRangesFindOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the find operation. */ -export type RestorableTimeRangesFindResponse = AzureBackupFindRestorableTimeRangesResponseResource; +export type RestorableTimeRangesFindResponse = + AzureBackupFindRestorableTimeRangesResponseResource; /** Optional parameters. */ export interface ExportJobsTriggerOptionalParams @@ -3307,7 +3442,8 @@ export interface DeletedBackupInstancesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type DeletedBackupInstancesListResponse = DeletedBackupInstanceResourceList; +export type DeletedBackupInstancesListResponse = + DeletedBackupInstanceResourceList; /** Optional parameters. */ export interface DeletedBackupInstancesGetOptionalParams @@ -3330,21 +3466,24 @@ export interface DeletedBackupInstancesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type DeletedBackupInstancesListNextResponse = DeletedBackupInstanceResourceList; +export type DeletedBackupInstancesListNextResponse = + DeletedBackupInstanceResourceList; /** Optional parameters. */ export interface ResourceGuardsGetResourcesInSubscriptionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getResourcesInSubscription operation. */ -export type ResourceGuardsGetResourcesInSubscriptionResponse = ResourceGuardResourceList; +export type ResourceGuardsGetResourcesInSubscriptionResponse = + ResourceGuardResourceList; /** Optional parameters. */ export interface ResourceGuardsGetResourcesInResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getResourcesInResourceGroup operation. */ -export type ResourceGuardsGetResourcesInResourceGroupResponse = ResourceGuardResourceList; +export type ResourceGuardsGetResourcesInResourceGroupResponse = + ResourceGuardResourceList; /** Optional parameters. */ export interface ResourceGuardsPutOptionalParams @@ -3376,147 +3515,168 @@ export interface ResourceGuardsGetDisableSoftDeleteRequestsObjectsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getDisableSoftDeleteRequestsObjects operation. */ -export type ResourceGuardsGetDisableSoftDeleteRequestsObjectsResponse = DppBaseResourceList; +export type ResourceGuardsGetDisableSoftDeleteRequestsObjectsResponse = + DppBaseResourceList; /** Optional parameters. */ export interface ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getDeleteResourceGuardProxyRequestsObjects operation. */ -export type ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsResponse = DppBaseResourceList; +export type ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsResponse = + DppBaseResourceList; /** Optional parameters. */ export interface ResourceGuardsGetBackupSecurityPINRequestsObjectsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getBackupSecurityPINRequestsObjects operation. */ -export type ResourceGuardsGetBackupSecurityPINRequestsObjectsResponse = DppBaseResourceList; +export type ResourceGuardsGetBackupSecurityPINRequestsObjectsResponse = + DppBaseResourceList; /** Optional parameters. */ export interface ResourceGuardsGetDeleteProtectedItemRequestsObjectsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getDeleteProtectedItemRequestsObjects operation. */ -export type ResourceGuardsGetDeleteProtectedItemRequestsObjectsResponse = DppBaseResourceList; +export type ResourceGuardsGetDeleteProtectedItemRequestsObjectsResponse = + DppBaseResourceList; /** Optional parameters. */ export interface ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getUpdateProtectionPolicyRequestsObjects operation. */ -export type ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsResponse = DppBaseResourceList; +export type ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsResponse = + DppBaseResourceList; /** Optional parameters. */ export interface ResourceGuardsGetUpdateProtectedItemRequestsObjectsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getUpdateProtectedItemRequestsObjects operation. */ -export type ResourceGuardsGetUpdateProtectedItemRequestsObjectsResponse = DppBaseResourceList; +export type ResourceGuardsGetUpdateProtectedItemRequestsObjectsResponse = + DppBaseResourceList; /** Optional parameters. */ export interface ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getDefaultDisableSoftDeleteRequestsObject operation. */ -export type ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectResponse = DppBaseResource; +export type ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectResponse = + DppBaseResource; /** Optional parameters. */ export interface ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getDefaultDeleteResourceGuardProxyRequestsObject operation. */ -export type ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectResponse = DppBaseResource; +export type ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectResponse = + DppBaseResource; /** Optional parameters. */ export interface ResourceGuardsGetDefaultBackupSecurityPINRequestsObjectOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getDefaultBackupSecurityPINRequestsObject operation. */ -export type ResourceGuardsGetDefaultBackupSecurityPINRequestsObjectResponse = DppBaseResource; +export type ResourceGuardsGetDefaultBackupSecurityPINRequestsObjectResponse = + DppBaseResource; /** Optional parameters. */ export interface ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getDefaultDeleteProtectedItemRequestsObject operation. */ -export type ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectResponse = DppBaseResource; +export type ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectResponse = + DppBaseResource; /** Optional parameters. */ export interface ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getDefaultUpdateProtectionPolicyRequestsObject operation. */ -export type ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectResponse = DppBaseResource; +export type ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectResponse = + DppBaseResource; /** Optional parameters. */ export interface ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getDefaultUpdateProtectedItemRequestsObject operation. */ -export type ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectResponse = DppBaseResource; +export type ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectResponse = + DppBaseResource; /** Optional parameters. */ export interface ResourceGuardsGetResourcesInSubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getResourcesInSubscriptionNext operation. */ -export type ResourceGuardsGetResourcesInSubscriptionNextResponse = ResourceGuardResourceList; +export type ResourceGuardsGetResourcesInSubscriptionNextResponse = + ResourceGuardResourceList; /** Optional parameters. */ export interface ResourceGuardsGetResourcesInResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getResourcesInResourceGroupNext operation. */ -export type ResourceGuardsGetResourcesInResourceGroupNextResponse = ResourceGuardResourceList; +export type ResourceGuardsGetResourcesInResourceGroupNextResponse = + ResourceGuardResourceList; /** Optional parameters. */ export interface ResourceGuardsGetDisableSoftDeleteRequestsObjectsNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getDisableSoftDeleteRequestsObjectsNext operation. */ -export type ResourceGuardsGetDisableSoftDeleteRequestsObjectsNextResponse = DppBaseResourceList; +export type ResourceGuardsGetDisableSoftDeleteRequestsObjectsNextResponse = + DppBaseResourceList; /** Optional parameters. */ export interface ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getDeleteResourceGuardProxyRequestsObjectsNext operation. */ -export type ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsNextResponse = DppBaseResourceList; +export type ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsNextResponse = + DppBaseResourceList; /** Optional parameters. */ export interface ResourceGuardsGetBackupSecurityPINRequestsObjectsNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getBackupSecurityPINRequestsObjectsNext operation. */ -export type ResourceGuardsGetBackupSecurityPINRequestsObjectsNextResponse = DppBaseResourceList; +export type ResourceGuardsGetBackupSecurityPINRequestsObjectsNextResponse = + DppBaseResourceList; /** Optional parameters. */ export interface ResourceGuardsGetDeleteProtectedItemRequestsObjectsNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getDeleteProtectedItemRequestsObjectsNext operation. */ -export type ResourceGuardsGetDeleteProtectedItemRequestsObjectsNextResponse = DppBaseResourceList; +export type ResourceGuardsGetDeleteProtectedItemRequestsObjectsNextResponse = + DppBaseResourceList; /** Optional parameters. */ export interface ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getUpdateProtectionPolicyRequestsObjectsNext operation. */ -export type ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsNextResponse = DppBaseResourceList; +export type ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsNextResponse = + DppBaseResourceList; /** Optional parameters. */ export interface ResourceGuardsGetUpdateProtectedItemRequestsObjectsNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getUpdateProtectedItemRequestsObjectsNext operation. */ -export type ResourceGuardsGetUpdateProtectedItemRequestsObjectsNextResponse = DppBaseResourceList; +export type ResourceGuardsGetUpdateProtectedItemRequestsObjectsNextResponse = + DppBaseResourceList; /** Optional parameters. */ export interface DppResourceGuardProxyListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type DppResourceGuardProxyListResponse = ResourceGuardProxyBaseResourceList; +export type DppResourceGuardProxyListResponse = + ResourceGuardProxyBaseResourceList; /** Optional parameters. */ export interface DppResourceGuardProxyGetOptionalParams @@ -3530,7 +3690,8 @@ export interface DppResourceGuardProxyCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type DppResourceGuardProxyCreateOrUpdateResponse = ResourceGuardProxyBaseResource; +export type DppResourceGuardProxyCreateOrUpdateResponse = + ResourceGuardProxyBaseResource; /** Optional parameters. */ export interface DppResourceGuardProxyDeleteOptionalParams @@ -3548,7 +3709,8 @@ export interface DppResourceGuardProxyListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type DppResourceGuardProxyListNextResponse = ResourceGuardProxyBaseResourceList; +export type DppResourceGuardProxyListNextResponse = + ResourceGuardProxyBaseResourceList; /** Optional parameters. */ export interface DataProtectionClientOptionalParams diff --git a/sdk/dataprotection/arm-dataprotection/src/models/mappers.ts b/sdk/dataprotection/arm-dataprotection/src/models/mappers.ts index 748e86ac9e9b..bac696cfb82a 100644 --- a/sdk/dataprotection/arm-dataprotection/src/models/mappers.ts +++ b/sdk/dataprotection/arm-dataprotection/src/models/mappers.ts @@ -17,36 +17,36 @@ export const BackupVault: coreClient.CompositeMapper = { serializedName: "monitoringSettings", type: { name: "Composite", - className: "MonitoringSettings" - } + className: "MonitoringSettings", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resourceMoveState: { serializedName: "resourceMoveState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resourceMoveDetails: { serializedName: "resourceMoveDetails", type: { name: "Composite", - className: "ResourceMoveDetails" - } + className: "ResourceMoveDetails", + }, }, securitySettings: { serializedName: "securitySettings", type: { name: "Composite", - className: "SecuritySettings" - } + className: "SecuritySettings", + }, }, storageSettings: { serializedName: "storageSettings", @@ -56,31 +56,38 @@ export const BackupVault: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "StorageSetting" - } - } - } + className: "StorageSetting", + }, + }, + }, }, isVaultProtectedByResourceGuard: { serializedName: "isVaultProtectedByResourceGuard", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, featureSettings: { serializedName: "featureSettings", type: { name: "Composite", - className: "FeatureSettings" - } + className: "FeatureSettings", + }, }, secureScore: { serializedName: "secureScore", readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + bcdrSecurityLevel: { + serializedName: "bcdrSecurityLevel", + readOnly: true, + type: { + name: "String", + }, }, replicatedRegions: { serializedName: "replicatedRegions", @@ -88,13 +95,13 @@ export const BackupVault: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const MonitoringSettings: coreClient.CompositeMapper = { @@ -106,11 +113,11 @@ export const MonitoringSettings: coreClient.CompositeMapper = { serializedName: "azureMonitorAlertSettings", type: { name: "Composite", - className: "AzureMonitorAlertSettings" - } - } - } - } + className: "AzureMonitorAlertSettings", + }, + }, + }, + }, }; export const AzureMonitorAlertSettings: coreClient.CompositeMapper = { @@ -121,11 +128,11 @@ export const AzureMonitorAlertSettings: coreClient.CompositeMapper = { alertsForAllJobFailures: { serializedName: "alertsForAllJobFailures", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceMoveDetails: coreClient.CompositeMapper = { @@ -136,35 +143,35 @@ export const ResourceMoveDetails: coreClient.CompositeMapper = { operationId: { serializedName: "operationId", type: { - name: "String" - } + name: "String", + }, }, startTimeUtc: { serializedName: "startTimeUtc", type: { - name: "String" - } + name: "String", + }, }, completionTimeUtc: { serializedName: "completionTimeUtc", type: { - name: "String" - } + name: "String", + }, }, sourceResourcePath: { serializedName: "sourceResourcePath", type: { - name: "String" - } + name: "String", + }, }, targetResourcePath: { serializedName: "targetResourcePath", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SecuritySettings: coreClient.CompositeMapper = { @@ -176,18 +183,25 @@ export const SecuritySettings: coreClient.CompositeMapper = { serializedName: "softDeleteSettings", type: { name: "Composite", - className: "SoftDeleteSettings" - } + className: "SoftDeleteSettings", + }, }, immutabilitySettings: { serializedName: "immutabilitySettings", type: { name: "Composite", - className: "ImmutabilitySettings" - } - } - } - } + className: "ImmutabilitySettings", + }, + }, + encryptionSettings: { + serializedName: "encryptionSettings", + type: { + name: "Composite", + className: "EncryptionSettings", + }, + }, + }, + }, }; export const SoftDeleteSettings: coreClient.CompositeMapper = { @@ -198,17 +212,17 @@ export const SoftDeleteSettings: coreClient.CompositeMapper = { state: { serializedName: "state", type: { - name: "String" - } + name: "String", + }, }, retentionDurationInDays: { serializedName: "retentionDurationInDays", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ImmutabilitySettings: coreClient.CompositeMapper = { @@ -219,11 +233,82 @@ export const ImmutabilitySettings: coreClient.CompositeMapper = { state: { serializedName: "state", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const EncryptionSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EncryptionSettings", + modelProperties: { + state: { + serializedName: "state", + type: { + name: "String", + }, + }, + keyVaultProperties: { + serializedName: "keyVaultProperties", + type: { + name: "Composite", + className: "CmkKeyVaultProperties", + }, + }, + kekIdentity: { + serializedName: "kekIdentity", + type: { + name: "Composite", + className: "CmkKekIdentity", + }, + }, + infrastructureEncryption: { + serializedName: "infrastructureEncryption", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const CmkKeyVaultProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CmkKeyVaultProperties", + modelProperties: { + keyUri: { + serializedName: "keyUri", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const CmkKekIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CmkKekIdentity", + modelProperties: { + identityType: { + serializedName: "identityType", + type: { + name: "String", + }, + }, + identityId: { + serializedName: "identityId", + type: { + name: "String", + }, + }, + }, + }, }; export const StorageSetting: coreClient.CompositeMapper = { @@ -234,17 +319,17 @@ export const StorageSetting: coreClient.CompositeMapper = { datastoreType: { serializedName: "datastoreType", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const FeatureSettings: coreClient.CompositeMapper = { @@ -256,18 +341,18 @@ export const FeatureSettings: coreClient.CompositeMapper = { serializedName: "crossSubscriptionRestoreSettings", type: { name: "Composite", - className: "CrossSubscriptionRestoreSettings" - } + className: "CrossSubscriptionRestoreSettings", + }, }, crossRegionRestoreSettings: { serializedName: "crossRegionRestoreSettings", type: { name: "Composite", - className: "CrossRegionRestoreSettings" - } - } - } - } + className: "CrossRegionRestoreSettings", + }, + }, + }, + }, }; export const CrossSubscriptionRestoreSettings: coreClient.CompositeMapper = { @@ -278,11 +363,11 @@ export const CrossSubscriptionRestoreSettings: coreClient.CompositeMapper = { state: { serializedName: "state", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CrossRegionRestoreSettings: coreClient.CompositeMapper = { @@ -293,11 +378,11 @@ export const CrossRegionRestoreSettings: coreClient.CompositeMapper = { state: { serializedName: "state", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DppIdentityDetails: coreClient.CompositeMapper = { @@ -309,33 +394,33 @@ export const DppIdentityDetails: 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: "UserAssignedIdentity" } - } - } - } - } - } + type: { name: "Composite", className: "UserAssignedIdentity" }, + }, + }, + }, + }, + }, }; export const UserAssignedIdentity: coreClient.CompositeMapper = { @@ -347,18 +432,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 DppBaseTrackedResource: coreClient.CompositeMapper = { @@ -369,52 +454,52 @@ export const DppBaseTrackedResource: coreClient.CompositeMapper = { eTag: { serializedName: "eTag", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { 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 = { @@ -425,41 +510,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 DppResourceList: coreClient.CompositeMapper = { @@ -470,11 +555,11 @@ export const DppResourceList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudError: coreClient.CompositeMapper = { @@ -486,11 +571,11 @@ export const CloudError: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorModel" - } - } - } - } + className: "ErrorModel", + }, + }, + }, + }, }; export const ErrorModel: coreClient.CompositeMapper = { @@ -506,17 +591,17 @@ export const ErrorModel: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, }, code: { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -526,27 +611,27 @@ export const ErrorModel: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorModel" - } - } - } + className: "ErrorModel", + }, + }, + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ErrorAdditionalInfo: coreClient.CompositeMapper = { @@ -559,18 +644,18 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationExtendedInfo: coreClient.CompositeMapper = { @@ -580,18 +665,18 @@ export const OperationExtendedInfo: coreClient.CompositeMapper = { uberParent: "OperationExtendedInfo", polymorphicDiscriminator: { serializedName: "objectType", - clientName: "objectType" + clientName: "objectType", }, modelProperties: { objectType: { serializedName: "objectType", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationResource: coreClient.CompositeMapper = { @@ -602,49 +687,49 @@ export const OperationResource: coreClient.CompositeMapper = { endTime: { serializedName: "endTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "ErrorModel" - } + className: "ErrorModel", + }, }, id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "OperationExtendedInfo" - } + className: "OperationExtendedInfo", + }, }, startTime: { serializedName: "startTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, status: { serializedName: "status", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PatchResourceRequestInput: coreClient.CompositeMapper = { @@ -656,25 +741,25 @@ export const PatchResourceRequestInput: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "DppIdentityDetails" - } + className: "DppIdentityDetails", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "PatchBackupVaultInput" - } + className: "PatchBackupVaultInput", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const PatchBackupVaultInput: coreClient.CompositeMapper = { @@ -686,25 +771,25 @@ export const PatchBackupVaultInput: coreClient.CompositeMapper = { serializedName: "monitoringSettings", type: { name: "Composite", - className: "MonitoringSettings" - } + className: "MonitoringSettings", + }, }, securitySettings: { serializedName: "securitySettings", type: { name: "Composite", - className: "SecuritySettings" - } + className: "SecuritySettings", + }, }, featureSettings: { serializedName: "featureSettings", type: { name: "Composite", - className: "FeatureSettings" - } - } - } - } + className: "FeatureSettings", + }, + }, + }, + }, }; export const CheckNameAvailabilityRequest: coreClient.CompositeMapper = { @@ -715,17 +800,17 @@ export const CheckNameAvailabilityRequest: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CheckNameAvailabilityResult: coreClient.CompositeMapper = { @@ -736,23 +821,23 @@ export const CheckNameAvailabilityResult: coreClient.CompositeMapper = { message: { serializedName: "message", type: { - name: "String" - } + name: "String", + }, }, nameAvailable: { serializedName: "nameAvailable", type: { - name: "Boolean" - } + name: "Boolean", + }, }, reason: { serializedName: "reason", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const FeatureValidationRequestBase: coreClient.CompositeMapper = { @@ -762,18 +847,18 @@ export const FeatureValidationRequestBase: coreClient.CompositeMapper = { uberParent: "FeatureValidationRequestBase", polymorphicDiscriminator: { serializedName: "objectType", - clientName: "objectType" + clientName: "objectType", }, modelProperties: { objectType: { serializedName: "objectType", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const FeatureValidationResponseBase: coreClient.CompositeMapper = { @@ -783,18 +868,18 @@ export const FeatureValidationResponseBase: coreClient.CompositeMapper = { uberParent: "FeatureValidationResponseBase", polymorphicDiscriminator: { serializedName: "objectType", - clientName: "objectType" + clientName: "objectType", }, modelProperties: { objectType: { serializedName: "objectType", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClientDiscoveryResponse: coreClient.CompositeMapper = { @@ -805,8 +890,8 @@ export const ClientDiscoveryResponse: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -815,13 +900,13 @@ export const ClientDiscoveryResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ClientDiscoveryValueForSingleApi" - } - } - } - } - } - } + className: "ClientDiscoveryValueForSingleApi", + }, + }, + }, + }, + }, + }, }; export const ClientDiscoveryValueForSingleApi: coreClient.CompositeMapper = { @@ -833,36 +918,36 @@ export const ClientDiscoveryValueForSingleApi: coreClient.CompositeMapper = { serializedName: "display", type: { name: "Composite", - className: "ClientDiscoveryDisplay" - } + className: "ClientDiscoveryDisplay", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, isDataAction: { serializedName: "isDataAction", type: { - name: "Boolean" - } + name: "Boolean", + }, }, origin: { serializedName: "origin", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "ClientDiscoveryForProperties" - } - } - } - } + className: "ClientDiscoveryForProperties", + }, + }, + }, + }, }; export const ClientDiscoveryDisplay: coreClient.CompositeMapper = { @@ -873,29 +958,29 @@ export const ClientDiscoveryDisplay: coreClient.CompositeMapper = { description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", type: { - name: "String" - } + name: "String", + }, }, provider: { serializedName: "provider", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClientDiscoveryForProperties: coreClient.CompositeMapper = { @@ -907,33 +992,34 @@ export const ClientDiscoveryForProperties: coreClient.CompositeMapper = { serializedName: "serviceSpecification", type: { name: "Composite", - className: "ClientDiscoveryForServiceSpecification" - } - } - } - } -}; - -export const ClientDiscoveryForServiceSpecification: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ClientDiscoveryForServiceSpecification", - modelProperties: { - logSpecifications: { - serializedName: "logSpecifications", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ClientDiscoveryForLogSpecification" - } - } - } - } - } - } -}; + className: "ClientDiscoveryForServiceSpecification", + }, + }, + }, + }, +}; + +export const ClientDiscoveryForServiceSpecification: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ClientDiscoveryForServiceSpecification", + modelProperties: { + logSpecifications: { + serializedName: "logSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ClientDiscoveryForLogSpecification", + }, + }, + }, + }, + }, + }, + }; export const ClientDiscoveryForLogSpecification: coreClient.CompositeMapper = { type: { @@ -943,23 +1029,23 @@ export const ClientDiscoveryForLogSpecification: coreClient.CompositeMapper = { blobDuration: { serializedName: "blobDuration", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BaseBackupPolicy: coreClient.CompositeMapper = { @@ -969,7 +1055,7 @@ export const BaseBackupPolicy: coreClient.CompositeMapper = { uberParent: "BaseBackupPolicy", polymorphicDiscriminator: { serializedName: "objectType", - clientName: "objectType" + clientName: "objectType", }, modelProperties: { datasourceTypes: { @@ -979,20 +1065,20 @@ export const BaseBackupPolicy: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, objectType: { serializedName: "objectType", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DppResource: coreClient.CompositeMapper = { @@ -1004,32 +1090,32 @@ export const DppResource: 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 BackupInstance: coreClient.CompositeMapper = { @@ -1040,87 +1126,87 @@ export const BackupInstance: coreClient.CompositeMapper = { friendlyName: { serializedName: "friendlyName", type: { - name: "String" - } + name: "String", + }, }, dataSourceInfo: { serializedName: "dataSourceInfo", type: { name: "Composite", - className: "Datasource" - } + className: "Datasource", + }, }, dataSourceSetInfo: { serializedName: "dataSourceSetInfo", type: { name: "Composite", - className: "DatasourceSet" - } + className: "DatasourceSet", + }, }, policyInfo: { serializedName: "policyInfo", type: { name: "Composite", - className: "PolicyInfo" - } + className: "PolicyInfo", + }, }, protectionStatus: { serializedName: "protectionStatus", type: { name: "Composite", - className: "ProtectionStatusDetails" - } + className: "ProtectionStatusDetails", + }, }, currentProtectionState: { serializedName: "currentProtectionState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, protectionErrorDetails: { serializedName: "protectionErrorDetails", type: { name: "Composite", - className: "UserFacingError" - } + className: "UserFacingError", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, datasourceAuthCredentials: { serializedName: "datasourceAuthCredentials", type: { name: "Composite", - className: "AuthCredentials" - } + className: "AuthCredentials", + }, }, validationType: { serializedName: "validationType", type: { - name: "String" - } + name: "String", + }, }, identityDetails: { serializedName: "identityDetails", type: { name: "Composite", - className: "IdentityDetails" - } + className: "IdentityDetails", + }, }, objectType: { serializedName: "objectType", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Datasource: coreClient.CompositeMapper = { @@ -1131,55 +1217,55 @@ export const Datasource: coreClient.CompositeMapper = { datasourceType: { serializedName: "datasourceType", type: { - name: "String" - } + name: "String", + }, }, objectType: { serializedName: "objectType", type: { - name: "String" - } + name: "String", + }, }, resourceID: { serializedName: "resourceID", required: true, type: { - name: "String" - } + name: "String", + }, }, resourceLocation: { serializedName: "resourceLocation", type: { - name: "String" - } + name: "String", + }, }, resourceName: { serializedName: "resourceName", type: { - name: "String" - } + name: "String", + }, }, resourceType: { serializedName: "resourceType", type: { - name: "String" - } + name: "String", + }, }, resourceUri: { serializedName: "resourceUri", type: { - name: "String" - } + name: "String", + }, }, resourceProperties: { serializedName: "resourceProperties", type: { name: "Composite", - className: "BaseResourceProperties" - } - } - } - } + className: "BaseResourceProperties", + }, + }, + }, + }, }; export const BaseResourceProperties: coreClient.CompositeMapper = { @@ -1189,18 +1275,18 @@ export const BaseResourceProperties: coreClient.CompositeMapper = { uberParent: "BaseResourceProperties", polymorphicDiscriminator: { serializedName: "objectType", - clientName: "objectType" + clientName: "objectType", }, modelProperties: { objectType: { serializedName: "objectType", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DatasourceSet: coreClient.CompositeMapper = { @@ -1211,55 +1297,55 @@ export const DatasourceSet: coreClient.CompositeMapper = { datasourceType: { serializedName: "datasourceType", type: { - name: "String" - } + name: "String", + }, }, objectType: { serializedName: "objectType", type: { - name: "String" - } + name: "String", + }, }, resourceID: { serializedName: "resourceID", required: true, type: { - name: "String" - } + name: "String", + }, }, resourceLocation: { serializedName: "resourceLocation", type: { - name: "String" - } + name: "String", + }, }, resourceName: { serializedName: "resourceName", type: { - name: "String" - } + name: "String", + }, }, resourceType: { serializedName: "resourceType", type: { - name: "String" - } + name: "String", + }, }, resourceUri: { serializedName: "resourceUri", type: { - name: "String" - } + name: "String", + }, }, resourceProperties: { serializedName: "resourceProperties", type: { name: "Composite", - className: "BaseResourceProperties" - } - } - } - } + className: "BaseResourceProperties", + }, + }, + }, + }, }; export const PolicyInfo: coreClient.CompositeMapper = { @@ -1271,25 +1357,25 @@ export const PolicyInfo: coreClient.CompositeMapper = { serializedName: "policyId", required: true, type: { - name: "String" - } + name: "String", + }, }, policyVersion: { serializedName: "policyVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, policyParameters: { serializedName: "policyParameters", type: { name: "Composite", - className: "PolicyParameters" - } - } - } - } + className: "PolicyParameters", + }, + }, + }, + }, }; export const PolicyParameters: coreClient.CompositeMapper = { @@ -1304,10 +1390,10 @@ export const PolicyParameters: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataStoreParameters" - } - } - } + className: "DataStoreParameters", + }, + }, + }, }, backupDatasourceParametersList: { serializedName: "backupDatasourceParametersList", @@ -1316,13 +1402,13 @@ export const PolicyParameters: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BackupDatasourceParameters" - } - } - } - } - } - } + className: "BackupDatasourceParameters", + }, + }, + }, + }, + }, + }, }; export const DataStoreParameters: coreClient.CompositeMapper = { @@ -1332,25 +1418,25 @@ export const DataStoreParameters: coreClient.CompositeMapper = { uberParent: "DataStoreParameters", polymorphicDiscriminator: { serializedName: "objectType", - clientName: "objectType" + clientName: "objectType", }, modelProperties: { objectType: { serializedName: "objectType", required: true, type: { - name: "String" - } + name: "String", + }, }, dataStoreType: { serializedName: "dataStoreType", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BackupDatasourceParameters: coreClient.CompositeMapper = { @@ -1360,18 +1446,18 @@ export const BackupDatasourceParameters: coreClient.CompositeMapper = { uberParent: "BackupDatasourceParameters", polymorphicDiscriminator: { serializedName: "objectType", - clientName: "objectType" + clientName: "objectType", }, modelProperties: { objectType: { serializedName: "objectType", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ProtectionStatusDetails: coreClient.CompositeMapper = { @@ -1383,17 +1469,17 @@ export const ProtectionStatusDetails: coreClient.CompositeMapper = { serializedName: "errorDetails", type: { name: "Composite", - className: "UserFacingError" - } + className: "UserFacingError", + }, }, status: { serializedName: "status", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UserFacingError: coreClient.CompositeMapper = { @@ -1404,8 +1490,8 @@ export const UserFacingError: coreClient.CompositeMapper = { code: { serializedName: "code", type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -1414,42 +1500,42 @@ export const UserFacingError: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UserFacingError" - } - } - } + className: "UserFacingError", + }, + }, + }, }, innerError: { serializedName: "innerError", type: { name: "Composite", - className: "InnerError" - } + className: "InnerError", + }, }, isRetryable: { serializedName: "isRetryable", type: { - name: "Boolean" - } + name: "Boolean", + }, }, isUserError: { serializedName: "isUserError", type: { - name: "Boolean" - } + name: "Boolean", + }, }, properties: { serializedName: "properties", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, message: { serializedName: "message", type: { - name: "String" - } + name: "String", + }, }, recommendedAction: { serializedName: "recommendedAction", @@ -1457,19 +1543,19 @@ export const UserFacingError: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, target: { serializedName: "target", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const InnerError: coreClient.CompositeMapper = { @@ -1481,24 +1567,24 @@ export const InnerError: coreClient.CompositeMapper = { serializedName: "additionalInfo", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, code: { serializedName: "code", type: { - name: "String" - } + name: "String", + }, }, embeddedInnerError: { serializedName: "embeddedInnerError", type: { name: "Composite", - className: "InnerError" - } - } - } - } + className: "InnerError", + }, + }, + }, + }, }; export const AuthCredentials: coreClient.CompositeMapper = { @@ -1508,18 +1594,18 @@ export const AuthCredentials: coreClient.CompositeMapper = { uberParent: "AuthCredentials", polymorphicDiscriminator: { serializedName: "objectType", - clientName: "objectType" + clientName: "objectType", }, modelProperties: { objectType: { serializedName: "objectType", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IdentityDetails: coreClient.CompositeMapper = { @@ -1530,17 +1616,17 @@ export const IdentityDetails: coreClient.CompositeMapper = { useSystemAssignedIdentity: { serializedName: "useSystemAssignedIdentity", type: { - name: "Boolean" - } + name: "Boolean", + }, }, userAssignedIdentityArmUrl: { serializedName: "userAssignedIdentityArmUrl", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DppProxyResource: coreClient.CompositeMapper = { @@ -1552,39 +1638,39 @@ export const DppProxyResource: 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" } }, + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; export const TriggerBackupRequest: coreClient.CompositeMapper = { @@ -1596,11 +1682,11 @@ export const TriggerBackupRequest: coreClient.CompositeMapper = { serializedName: "backupRuleOptions", type: { name: "Composite", - className: "AdHocBackupRuleOptions" - } - } - } - } + className: "AdHocBackupRuleOptions", + }, + }, + }, + }, }; export const AdHocBackupRuleOptions: coreClient.CompositeMapper = { @@ -1612,18 +1698,18 @@ export const AdHocBackupRuleOptions: coreClient.CompositeMapper = { serializedName: "ruleName", required: true, type: { - name: "String" - } + name: "String", + }, }, triggerOption: { serializedName: "triggerOption", type: { name: "Composite", - className: "AdhocBackupTriggerOption" - } - } - } - } + className: "AdhocBackupTriggerOption", + }, + }, + }, + }, }; export const AdhocBackupTriggerOption: coreClient.CompositeMapper = { @@ -1634,11 +1720,11 @@ export const AdhocBackupTriggerOption: coreClient.CompositeMapper = { retentionTagOverride: { serializedName: "retentionTagOverride", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ValidateForBackupRequest: coreClient.CompositeMapper = { @@ -1650,11 +1736,11 @@ export const ValidateForBackupRequest: coreClient.CompositeMapper = { serializedName: "backupInstance", type: { name: "Composite", - className: "BackupInstance" - } - } - } - } + className: "BackupInstance", + }, + }, + }, + }, }; export const AzureBackupRecoveryPoint: coreClient.CompositeMapper = { @@ -1664,18 +1750,18 @@ export const AzureBackupRecoveryPoint: coreClient.CompositeMapper = { uberParent: "AzureBackupRecoveryPoint", polymorphicDiscriminator: { serializedName: "objectType", - clientName: "objectType" + clientName: "objectType", }, modelProperties: { objectType: { serializedName: "objectType", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const FetchSecondaryRPsRequestParameters: coreClient.CompositeMapper = { @@ -1686,17 +1772,17 @@ export const FetchSecondaryRPsRequestParameters: coreClient.CompositeMapper = { sourceRegion: { serializedName: "sourceRegion", type: { - name: "String" - } + name: "String", + }, }, sourceBackupInstanceId: { serializedName: "sourceBackupInstanceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CrossRegionRestoreRequestObject: coreClient.CompositeMapper = { @@ -1708,18 +1794,18 @@ export const CrossRegionRestoreRequestObject: coreClient.CompositeMapper = { serializedName: "restoreRequestObject", type: { name: "Composite", - className: "AzureBackupRestoreRequest" - } + className: "AzureBackupRestoreRequest", + }, }, crossRegionRestoreDetails: { serializedName: "crossRegionRestoreDetails", type: { name: "Composite", - className: "CrossRegionRestoreDetails" - } - } - } - } + className: "CrossRegionRestoreDetails", + }, + }, + }, + }, }; export const AzureBackupRestoreRequest: coreClient.CompositeMapper = { @@ -1729,45 +1815,45 @@ export const AzureBackupRestoreRequest: coreClient.CompositeMapper = { uberParent: "AzureBackupRestoreRequest", polymorphicDiscriminator: { serializedName: "objectType", - clientName: "objectType" + clientName: "objectType", }, modelProperties: { objectType: { serializedName: "objectType", required: true, type: { - name: "String" - } + name: "String", + }, }, restoreTargetInfo: { serializedName: "restoreTargetInfo", type: { name: "Composite", - className: "RestoreTargetInfoBase" - } + className: "RestoreTargetInfoBase", + }, }, sourceDataStoreType: { serializedName: "sourceDataStoreType", required: true, type: { - name: "String" - } + name: "String", + }, }, sourceResourceId: { serializedName: "sourceResourceId", type: { - name: "String" - } + name: "String", + }, }, identityDetails: { serializedName: "identityDetails", type: { name: "Composite", - className: "IdentityDetails" - } - } - } - } + className: "IdentityDetails", + }, + }, + }, + }, }; export const RestoreTargetInfoBase: coreClient.CompositeMapper = { @@ -1777,31 +1863,31 @@ export const RestoreTargetInfoBase: coreClient.CompositeMapper = { uberParent: "RestoreTargetInfoBase", polymorphicDiscriminator: { serializedName: "objectType", - clientName: "objectType" + clientName: "objectType", }, modelProperties: { objectType: { serializedName: "objectType", required: true, type: { - name: "String" - } + name: "String", + }, }, recoveryOption: { serializedName: "recoveryOption", required: true, type: { - name: "String" - } + name: "String", + }, }, restoreLocation: { serializedName: "restoreLocation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CrossRegionRestoreDetails: coreClient.CompositeMapper = { @@ -1813,18 +1899,18 @@ export const CrossRegionRestoreDetails: coreClient.CompositeMapper = { serializedName: "sourceRegion", required: true, type: { - name: "String" - } + name: "String", + }, }, sourceBackupInstanceId: { serializedName: "sourceBackupInstanceId", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ErrorResponse: coreClient.CompositeMapper = { @@ -1836,11 +1922,11 @@ export const ErrorResponse: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorDetail" - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, }; export const ErrorDetail: coreClient.CompositeMapper = { @@ -1852,22 +1938,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", @@ -1877,10 +1963,10 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorDetail" - } - } - } + className: "ErrorDetail", + }, + }, + }, }, additionalInfo: { serializedName: "additionalInfo", @@ -1890,37 +1976,38 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } -}; - -export const ValidateCrossRegionRestoreRequestObject: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ValidateCrossRegionRestoreRequestObject", - modelProperties: { - restoreRequestObject: { - serializedName: "restoreRequestObject", - type: { - name: "Composite", - className: "AzureBackupRestoreRequest" - } + className: "ErrorAdditionalInfo", + }, + }, + }, }, - crossRegionRestoreDetails: { - serializedName: "crossRegionRestoreDetails", - type: { - name: "Composite", - className: "CrossRegionRestoreDetails" - } - } - } - } -}; + }, + }, +}; + +export const ValidateCrossRegionRestoreRequestObject: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ValidateCrossRegionRestoreRequestObject", + modelProperties: { + restoreRequestObject: { + serializedName: "restoreRequestObject", + type: { + name: "Composite", + className: "AzureBackupRestoreRequest", + }, + }, + crossRegionRestoreDetails: { + serializedName: "crossRegionRestoreDetails", + type: { + name: "Composite", + className: "CrossRegionRestoreDetails", + }, + }, + }, + }, + }; export const CrossRegionRestoreJobRequest: coreClient.CompositeMapper = { type: { @@ -1931,25 +2018,25 @@ export const CrossRegionRestoreJobRequest: coreClient.CompositeMapper = { serializedName: "sourceRegion", required: true, type: { - name: "String" - } + name: "String", + }, }, sourceBackupVaultId: { serializedName: "sourceBackupVaultId", required: true, type: { - name: "String" - } + name: "String", + }, }, jobId: { serializedName: "jobId", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AzureBackupJob: coreClient.CompositeMapper = { @@ -1961,69 +2048,69 @@ export const AzureBackupJob: coreClient.CompositeMapper = { serializedName: "activityID", required: true, type: { - name: "String" - } + name: "String", + }, }, backupInstanceFriendlyName: { serializedName: "backupInstanceFriendlyName", required: true, type: { - name: "String" - } + name: "String", + }, }, backupInstanceId: { serializedName: "backupInstanceId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, dataSourceId: { serializedName: "dataSourceId", required: true, type: { - name: "String" - } + name: "String", + }, }, dataSourceLocation: { serializedName: "dataSourceLocation", required: true, type: { - name: "String" - } + name: "String", + }, }, dataSourceName: { serializedName: "dataSourceName", required: true, type: { - name: "String" - } + name: "String", + }, }, dataSourceSetName: { serializedName: "dataSourceSetName", type: { - name: "String" - } + name: "String", + }, }, dataSourceType: { serializedName: "dataSourceType", required: true, type: { - name: "String" - } + name: "String", + }, }, duration: { serializedName: "duration", type: { - name: "String" - } + name: "String", + }, }, endTime: { serializedName: "endTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, errorDetails: { serializedName: "errorDetails", @@ -2033,115 +2120,115 @@ export const AzureBackupJob: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UserFacingError" - } - } - } + className: "UserFacingError", + }, + }, + }, }, extendedInfo: { serializedName: "extendedInfo", type: { name: "Composite", - className: "JobExtendedInfo" - } + className: "JobExtendedInfo", + }, }, isUserTriggered: { serializedName: "isUserTriggered", required: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, operation: { serializedName: "operation", required: true, type: { - name: "String" - } + name: "String", + }, }, operationCategory: { serializedName: "operationCategory", required: true, type: { - name: "String" - } + name: "String", + }, }, policyId: { serializedName: "policyId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, policyName: { serializedName: "policyName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, progressEnabled: { serializedName: "progressEnabled", required: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, progressUrl: { serializedName: "progressUrl", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rehydrationPriority: { serializedName: "rehydrationPriority", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, restoreType: { serializedName: "restoreType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sourceResourceGroup: { serializedName: "sourceResourceGroup", required: true, type: { - name: "String" - } + name: "String", + }, }, sourceSubscriptionID: { serializedName: "sourceSubscriptionID", required: true, type: { - name: "String" - } + name: "String", + }, }, startTime: { serializedName: "startTime", required: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, status: { serializedName: "status", required: true, type: { - name: "String" - } + name: "String", + }, }, subscriptionId: { serializedName: "subscriptionId", required: true, type: { - name: "String" - } + name: "String", + }, }, supportedActions: { serializedName: "supportedActions", @@ -2150,38 +2237,38 @@ export const AzureBackupJob: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, vaultName: { serializedName: "vaultName", required: true, type: { - name: "String" - } + name: "String", + }, }, etag: { serializedName: "etag", type: { - name: "String" - } + name: "String", + }, }, sourceDataStoreName: { serializedName: "sourceDataStoreName", type: { - name: "String" - } + name: "String", + }, }, destinationDataStoreName: { serializedName: "destinationDataStoreName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const JobExtendedInfo: coreClient.CompositeMapper = { @@ -2193,36 +2280,36 @@ export const JobExtendedInfo: coreClient.CompositeMapper = { serializedName: "additionalDetails", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, backupInstanceState: { serializedName: "backupInstanceState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, dataTransferredInBytes: { serializedName: "dataTransferredInBytes", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, recoveryDestination: { serializedName: "recoveryDestination", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sourceRecoverPoint: { serializedName: "sourceRecoverPoint", type: { name: "Composite", - className: "RestoreJobRecoveryPointDetails" - } + className: "RestoreJobRecoveryPointDetails", + }, }, subTasks: { serializedName: "subTasks", @@ -2232,17 +2319,17 @@ export const JobExtendedInfo: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "JobSubTask" - } - } - } + className: "JobSubTask", + }, + }, + }, }, targetRecoverPoint: { serializedName: "targetRecoverPoint", type: { name: "Composite", - className: "RestoreJobRecoveryPointDetails" - } + className: "RestoreJobRecoveryPointDetails", + }, }, warningDetails: { serializedName: "warningDetails", @@ -2252,13 +2339,13 @@ export const JobExtendedInfo: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UserFacingWarningDetail" - } - } - } - } - } - } + className: "UserFacingWarningDetail", + }, + }, + }, + }, + }, + }, }; export const RestoreJobRecoveryPointDetails: coreClient.CompositeMapper = { @@ -2269,17 +2356,17 @@ export const RestoreJobRecoveryPointDetails: coreClient.CompositeMapper = { recoveryPointID: { serializedName: "recoveryPointID", type: { - name: "String" - } + name: "String", + }, }, recoveryPointTime: { serializedName: "recoveryPointTime", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const JobSubTask: coreClient.CompositeMapper = { @@ -2291,39 +2378,39 @@ export const JobSubTask: coreClient.CompositeMapper = { serializedName: "additionalDetails", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, taskId: { serializedName: "taskId", required: true, type: { - name: "Number" - } + name: "Number", + }, }, taskName: { serializedName: "taskName", required: true, type: { - name: "String" - } + name: "String", + }, }, taskProgress: { serializedName: "taskProgress", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, taskStatus: { serializedName: "taskStatus", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UserFacingWarningDetail: coreClient.CompositeMapper = { @@ -2334,18 +2421,18 @@ export const UserFacingWarningDetail: coreClient.CompositeMapper = { resourceName: { serializedName: "resourceName", type: { - name: "String" - } + name: "String", + }, }, warning: { serializedName: "warning", type: { name: "Composite", - className: "UserFacingError" - } - } - } - } + className: "UserFacingError", + }, + }, + }, + }, }; export const CrossRegionRestoreJobsRequest: coreClient.CompositeMapper = { @@ -2357,18 +2444,18 @@ export const CrossRegionRestoreJobsRequest: coreClient.CompositeMapper = { serializedName: "sourceRegion", required: true, type: { - name: "String" - } + name: "String", + }, }, sourceBackupVaultId: { serializedName: "sourceBackupVaultId", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AzureBackupRehydrationRequest: coreClient.CompositeMapper = { @@ -2380,24 +2467,24 @@ export const AzureBackupRehydrationRequest: coreClient.CompositeMapper = { serializedName: "recoveryPointId", required: true, type: { - name: "String" - } + name: "String", + }, }, rehydrationPriority: { serializedName: "rehydrationPriority", type: { - name: "String" - } + name: "String", + }, }, rehydrationRetentionDuration: { serializedName: "rehydrationRetentionDuration", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SyncBackupInstanceRequest: coreClient.CompositeMapper = { @@ -2408,11 +2495,11 @@ export const SyncBackupInstanceRequest: coreClient.CompositeMapper = { syncType: { serializedName: "syncType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ValidateRestoreRequestObject: coreClient.CompositeMapper = { @@ -2424,67 +2511,69 @@ export const ValidateRestoreRequestObject: coreClient.CompositeMapper = { serializedName: "restoreRequestObject", type: { name: "Composite", - className: "AzureBackupRestoreRequest" - } - } - } - } -}; - -export const AzureBackupFindRestorableTimeRangesRequest: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureBackupFindRestorableTimeRangesRequest", - modelProperties: { - sourceDataStoreType: { - serializedName: "sourceDataStoreType", - required: true, - type: { - name: "String" - } + className: "AzureBackupRestoreRequest", + }, }, - startTime: { - serializedName: "startTime", - type: { - name: "String" - } + }, + }, +}; + +export const AzureBackupFindRestorableTimeRangesRequest: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AzureBackupFindRestorableTimeRangesRequest", + modelProperties: { + sourceDataStoreType: { + serializedName: "sourceDataStoreType", + required: true, + type: { + name: "String", + }, + }, + startTime: { + serializedName: "startTime", + type: { + name: "String", + }, + }, + endTime: { + serializedName: "endTime", + type: { + name: "String", + }, + }, }, - endTime: { - serializedName: "endTime", - type: { - name: "String" - } - } - } - } -}; - -export const AzureBackupFindRestorableTimeRangesResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureBackupFindRestorableTimeRangesResponse", - modelProperties: { - restorableTimeRanges: { - serializedName: "restorableTimeRanges", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorableTimeRange" - } - } - } + }, + }; + +export const AzureBackupFindRestorableTimeRangesResponse: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AzureBackupFindRestorableTimeRangesResponse", + modelProperties: { + restorableTimeRanges: { + serializedName: "restorableTimeRanges", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorableTimeRange", + }, + }, + }, + }, + objectType: { + serializedName: "objectType", + type: { + name: "String", + }, + }, }, - objectType: { - serializedName: "objectType", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const RestorableTimeRange: coreClient.CompositeMapper = { type: { @@ -2495,24 +2584,24 @@ export const RestorableTimeRange: coreClient.CompositeMapper = { serializedName: "startTime", required: true, type: { - name: "String" - } + name: "String", + }, }, endTime: { serializedName: "endTime", required: true, type: { - name: "String" - } + name: "String", + }, }, objectType: { serializedName: "objectType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ExportJobsResult: coreClient.CompositeMapper = { @@ -2524,32 +2613,32 @@ export const ExportJobsResult: coreClient.CompositeMapper = { serializedName: "blobUrl", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, blobSasKey: { serializedName: "blobSasKey", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, excelFileBlobUrl: { serializedName: "excelFileBlobUrl", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, excelFileBlobSasKey: { serializedName: "excelFileBlobSasKey", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeletionInfo: coreClient.CompositeMapper = { @@ -2561,32 +2650,32 @@ export const DeletionInfo: coreClient.CompositeMapper = { serializedName: "deletionTime", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, billingEndDate: { serializedName: "billingEndDate", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, scheduledPurgeTime: { serializedName: "scheduledPurgeTime", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, deleteActivityID: { serializedName: "deleteActivityID", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceGuard: coreClient.CompositeMapper = { @@ -2598,15 +2687,15 @@ export const ResourceGuard: coreClient.CompositeMapper = { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, allowAutoApprovals: { serializedName: "allowAutoApprovals", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, resourceGuardOperations: { serializedName: "resourceGuardOperations", @@ -2616,10 +2705,10 @@ export const ResourceGuard: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceGuardOperation" - } - } - } + className: "ResourceGuardOperation", + }, + }, + }, }, vaultCriticalOperationExclusionList: { serializedName: "vaultCriticalOperationExclusionList", @@ -2627,20 +2716,20 @@ export const ResourceGuard: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, description: { serializedName: "description", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceGuardOperation: coreClient.CompositeMapper = { @@ -2652,18 +2741,18 @@ export const ResourceGuardOperation: coreClient.CompositeMapper = { serializedName: "vaultCriticalOperation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, requestResourceType: { serializedName: "requestResourceType", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DppTrackedResourceList: coreClient.CompositeMapper = { @@ -2674,11 +2763,11 @@ export const DppTrackedResourceList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PatchResourceGuardInput: coreClient.CompositeMapper = { @@ -2690,11 +2779,11 @@ export const PatchResourceGuardInput: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const DppBaseResourceList: coreClient.CompositeMapper = { @@ -2709,19 +2798,19 @@ export const DppBaseResourceList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DppBaseResource" - } - } - } + className: "DppBaseResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DppBaseResource: coreClient.CompositeMapper = { @@ -2733,25 +2822,25 @@ export const DppBaseResource: 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 ResourceGuardProxyBase: coreClient.CompositeMapper = { @@ -2762,8 +2851,8 @@ export const ResourceGuardProxyBase: coreClient.CompositeMapper = { resourceGuardResourceId: { serializedName: "resourceGuardResourceId", type: { - name: "String" - } + name: "String", + }, }, resourceGuardOperationDetails: { serializedName: "resourceGuardOperationDetails", @@ -2772,25 +2861,25 @@ export const ResourceGuardProxyBase: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceGuardOperationDetail" - } - } - } + className: "ResourceGuardOperationDetail", + }, + }, + }, }, lastUpdatedTime: { serializedName: "lastUpdatedTime", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceGuardOperationDetail: coreClient.CompositeMapper = { @@ -2801,17 +2890,17 @@ export const ResourceGuardOperationDetail: coreClient.CompositeMapper = { vaultCriticalOperation: { serializedName: "vaultCriticalOperation", type: { - name: "String" - } + name: "String", + }, }, defaultResourceRequest: { serializedName: "defaultResourceRequest", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UnlockDeleteRequest: coreClient.CompositeMapper = { @@ -2825,19 +2914,19 @@ export const UnlockDeleteRequest: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, resourceToBeDeleted: { serializedName: "resourceToBeDeleted", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UnlockDeleteResponse: coreClient.CompositeMapper = { @@ -2848,11 +2937,11 @@ export const UnlockDeleteResponse: coreClient.CompositeMapper = { unlockDeleteExpiryTime: { serializedName: "unlockDeleteExpiryTime", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeleteOption: coreClient.CompositeMapper = { @@ -2862,25 +2951,25 @@ export const DeleteOption: coreClient.CompositeMapper = { uberParent: "DeleteOption", polymorphicDiscriminator: { serializedName: "objectType", - clientName: "objectType" + clientName: "objectType", }, modelProperties: { duration: { serializedName: "duration", required: true, type: { - name: "String" - } + name: "String", + }, }, objectType: { serializedName: "objectType", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RecoveryPointsFilters: coreClient.CompositeMapper = { @@ -2891,41 +2980,41 @@ export const RecoveryPointsFilters: coreClient.CompositeMapper = { restorePointDataStoreId: { serializedName: "restorePointDataStoreId", type: { - name: "String" - } + name: "String", + }, }, isVisible: { serializedName: "isVisible", type: { - name: "Boolean" - } + name: "Boolean", + }, }, startDate: { serializedName: "startDate", type: { - name: "String" - } + name: "String", + }, }, endDate: { serializedName: "endDate", type: { - name: "String" - } + name: "String", + }, }, extendedInfo: { serializedName: "extendedInfo", type: { - name: "Boolean" - } + name: "Boolean", + }, }, restorePointState: { serializedName: "restorePointState", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AdhocBasedTaggingCriteria: coreClient.CompositeMapper = { @@ -2937,11 +3026,11 @@ export const AdhocBasedTaggingCriteria: coreClient.CompositeMapper = { serializedName: "tagInfo", type: { name: "Composite", - className: "RetentionTag" - } - } - } - } + className: "RetentionTag", + }, + }, + }, + }, }; export const RetentionTag: coreClient.CompositeMapper = { @@ -2953,25 +3042,25 @@ export const RetentionTag: coreClient.CompositeMapper = { serializedName: "eTag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tagName: { serializedName: "tagName", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TriggerContext: coreClient.CompositeMapper = { @@ -2981,18 +3070,18 @@ export const TriggerContext: coreClient.CompositeMapper = { uberParent: "TriggerContext", polymorphicDiscriminator: { serializedName: "objectType", - clientName: "objectType" + clientName: "objectType", }, modelProperties: { objectType: { serializedName: "objectType", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RecoveryPointDataStoreDetails: coreClient.CompositeMapper = { @@ -3003,61 +3092,61 @@ export const RecoveryPointDataStoreDetails: coreClient.CompositeMapper = { creationTime: { serializedName: "creationTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, expiryTime: { serializedName: "expiryTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, metaData: { serializedName: "metaData", type: { - name: "String" - } + name: "String", + }, }, state: { serializedName: "state", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, visible: { serializedName: "visible", type: { - name: "Boolean" - } + name: "Boolean", + }, }, rehydrationExpiryTime: { serializedName: "rehydrationExpiryTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, rehydrationStatus: { serializedName: "rehydrationStatus", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DppWorkerRequest: coreClient.CompositeMapper = { @@ -3068,23 +3157,23 @@ export const DppWorkerRequest: coreClient.CompositeMapper = { subscriptionId: { serializedName: "subscriptionId", type: { - name: "String" - } + name: "String", + }, }, uri: { serializedName: "uri", type: { - name: "String" - } + name: "String", + }, }, headers: { serializedName: "headers", type: { name: "Dictionary", value: { - type: { name: "Sequence", element: { type: { name: "String" } } } - } - } + type: { name: "Sequence", element: { type: { name: "String" } } }, + }, + }, }, supportedGroupVersions: { serializedName: "supportedGroupVersions", @@ -3092,32 +3181,32 @@ export const DppWorkerRequest: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, cultureInfo: { serializedName: "cultureInfo", type: { - name: "String" - } + name: "String", + }, }, parameters: { serializedName: "parameters", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, httpMethod: { serializedName: "httpMethod", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BackupParameters: coreClient.CompositeMapper = { @@ -3127,18 +3216,18 @@ export const BackupParameters: coreClient.CompositeMapper = { uberParent: "BackupParameters", polymorphicDiscriminator: { serializedName: "objectType", - clientName: "objectType" + clientName: "objectType", }, modelProperties: { objectType: { serializedName: "objectType", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DataStoreInfoBase: coreClient.CompositeMapper = { @@ -3150,18 +3239,18 @@ export const DataStoreInfoBase: coreClient.CompositeMapper = { serializedName: "dataStoreType", required: true, type: { - name: "String" - } + name: "String", + }, }, objectType: { serializedName: "objectType", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BasePolicyRule: coreClient.CompositeMapper = { @@ -3171,25 +3260,25 @@ export const BasePolicyRule: coreClient.CompositeMapper = { uberParent: "BasePolicyRule", polymorphicDiscriminator: { serializedName: "objectType", - clientName: "objectType" + clientName: "objectType", }, modelProperties: { name: { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, objectType: { serializedName: "objectType", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NamespacedNameResource: coreClient.CompositeMapper = { @@ -3200,17 +3289,17 @@ export const NamespacedNameResource: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, namespace: { serializedName: "namespace", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SourceLifeCycle: coreClient.CompositeMapper = { @@ -3222,15 +3311,15 @@ export const SourceLifeCycle: coreClient.CompositeMapper = { serializedName: "deleteAfter", type: { name: "Composite", - className: "DeleteOption" - } + className: "DeleteOption", + }, }, sourceDataStore: { serializedName: "sourceDataStore", type: { name: "Composite", - className: "DataStoreInfoBase" - } + className: "DataStoreInfoBase", + }, }, targetDataStoreCopySettings: { serializedName: "targetDataStoreCopySettings", @@ -3239,13 +3328,13 @@ export const SourceLifeCycle: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TargetCopySetting" - } - } - } - } - } - } + className: "TargetCopySetting", + }, + }, + }, + }, + }, + }, }; export const TargetCopySetting: coreClient.CompositeMapper = { @@ -3257,18 +3346,18 @@ export const TargetCopySetting: coreClient.CompositeMapper = { serializedName: "copyAfter", type: { name: "Composite", - className: "CopyOption" - } + className: "CopyOption", + }, }, dataStore: { serializedName: "dataStore", type: { name: "Composite", - className: "DataStoreInfoBase" - } - } - } - } + className: "DataStoreInfoBase", + }, + }, + }, + }, }; export const CopyOption: coreClient.CompositeMapper = { @@ -3278,18 +3367,18 @@ export const CopyOption: coreClient.CompositeMapper = { uberParent: "CopyOption", polymorphicDiscriminator: { serializedName: "objectType", - clientName: "objectType" + clientName: "objectType", }, modelProperties: { objectType: { serializedName: "objectType", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BackupCriteria: coreClient.CompositeMapper = { @@ -3299,18 +3388,18 @@ export const BackupCriteria: coreClient.CompositeMapper = { uberParent: "BackupCriteria", polymorphicDiscriminator: { serializedName: "objectType", - clientName: "objectType" + clientName: "objectType", }, modelProperties: { objectType: { serializedName: "objectType", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BackupSchedule: coreClient.CompositeMapper = { @@ -3325,19 +3414,19 @@ export const BackupSchedule: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, timeZone: { serializedName: "timeZone", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Day: coreClient.CompositeMapper = { @@ -3348,17 +3437,17 @@ export const Day: coreClient.CompositeMapper = { date: { serializedName: "date", type: { - name: "Number" - } + name: "Number", + }, }, isLast: { serializedName: "isLast", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SupportedFeature: coreClient.CompositeMapper = { @@ -3369,14 +3458,14 @@ export const SupportedFeature: coreClient.CompositeMapper = { featureName: { serializedName: "featureName", type: { - name: "String" - } + name: "String", + }, }, supportStatus: { serializedName: "supportStatus", type: { - name: "String" - } + name: "String", + }, }, exposureControlledFeatures: { serializedName: "exposureControlledFeatures", @@ -3384,13 +3473,13 @@ export const SupportedFeature: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ItemLevelRestoreCriteria: coreClient.CompositeMapper = { @@ -3400,18 +3489,18 @@ export const ItemLevelRestoreCriteria: coreClient.CompositeMapper = { uberParent: "ItemLevelRestoreCriteria", polymorphicDiscriminator: { serializedName: "objectType", - clientName: "objectType" + clientName: "objectType", }, modelProperties: { objectType: { serializedName: "objectType", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TargetDetails: coreClient.CompositeMapper = { @@ -3423,31 +3512,31 @@ export const TargetDetails: coreClient.CompositeMapper = { serializedName: "filePrefix", required: true, type: { - name: "String" - } + name: "String", + }, }, restoreTargetLocationType: { serializedName: "restoreTargetLocationType", required: true, type: { - name: "String" - } + name: "String", + }, }, url: { serializedName: "url", required: true, type: { - name: "String" - } + name: "String", + }, }, targetResourceArmId: { serializedName: "targetResourceArmId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TaggingCriteria: coreClient.CompositeMapper = { @@ -3462,34 +3551,34 @@ export const TaggingCriteria: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BackupCriteria" - } - } - } + className: "BackupCriteria", + }, + }, + }, }, isDefault: { serializedName: "isDefault", required: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, taggingPriority: { serializedName: "taggingPriority", required: true, type: { - name: "Number" - } + name: "Number", + }, }, tagInfo: { serializedName: "tagInfo", type: { name: "Composite", - className: "RetentionTag" - } - } - } - } + className: "RetentionTag", + }, + }, + }, + }, }; export const SecretStoreResource: coreClient.CompositeMapper = { @@ -3500,24 +3589,24 @@ export const SecretStoreResource: coreClient.CompositeMapper = { uri: { serializedName: "uri", type: { - name: "String" - } + name: "String", + }, }, secretStoreType: { serializedName: "secretStoreType", required: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DppTrackedResource: coreClient.CompositeMapper = { @@ -3530,11 +3619,11 @@ export const DppTrackedResource: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "DppIdentityDetails" - } - } - } - } + className: "DppIdentityDetails", + }, + }, + }, + }, }; export const ResourceGuardResource: coreClient.CompositeMapper = { @@ -3547,11 +3636,11 @@ export const ResourceGuardResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "ResourceGuard" - } - } - } - } + className: "ResourceGuard", + }, + }, + }, + }, }; export const BackupVaultResourceList: coreClient.CompositeMapper = { @@ -3567,13 +3656,13 @@ export const BackupVaultResourceList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BackupVaultResource" - } - } - } - } - } - } + className: "BackupVaultResource", + }, + }, + }, + }, + }, + }, }; export const BaseBackupPolicyResourceList: coreClient.CompositeMapper = { @@ -3589,13 +3678,13 @@ export const BaseBackupPolicyResourceList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BaseBackupPolicyResource" - } - } - } - } - } - } + className: "BaseBackupPolicyResource", + }, + }, + }, + }, + }, + }, }; export const BackupInstanceResourceList: coreClient.CompositeMapper = { @@ -3611,36 +3700,37 @@ export const BackupInstanceResourceList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BackupInstanceResource" - } - } - } - } - } - } -}; - -export const AzureBackupRecoveryPointResourceList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureBackupRecoveryPointResourceList", - modelProperties: { - ...DppResourceList.type.modelProperties, - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureBackupRecoveryPointResource" - } - } - } - } - } - } -}; + className: "BackupInstanceResource", + }, + }, + }, + }, + }, + }, +}; + +export const AzureBackupRecoveryPointResourceList: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AzureBackupRecoveryPointResourceList", + modelProperties: { + ...DppResourceList.type.modelProperties, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureBackupRecoveryPointResource", + }, + }, + }, + }, + }, + }, + }; export const AzureBackupJobResourceList: coreClient.CompositeMapper = { type: { @@ -3655,13 +3745,13 @@ export const AzureBackupJobResourceList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AzureBackupJobResource" - } - } - } - } - } - } + className: "AzureBackupJobResource", + }, + }, + }, + }, + }, + }, }; export const DeletedBackupInstanceResourceList: coreClient.CompositeMapper = { @@ -3677,13 +3767,13 @@ export const DeletedBackupInstanceResourceList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DeletedBackupInstanceResource" - } - } - } - } - } - } + className: "DeletedBackupInstanceResource", + }, + }, + }, + }, + }, + }, }; export const ResourceGuardProxyBaseResourceList: coreClient.CompositeMapper = { @@ -3699,13 +3789,13 @@ export const ResourceGuardProxyBaseResourceList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceGuardProxyBaseResource" - } - } - } - } - } - } + className: "ResourceGuardProxyBaseResource", + }, + }, + }, + }, + }, + }, }; export const OperationJobExtendedInfo: coreClient.CompositeMapper = { @@ -3721,11 +3811,11 @@ export const OperationJobExtendedInfo: coreClient.CompositeMapper = { jobId: { serializedName: "jobId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const FeatureValidationRequest: coreClient.CompositeMapper = { @@ -3739,17 +3829,17 @@ export const FeatureValidationRequest: coreClient.CompositeMapper = { featureType: { serializedName: "featureType", type: { - name: "String" - } + name: "String", + }, }, featureName: { serializedName: "featureName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; FeatureValidationRequestBase.type.polymorphicDiscriminator = FeatureValidationRequestBase.type.polymorphicDiscriminator; @@ -3765,8 +3855,8 @@ export const FeatureValidationResponse: coreClient.CompositeMapper = { featureType: { serializedName: "featureType", type: { - name: "String" - } + name: "String", + }, }, features: { serializedName: "features", @@ -3775,13 +3865,13 @@ export const FeatureValidationResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SupportedFeature" - } - } - } - } - } - } + className: "SupportedFeature", + }, + }, + }, + }, + }, + }, }; FeatureValidationResponseBase.type.polymorphicDiscriminator = FeatureValidationResponseBase.type.polymorphicDiscriminator; @@ -3803,13 +3893,13 @@ export const BackupPolicy: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BasePolicyRule" - } - } - } - } - } - } + className: "BasePolicyRule", + }, + }, + }, + }, + }, + }, }; export const BaseBackupPolicyResource: coreClient.CompositeMapper = { @@ -3822,11 +3912,11 @@ export const BaseBackupPolicyResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "BaseBackupPolicy" - } - } - } - } + className: "BaseBackupPolicy", + }, + }, + }, + }, }; export const AzureBackupRecoveryPointResource: coreClient.CompositeMapper = { @@ -3839,11 +3929,11 @@ export const AzureBackupRecoveryPointResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "AzureBackupRecoveryPoint" - } - } - } - } + className: "AzureBackupRecoveryPoint", + }, + }, + }, + }, }; export const AzureBackupJobResource: coreClient.CompositeMapper = { @@ -3856,29 +3946,30 @@ export const AzureBackupJobResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "AzureBackupJob" - } - } - } - } -}; - -export const AzureBackupFindRestorableTimeRangesResponseResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureBackupFindRestorableTimeRangesResponseResource", - modelProperties: { - ...DppResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "AzureBackupFindRestorableTimeRangesResponse" - } - } - } - } -}; + className: "AzureBackupJob", + }, + }, + }, + }, +}; + +export const AzureBackupFindRestorableTimeRangesResponseResource: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AzureBackupFindRestorableTimeRangesResponseResource", + modelProperties: { + ...DppResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "AzureBackupFindRestorableTimeRangesResponse", + }, + }, + }, + }, + }; export const DeletedBackupInstanceResource: coreClient.CompositeMapper = { type: { @@ -3890,11 +3981,11 @@ export const DeletedBackupInstanceResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "DeletedBackupInstance" - } - } - } - } + className: "DeletedBackupInstance", + }, + }, + }, + }, }; export const ResourceGuardProxyBaseResource: coreClient.CompositeMapper = { @@ -3907,11 +3998,11 @@ export const ResourceGuardProxyBaseResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "ResourceGuardProxyBase" - } - } - } - } + className: "ResourceGuardProxyBase", + }, + }, + }, + }, }; export const DeletedBackupInstance: coreClient.CompositeMapper = { @@ -3924,11 +4015,11 @@ export const DeletedBackupInstance: coreClient.CompositeMapper = { serializedName: "deletionInfo", type: { name: "Composite", - className: "DeletionInfo" - } - } - } - } + className: "DeletionInfo", + }, + }, + }, + }, }; export const DefaultResourceProperties: coreClient.CompositeMapper = { @@ -3940,9 +4031,9 @@ export const DefaultResourceProperties: coreClient.CompositeMapper = { polymorphicDiscriminator: BaseResourceProperties.type.polymorphicDiscriminator, modelProperties: { - ...BaseResourceProperties.type.modelProperties - } - } + ...BaseResourceProperties.type.modelProperties, + }, + }, }; export const AzureOperationalStoreParameters: coreClient.CompositeMapper = { @@ -3957,107 +4048,108 @@ export const AzureOperationalStoreParameters: coreClient.CompositeMapper = { resourceGroupId: { serializedName: "resourceGroupId", type: { - name: "String" - } - } - } - } -}; - -export const KubernetesClusterBackupDatasourceParameters: coreClient.CompositeMapper = { - serializedName: "KubernetesClusterBackupDatasourceParameters", - type: { - name: "Composite", - className: "KubernetesClusterBackupDatasourceParameters", - uberParent: "BackupDatasourceParameters", - polymorphicDiscriminator: - BackupDatasourceParameters.type.polymorphicDiscriminator, - modelProperties: { - ...BackupDatasourceParameters.type.modelProperties, - snapshotVolumes: { - serializedName: "snapshotVolumes", - required: true, - type: { - name: "Boolean" - } - }, - includeClusterScopeResources: { - serializedName: "includeClusterScopeResources", - required: true, - type: { - name: "Boolean" - } - }, - includedNamespaces: { - serializedName: "includedNamespaces", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - excludedNamespaces: { - serializedName: "excludedNamespaces", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - includedResourceTypes: { - serializedName: "includedResourceTypes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - excludedResourceTypes: { - serializedName: "excludedResourceTypes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - labelSelectors: { - serializedName: "labelSelectors", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + }, + }, +}; + +export const KubernetesClusterBackupDatasourceParameters: coreClient.CompositeMapper = + { + serializedName: "KubernetesClusterBackupDatasourceParameters", + type: { + name: "Composite", + className: "KubernetesClusterBackupDatasourceParameters", + uberParent: "BackupDatasourceParameters", + polymorphicDiscriminator: + BackupDatasourceParameters.type.polymorphicDiscriminator, + modelProperties: { + ...BackupDatasourceParameters.type.modelProperties, + snapshotVolumes: { + serializedName: "snapshotVolumes", + required: true, + type: { + name: "Boolean", + }, + }, + includeClusterScopeResources: { + serializedName: "includeClusterScopeResources", + required: true, + type: { + name: "Boolean", + }, + }, + includedNamespaces: { + serializedName: "includedNamespaces", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + excludedNamespaces: { + serializedName: "excludedNamespaces", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + includedResourceTypes: { + serializedName: "includedResourceTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + excludedResourceTypes: { + serializedName: "excludedResourceTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + labelSelectors: { + serializedName: "labelSelectors", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + backupHookReferences: { + serializedName: "backupHookReferences", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NamespacedNameResource", + }, + }, + }, + }, }, - backupHookReferences: { - serializedName: "backupHookReferences", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NamespacedNameResource" - } - } - } - } - } - } -}; + }, + }; export const BlobBackupDatasourceParameters: coreClient.CompositeMapper = { serializedName: "BlobBackupDatasourceParameters", @@ -4076,13 +4168,13 @@ export const BlobBackupDatasourceParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const SecretStoreBasedAuthCredentials: coreClient.CompositeMapper = { @@ -4098,11 +4190,11 @@ export const SecretStoreBasedAuthCredentials: coreClient.CompositeMapper = { serializedName: "secretStoreResource", type: { name: "Composite", - className: "SecretStoreResource" - } - } - } - } + className: "SecretStoreResource", + }, + }, + }, + }, }; export const BackupInstanceResource: coreClient.CompositeMapper = { @@ -4115,11 +4207,11 @@ export const BackupInstanceResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "BackupInstance" - } - } - } - } + className: "BackupInstance", + }, + }, + }, + }, }; export const AzureBackupDiscreteRecoveryPoint: coreClient.CompositeMapper = { @@ -4135,8 +4227,8 @@ export const AzureBackupDiscreteRecoveryPoint: coreClient.CompositeMapper = { friendlyName: { serializedName: "friendlyName", type: { - name: "String" - } + name: "String", + }, }, recoveryPointDataStoresDetails: { serializedName: "recoveryPointDataStoresDetails", @@ -4145,114 +4237,116 @@ export const AzureBackupDiscreteRecoveryPoint: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RecoveryPointDataStoreDetails" - } - } - } + className: "RecoveryPointDataStoreDetails", + }, + }, + }, }, recoveryPointTime: { serializedName: "recoveryPointTime", required: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, policyName: { serializedName: "policyName", type: { - name: "String" - } + name: "String", + }, }, policyVersion: { serializedName: "policyVersion", type: { - name: "String" - } + name: "String", + }, }, recoveryPointId: { serializedName: "recoveryPointId", type: { - name: "String" - } + name: "String", + }, }, recoveryPointType: { serializedName: "recoveryPointType", type: { - name: "String" - } + name: "String", + }, }, retentionTagName: { serializedName: "retentionTagName", type: { - name: "String" - } + name: "String", + }, }, retentionTagVersion: { serializedName: "retentionTagVersion", type: { - name: "String" - } + name: "String", + }, }, expiryTime: { serializedName: "expiryTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, recoveryPointState: { serializedName: "recoveryPointState", type: { - name: "String" - } - } - } - } -}; - -export const AzureBackupRecoveryPointBasedRestoreRequest: coreClient.CompositeMapper = { - serializedName: "AzureBackupRecoveryPointBasedRestoreRequest", - type: { - name: "Composite", - className: "AzureBackupRecoveryPointBasedRestoreRequest", - uberParent: "AzureBackupRestoreRequest", - polymorphicDiscriminator: { - serializedName: "objectType", - clientName: "objectType" + name: "String", + }, + }, }, - modelProperties: { - ...AzureBackupRestoreRequest.type.modelProperties, - recoveryPointId: { - serializedName: "recoveryPointId", - required: true, - type: { - name: "String" - } - } - } - } + }, }; -export const AzureBackupRecoveryTimeBasedRestoreRequest: coreClient.CompositeMapper = { - serializedName: "AzureBackupRecoveryTimeBasedRestoreRequest", - type: { - name: "Composite", - className: "AzureBackupRecoveryTimeBasedRestoreRequest", - uberParent: "AzureBackupRestoreRequest", - polymorphicDiscriminator: - AzureBackupRestoreRequest.type.polymorphicDiscriminator, - modelProperties: { - ...AzureBackupRestoreRequest.type.modelProperties, - recoveryPointTime: { - serializedName: "recoveryPointTime", - required: true, - type: { - name: "String" - } - } - } - } -}; +export const AzureBackupRecoveryPointBasedRestoreRequest: coreClient.CompositeMapper = + { + serializedName: "AzureBackupRecoveryPointBasedRestoreRequest", + type: { + name: "Composite", + className: "AzureBackupRecoveryPointBasedRestoreRequest", + uberParent: "AzureBackupRestoreRequest", + polymorphicDiscriminator: { + serializedName: "objectType", + clientName: "objectType", + }, + modelProperties: { + ...AzureBackupRestoreRequest.type.modelProperties, + recoveryPointId: { + serializedName: "recoveryPointId", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const AzureBackupRecoveryTimeBasedRestoreRequest: coreClient.CompositeMapper = + { + serializedName: "AzureBackupRecoveryTimeBasedRestoreRequest", + type: { + name: "Composite", + className: "AzureBackupRecoveryTimeBasedRestoreRequest", + uberParent: "AzureBackupRestoreRequest", + polymorphicDiscriminator: + AzureBackupRestoreRequest.type.polymorphicDiscriminator, + modelProperties: { + ...AzureBackupRestoreRequest.type.modelProperties, + recoveryPointTime: { + serializedName: "recoveryPointTime", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const ItemLevelRestoreTargetInfo: coreClient.CompositeMapper = { serializedName: "ItemLevelRestoreTargetInfo", @@ -4272,34 +4366,34 @@ export const ItemLevelRestoreTargetInfo: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ItemLevelRestoreCriteria" - } - } - } + className: "ItemLevelRestoreCriteria", + }, + }, + }, }, datasourceInfo: { serializedName: "datasourceInfo", type: { name: "Composite", - className: "Datasource" - } + className: "Datasource", + }, }, datasourceSetInfo: { serializedName: "datasourceSetInfo", type: { name: "Composite", - className: "DatasourceSet" - } + className: "DatasourceSet", + }, }, datasourceAuthCredentials: { serializedName: "datasourceAuthCredentials", type: { name: "Composite", - className: "AuthCredentials" - } - } - } - } + className: "AuthCredentials", + }, + }, + }, + }, }; export const RestoreFilesTargetInfo: coreClient.CompositeMapper = { @@ -4316,11 +4410,11 @@ export const RestoreFilesTargetInfo: coreClient.CompositeMapper = { serializedName: "targetDetails", type: { name: "Composite", - className: "TargetDetails" - } - } - } - } + className: "TargetDetails", + }, + }, + }, + }, }; export const RestoreTargetInfo: coreClient.CompositeMapper = { @@ -4335,25 +4429,25 @@ export const RestoreTargetInfo: coreClient.CompositeMapper = { serializedName: "datasourceInfo", type: { name: "Composite", - className: "Datasource" - } + className: "Datasource", + }, }, datasourceSetInfo: { serializedName: "datasourceSetInfo", type: { name: "Composite", - className: "DatasourceSet" - } + className: "DatasourceSet", + }, }, datasourceAuthCredentials: { serializedName: "datasourceAuthCredentials", type: { name: "Composite", - className: "AuthCredentials" - } - } - } - } + className: "AuthCredentials", + }, + }, + }, + }, }; RestoreTargetInfoBase.type.polymorphicDiscriminator = RestoreTargetInfoBase.type.polymorphicDiscriminator; @@ -4371,13 +4465,13 @@ export const ResourceGuardResourceList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceGuardResource" - } - } - } - } - } - } + className: "ResourceGuardResource", + }, + }, + }, + }, + }, + }, }; export const AbsoluteDeleteOption: coreClient.CompositeMapper = { @@ -4388,9 +4482,9 @@ export const AbsoluteDeleteOption: coreClient.CompositeMapper = { uberParent: "DeleteOption", polymorphicDiscriminator: DeleteOption.type.polymorphicDiscriminator, modelProperties: { - ...DeleteOption.type.modelProperties - } - } + ...DeleteOption.type.modelProperties, + }, + }, }; export const AdhocBasedTriggerContext: coreClient.CompositeMapper = { @@ -4406,11 +4500,11 @@ export const AdhocBasedTriggerContext: coreClient.CompositeMapper = { serializedName: "taggingCriteria", type: { name: "Composite", - className: "AdhocBasedTaggingCriteria" - } - } - } - } + className: "AdhocBasedTaggingCriteria", + }, + }, + }, + }, }; export const ScheduleBasedTriggerContext: coreClient.CompositeMapper = { @@ -4426,8 +4520,8 @@ export const ScheduleBasedTriggerContext: coreClient.CompositeMapper = { serializedName: "schedule", type: { name: "Composite", - className: "BackupSchedule" - } + className: "BackupSchedule", + }, }, taggingCriteria: { serializedName: "taggingCriteria", @@ -4437,31 +4531,32 @@ export const ScheduleBasedTriggerContext: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TaggingCriteria" - } - } - } - } - } - } -}; - -export const AzureBackupFindRestorableTimeRangesRequestResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureBackupFindRestorableTimeRangesRequestResource", - modelProperties: { - ...DppWorkerRequest.type.modelProperties, - content: { - serializedName: "content", - type: { - name: "Composite", - className: "AzureBackupFindRestorableTimeRangesRequest" - } - } - } - } -}; + className: "TaggingCriteria", + }, + }, + }, + }, + }, + }, +}; + +export const AzureBackupFindRestorableTimeRangesRequestResource: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AzureBackupFindRestorableTimeRangesRequestResource", + modelProperties: { + ...DppWorkerRequest.type.modelProperties, + content: { + serializedName: "content", + type: { + name: "Composite", + className: "AzureBackupFindRestorableTimeRangesRequest", + }, + }, + }, + }, + }; export const AzureBackupParams: coreClient.CompositeMapper = { serializedName: "AzureBackupParams", @@ -4476,11 +4571,11 @@ export const AzureBackupParams: coreClient.CompositeMapper = { serializedName: "backupType", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AzureBackupRule: coreClient.CompositeMapper = { @@ -4496,25 +4591,25 @@ export const AzureBackupRule: coreClient.CompositeMapper = { serializedName: "backupParameters", type: { name: "Composite", - className: "BackupParameters" - } + className: "BackupParameters", + }, }, dataStore: { serializedName: "dataStore", type: { name: "Composite", - className: "DataStoreInfoBase" - } + className: "DataStoreInfoBase", + }, }, trigger: { serializedName: "trigger", type: { name: "Composite", - className: "TriggerContext" - } - } - } - } + className: "TriggerContext", + }, + }, + }, + }, }; export const AzureRetentionRule: coreClient.CompositeMapper = { @@ -4529,8 +4624,8 @@ export const AzureRetentionRule: coreClient.CompositeMapper = { isDefault: { serializedName: "isDefault", type: { - name: "Boolean" - } + name: "Boolean", + }, }, lifecycles: { serializedName: "lifecycles", @@ -4540,13 +4635,13 @@ export const AzureRetentionRule: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SourceLifeCycle" - } - } - } - } - } - } + className: "SourceLifeCycle", + }, + }, + }, + }, + }, + }, }; export const CopyOnExpiryOption: coreClient.CompositeMapper = { @@ -4557,9 +4652,9 @@ export const CopyOnExpiryOption: coreClient.CompositeMapper = { uberParent: "CopyOption", polymorphicDiscriminator: CopyOption.type.polymorphicDiscriminator, modelProperties: { - ...CopyOption.type.modelProperties - } - } + ...CopyOption.type.modelProperties, + }, + }, }; export const CustomCopyOption: coreClient.CompositeMapper = { @@ -4574,11 +4669,11 @@ export const CustomCopyOption: coreClient.CompositeMapper = { duration: { serializedName: "duration", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ImmediateCopyOption: coreClient.CompositeMapper = { @@ -4589,9 +4684,9 @@ export const ImmediateCopyOption: coreClient.CompositeMapper = { uberParent: "CopyOption", polymorphicDiscriminator: CopyOption.type.polymorphicDiscriminator, modelProperties: { - ...CopyOption.type.modelProperties - } - } + ...CopyOption.type.modelProperties, + }, + }, }; export const ScheduleBasedBackupCriteria: coreClient.CompositeMapper = { @@ -4609,10 +4704,10 @@ export const ScheduleBasedBackupCriteria: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, daysOfMonth: { serializedName: "daysOfMonth", @@ -4621,10 +4716,10 @@ export const ScheduleBasedBackupCriteria: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Day" - } - } - } + className: "Day", + }, + }, + }, }, daysOfTheWeek: { serializedName: "daysOfTheWeek", @@ -4632,10 +4727,10 @@ export const ScheduleBasedBackupCriteria: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, monthsOfYear: { serializedName: "monthsOfYear", @@ -4643,10 +4738,10 @@ export const ScheduleBasedBackupCriteria: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, scheduleTimes: { serializedName: "scheduleTimes", @@ -4654,10 +4749,10 @@ export const ScheduleBasedBackupCriteria: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "DateTime" - } - } - } + name: "DateTime", + }, + }, + }, }, weeksOfTheMonth: { serializedName: "weeksOfTheMonth", @@ -4665,13 +4760,13 @@ export const ScheduleBasedBackupCriteria: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ItemPathBasedRestoreCriteria: coreClient.CompositeMapper = { @@ -4688,15 +4783,15 @@ export const ItemPathBasedRestoreCriteria: coreClient.CompositeMapper = { serializedName: "itemPath", required: true, type: { - name: "String" - } + name: "String", + }, }, isPathRelativeToBackupItem: { serializedName: "isPathRelativeToBackupItem", required: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, subItemPathPrefix: { serializedName: "subItemPathPrefix", @@ -4704,13 +4799,13 @@ export const ItemPathBasedRestoreCriteria: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const RangeBasedItemLevelRestoreCriteria: coreClient.CompositeMapper = { @@ -4726,44 +4821,45 @@ export const RangeBasedItemLevelRestoreCriteria: coreClient.CompositeMapper = { minMatchingValue: { serializedName: "minMatchingValue", type: { - name: "String" - } + name: "String", + }, }, maxMatchingValue: { serializedName: "maxMatchingValue", type: { - name: "String" - } - } - } - } -}; - -export const KubernetesStorageClassRestoreCriteria: coreClient.CompositeMapper = { - serializedName: "KubernetesStorageClassRestoreCriteria", - type: { - name: "Composite", - className: "KubernetesStorageClassRestoreCriteria", - uberParent: "ItemLevelRestoreCriteria", - polymorphicDiscriminator: - ItemLevelRestoreCriteria.type.polymorphicDiscriminator, - modelProperties: { - ...ItemLevelRestoreCriteria.type.modelProperties, - selectedStorageClassName: { - serializedName: "selectedStorageClassName", - type: { - name: "String" - } - }, - provisioner: { - serializedName: "provisioner", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const KubernetesStorageClassRestoreCriteria: coreClient.CompositeMapper = + { + serializedName: "KubernetesStorageClassRestoreCriteria", + type: { + name: "Composite", + className: "KubernetesStorageClassRestoreCriteria", + uberParent: "ItemLevelRestoreCriteria", + polymorphicDiscriminator: + ItemLevelRestoreCriteria.type.polymorphicDiscriminator, + modelProperties: { + ...ItemLevelRestoreCriteria.type.modelProperties, + selectedStorageClassName: { + serializedName: "selectedStorageClassName", + type: { + name: "String", + }, + }, + provisioner: { + serializedName: "provisioner", + type: { + name: "String", + }, + }, + }, + }, + }; export const KubernetesPVRestoreCriteria: coreClient.CompositeMapper = { serializedName: "KubernetesPVRestoreCriteria", @@ -4778,17 +4874,17 @@ export const KubernetesPVRestoreCriteria: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, storageClassName: { serializedName: "storageClassName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const KubernetesClusterRestoreCriteria: coreClient.CompositeMapper = { @@ -4805,8 +4901,8 @@ export const KubernetesClusterRestoreCriteria: coreClient.CompositeMapper = { serializedName: "includeClusterScopeResources", required: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, includedNamespaces: { serializedName: "includedNamespaces", @@ -4814,10 +4910,10 @@ export const KubernetesClusterRestoreCriteria: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, excludedNamespaces: { serializedName: "excludedNamespaces", @@ -4825,10 +4921,10 @@ export const KubernetesClusterRestoreCriteria: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, includedResourceTypes: { serializedName: "includedResourceTypes", @@ -4836,10 +4932,10 @@ export const KubernetesClusterRestoreCriteria: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, excludedResourceTypes: { serializedName: "excludedResourceTypes", @@ -4847,10 +4943,10 @@ export const KubernetesClusterRestoreCriteria: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, labelSelectors: { serializedName: "labelSelectors", @@ -4858,29 +4954,29 @@ export const KubernetesClusterRestoreCriteria: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, persistentVolumeRestoreMode: { serializedName: "persistentVolumeRestoreMode", type: { - name: "String" - } + name: "String", + }, }, conflictPolicy: { serializedName: "conflictPolicy", type: { - name: "String" - } + name: "String", + }, }, namespaceMappings: { serializedName: "namespaceMappings", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, restoreHookReferences: { serializedName: "restoreHookReferences", @@ -4889,133 +4985,148 @@ export const KubernetesClusterRestoreCriteria: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NamespacedNameResource" - } - } - } - } - } - } -}; - -export const KubernetesClusterVaultTierRestoreCriteria: coreClient.CompositeMapper = { - serializedName: "KubernetesClusterVaultTierRestoreCriteria", - type: { - name: "Composite", - className: "KubernetesClusterVaultTierRestoreCriteria", - uberParent: "ItemLevelRestoreCriteria", - polymorphicDiscriminator: - ItemLevelRestoreCriteria.type.polymorphicDiscriminator, - modelProperties: { - ...ItemLevelRestoreCriteria.type.modelProperties, - includeClusterScopeResources: { - serializedName: "includeClusterScopeResources", - required: true, - type: { - name: "Boolean" - } - }, - includedNamespaces: { - serializedName: "includedNamespaces", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - excludedNamespaces: { - serializedName: "excludedNamespaces", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - includedResourceTypes: { - serializedName: "includedResourceTypes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - excludedResourceTypes: { - serializedName: "excludedResourceTypes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - labelSelectors: { - serializedName: "labelSelectors", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - persistentVolumeRestoreMode: { - serializedName: "persistentVolumeRestoreMode", - type: { - name: "String" - } - }, - conflictPolicy: { - serializedName: "conflictPolicy", - type: { - name: "String" - } - }, - namespaceMappings: { - serializedName: "namespaceMappings", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + className: "NamespacedNameResource", + }, + }, + }, }, - restoreHookReferences: { - serializedName: "restoreHookReferences", + resourceModifierReference: { + serializedName: "resourceModifierReference", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NamespacedNameResource" - } - } - } + name: "Composite", + className: "NamespacedNameResource", + }, }, - stagingResourceGroupId: { - serializedName: "stagingResourceGroupId", - type: { - name: "String" - } + }, + }, +}; + +export const KubernetesClusterVaultTierRestoreCriteria: coreClient.CompositeMapper = + { + serializedName: "KubernetesClusterVaultTierRestoreCriteria", + type: { + name: "Composite", + className: "KubernetesClusterVaultTierRestoreCriteria", + uberParent: "ItemLevelRestoreCriteria", + polymorphicDiscriminator: + ItemLevelRestoreCriteria.type.polymorphicDiscriminator, + modelProperties: { + ...ItemLevelRestoreCriteria.type.modelProperties, + includeClusterScopeResources: { + serializedName: "includeClusterScopeResources", + required: true, + type: { + name: "Boolean", + }, + }, + includedNamespaces: { + serializedName: "includedNamespaces", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + excludedNamespaces: { + serializedName: "excludedNamespaces", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + includedResourceTypes: { + serializedName: "includedResourceTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + excludedResourceTypes: { + serializedName: "excludedResourceTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + labelSelectors: { + serializedName: "labelSelectors", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + persistentVolumeRestoreMode: { + serializedName: "persistentVolumeRestoreMode", + type: { + name: "String", + }, + }, + conflictPolicy: { + serializedName: "conflictPolicy", + type: { + name: "String", + }, + }, + namespaceMappings: { + serializedName: "namespaceMappings", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + restoreHookReferences: { + serializedName: "restoreHookReferences", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NamespacedNameResource", + }, + }, + }, + }, + stagingResourceGroupId: { + serializedName: "stagingResourceGroupId", + type: { + name: "String", + }, + }, + stagingStorageAccountId: { + serializedName: "stagingStorageAccountId", + type: { + name: "String", + }, + }, + resourceModifierReference: { + serializedName: "resourceModifierReference", + type: { + name: "Composite", + className: "NamespacedNameResource", + }, + }, }, - stagingStorageAccountId: { - serializedName: "stagingStorageAccountId", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const BackupVaultResource: coreClient.CompositeMapper = { type: { @@ -5027,40 +5138,42 @@ export const BackupVaultResource: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "BackupVault" - } - } - } - } -}; - -export const AzureBackupRestoreWithRehydrationRequest: coreClient.CompositeMapper = { - serializedName: "AzureBackupRestoreWithRehydrationRequest", - type: { - name: "Composite", - className: "AzureBackupRestoreWithRehydrationRequest", - uberParent: "AzureBackupRecoveryPointBasedRestoreRequest", - polymorphicDiscriminator: - AzureBackupRecoveryPointBasedRestoreRequest.type.polymorphicDiscriminator, - modelProperties: { - ...AzureBackupRecoveryPointBasedRestoreRequest.type.modelProperties, - rehydrationPriority: { - serializedName: "rehydrationPriority", - required: true, - type: { - name: "String" - } + className: "BackupVault", + }, }, - rehydrationRetentionDuration: { - serializedName: "rehydrationRetentionDuration", - required: true, - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const AzureBackupRestoreWithRehydrationRequest: coreClient.CompositeMapper = + { + serializedName: "AzureBackupRestoreWithRehydrationRequest", + type: { + name: "Composite", + className: "AzureBackupRestoreWithRehydrationRequest", + uberParent: "AzureBackupRecoveryPointBasedRestoreRequest", + polymorphicDiscriminator: + AzureBackupRecoveryPointBasedRestoreRequest.type + .polymorphicDiscriminator, + modelProperties: { + ...AzureBackupRecoveryPointBasedRestoreRequest.type.modelProperties, + rehydrationPriority: { + serializedName: "rehydrationPriority", + required: true, + type: { + name: "String", + }, + }, + rehydrationRetentionDuration: { + serializedName: "rehydrationRetentionDuration", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const OperationResultGetHeaders: coreClient.CompositeMapper = { type: { @@ -5070,72 +5183,74 @@ export const OperationResultGetHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } + name: "String", + }, }, retryAfter: { serializedName: "retry-after", type: { - name: "Number" - } - } - } - } -}; - -export const BackupVaultOperationResultsGetHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupVaultOperationResultsGetHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } + name: "Number", + }, }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } + }, + }, +}; + +export const BackupVaultOperationResultsGetHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BackupVaultOperationResultsGetHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - } - } - } -}; - -export const BackupInstancesCreateOrUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupInstancesCreateOrUpdateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } + }, + }; + +export const BackupInstancesCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BackupInstancesCreateOrUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const BackupInstancesDeleteHeaders: coreClient.CompositeMapper = { type: { @@ -5145,23 +5260,23 @@ export const BackupInstancesDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } + name: "String", + }, }, retryAfter: { serializedName: "retry-after", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const BackupInstancesAdhocBackupHeaders: coreClient.CompositeMapper = { @@ -5172,159 +5287,164 @@ export const BackupInstancesAdhocBackupHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - } - } - } -}; - -export const BackupInstancesValidateForBackupHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupInstancesValidateForBackupHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } + name: "String", + }, }, azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } + name: "String", + }, }, retryAfter: { serializedName: "retry-after", type: { - name: "Number" - } - } - } - } -}; - -export const BackupInstancesTriggerCrossRegionRestoreHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupInstancesTriggerCrossRegionRestoreHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - } - } - } -}; - -export const BackupInstancesValidateCrossRegionRestoreHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupInstancesValidateCrossRegionRestoreHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } + name: "Number", + }, }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } + }, + }, +}; + +export const BackupInstancesValidateForBackupHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BackupInstancesValidateForBackupHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - } - } - } -}; - -export const BackupInstancesTriggerRehydrateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupInstancesTriggerRehydrateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } + }, + }; + +export const BackupInstancesTriggerCrossRegionRestoreHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BackupInstancesTriggerCrossRegionRestoreHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } + }, + }; + +export const BackupInstancesValidateCrossRegionRestoreHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BackupInstancesValidateCrossRegionRestoreHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - } - } - } -}; - -export const BackupInstancesTriggerRestoreHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupInstancesTriggerRestoreHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } + }, + }; + +export const BackupInstancesTriggerRehydrateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BackupInstancesTriggerRehydrateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } + }, + }; + +export const BackupInstancesTriggerRestoreHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BackupInstancesTriggerRestoreHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - } - } - } -}; + }, + }; export const BackupInstancesResumeBackupsHeaders: coreClient.CompositeMapper = { type: { @@ -5334,159 +5454,164 @@ export const BackupInstancesResumeBackupsHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - } - } - } -}; - -export const BackupInstancesResumeProtectionHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupInstancesResumeProtectionHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - } - } - } -}; - -export const BackupInstancesStopProtectionHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupInstancesStopProtectionHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } + name: "String", + }, }, azureAsyncOperation: { serializedName: "azure-asyncoperation", type: { - name: "String" - } + name: "String", + }, }, retryAfter: { serializedName: "retry-after", type: { - name: "Number" - } - } - } - } -}; - -export const BackupInstancesSuspendBackupsHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupInstancesSuspendBackupsHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } + name: "Number", + }, }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } + }, + }, +}; + +export const BackupInstancesResumeProtectionHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BackupInstancesResumeProtectionHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - } - } - } -}; - -export const BackupInstancesSyncBackupInstanceHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupInstancesSyncBackupInstanceHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } + }, + }; + +export const BackupInstancesStopProtectionHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BackupInstancesStopProtectionHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } + }, + }; + +export const BackupInstancesSuspendBackupsHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BackupInstancesSuspendBackupsHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - } - } - } -}; - -export const BackupInstancesValidateForRestoreHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BackupInstancesValidateForRestoreHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } + }, + }; + +export const BackupInstancesSyncBackupInstanceHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BackupInstancesSyncBackupInstanceHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } + }, + }; + +export const BackupInstancesValidateForRestoreHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BackupInstancesValidateForRestoreHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - } - } - } -}; + }, + }; export const ExportJobsTriggerHeaders: coreClient.CompositeMapper = { type: { @@ -5496,17 +5621,17 @@ export const ExportJobsTriggerHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, retryAfter: { serializedName: "retry-after", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export let discriminators = { @@ -5529,18 +5654,28 @@ export let discriminators = { BackupCriteria: BackupCriteria, ItemLevelRestoreCriteria: ItemLevelRestoreCriteria, "OperationExtendedInfo.OperationJobExtendedInfo": OperationJobExtendedInfo, - "FeatureValidationRequestBase.FeatureValidationRequest": FeatureValidationRequest, - "FeatureValidationResponseBase.FeatureValidationResponse": FeatureValidationResponse, + "FeatureValidationRequestBase.FeatureValidationRequest": + FeatureValidationRequest, + "FeatureValidationResponseBase.FeatureValidationResponse": + FeatureValidationResponse, "BaseBackupPolicy.BackupPolicy": BackupPolicy, "BaseResourceProperties.DefaultResourceProperties": DefaultResourceProperties, - "DataStoreParameters.AzureOperationalStoreParameters": AzureOperationalStoreParameters, - "BackupDatasourceParameters.KubernetesClusterBackupDatasourceParameters": KubernetesClusterBackupDatasourceParameters, - "BackupDatasourceParameters.BlobBackupDatasourceParameters": BlobBackupDatasourceParameters, - "AuthCredentials.SecretStoreBasedAuthCredentials": SecretStoreBasedAuthCredentials, - "AzureBackupRecoveryPoint.AzureBackupDiscreteRecoveryPoint": AzureBackupDiscreteRecoveryPoint, - "AzureBackupRestoreRequest.AzureBackupRecoveryPointBasedRestoreRequest": AzureBackupRecoveryPointBasedRestoreRequest, - "AzureBackupRestoreRequest.AzureBackupRecoveryTimeBasedRestoreRequest": AzureBackupRecoveryTimeBasedRestoreRequest, - "RestoreTargetInfoBase.ItemLevelRestoreTargetInfo": ItemLevelRestoreTargetInfo, + "DataStoreParameters.AzureOperationalStoreParameters": + AzureOperationalStoreParameters, + "BackupDatasourceParameters.KubernetesClusterBackupDatasourceParameters": + KubernetesClusterBackupDatasourceParameters, + "BackupDatasourceParameters.BlobBackupDatasourceParameters": + BlobBackupDatasourceParameters, + "AuthCredentials.SecretStoreBasedAuthCredentials": + SecretStoreBasedAuthCredentials, + "AzureBackupRecoveryPoint.AzureBackupDiscreteRecoveryPoint": + AzureBackupDiscreteRecoveryPoint, + "AzureBackupRestoreRequest.AzureBackupRecoveryPointBasedRestoreRequest": + AzureBackupRecoveryPointBasedRestoreRequest, + "AzureBackupRestoreRequest.AzureBackupRecoveryTimeBasedRestoreRequest": + AzureBackupRecoveryTimeBasedRestoreRequest, + "RestoreTargetInfoBase.ItemLevelRestoreTargetInfo": + ItemLevelRestoreTargetInfo, "RestoreTargetInfoBase.RestoreFilesTargetInfo": RestoreFilesTargetInfo, "RestoreTargetInfoBase.RestoreTargetInfo": RestoreTargetInfo, "DeleteOption.AbsoluteDeleteOption": AbsoluteDeleteOption, @@ -5553,11 +5688,18 @@ export let discriminators = { "CopyOption.CustomCopyOption": CustomCopyOption, "CopyOption.ImmediateCopyOption": ImmediateCopyOption, "BackupCriteria.ScheduleBasedBackupCriteria": ScheduleBasedBackupCriteria, - "ItemLevelRestoreCriteria.ItemPathBasedRestoreCriteria": ItemPathBasedRestoreCriteria, - "ItemLevelRestoreCriteria.RangeBasedItemLevelRestoreCriteria": RangeBasedItemLevelRestoreCriteria, - "ItemLevelRestoreCriteria.KubernetesStorageClassRestoreCriteria": KubernetesStorageClassRestoreCriteria, - "ItemLevelRestoreCriteria.KubernetesPVRestoreCriteria": KubernetesPVRestoreCriteria, - "ItemLevelRestoreCriteria.KubernetesClusterRestoreCriteria": KubernetesClusterRestoreCriteria, - "ItemLevelRestoreCriteria.KubernetesClusterVaultTierRestoreCriteria": KubernetesClusterVaultTierRestoreCriteria, - "AzureBackupRecoveryPointBasedRestoreRequest.AzureBackupRestoreWithRehydrationRequest": AzureBackupRestoreWithRehydrationRequest + "ItemLevelRestoreCriteria.ItemPathBasedRestoreCriteria": + ItemPathBasedRestoreCriteria, + "ItemLevelRestoreCriteria.RangeBasedItemLevelRestoreCriteria": + RangeBasedItemLevelRestoreCriteria, + "ItemLevelRestoreCriteria.KubernetesStorageClassRestoreCriteria": + KubernetesStorageClassRestoreCriteria, + "ItemLevelRestoreCriteria.KubernetesPVRestoreCriteria": + KubernetesPVRestoreCriteria, + "ItemLevelRestoreCriteria.KubernetesClusterRestoreCriteria": + KubernetesClusterRestoreCriteria, + "ItemLevelRestoreCriteria.KubernetesClusterVaultTierRestoreCriteria": + KubernetesClusterVaultTierRestoreCriteria, + "AzureBackupRecoveryPointBasedRestoreRequest.AzureBackupRestoreWithRehydrationRequest": + AzureBackupRestoreWithRehydrationRequest, }; diff --git a/sdk/dataprotection/arm-dataprotection/src/models/parameters.ts b/sdk/dataprotection/arm-dataprotection/src/models/parameters.ts index c4bcab1816d2..61e976959cd1 100644 --- a/sdk/dataprotection/arm-dataprotection/src/models/parameters.ts +++ b/sdk/dataprotection/arm-dataprotection/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { BackupVaultResource as BackupVaultResourceMapper, @@ -33,7 +33,7 @@ import { ResourceGuardResource as ResourceGuardResourceMapper, PatchResourceGuardInput as PatchResourceGuardInputMapper, ResourceGuardProxyBaseResource as ResourceGuardProxyBaseResourceMapper, - UnlockDeleteRequest as UnlockDeleteRequestMapper + UnlockDeleteRequest as UnlockDeleteRequestMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -43,9 +43,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -54,22 +54,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", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const subscriptionId: OperationURLParameter = { @@ -78,9 +78,9 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "Uuid" - } - } + name: "Uuid", + }, + }, }; export const resourceGroupName: OperationURLParameter = { @@ -88,14 +88,14 @@ export const resourceGroupName: OperationURLParameter = { mapper: { constraints: { MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const vaultName: OperationURLParameter = { @@ -104,9 +104,9 @@ export const vaultName: OperationURLParameter = { serializedName: "vaultName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const contentType: OperationParameter = { @@ -116,24 +116,24 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: BackupVaultResourceMapper + mapper: BackupVaultResourceMapper, }; export const parameters1: OperationParameter = { parameterPath: "parameters", - mapper: PatchResourceRequestInputMapper + mapper: PatchResourceRequestInputMapper, }; export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: CheckNameAvailabilityRequestMapper + mapper: CheckNameAvailabilityRequestMapper, }; export const location: OperationURLParameter = { @@ -142,9 +142,9 @@ export const location: OperationURLParameter = { serializedName: "location", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -153,10 +153,10 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const operationId: OperationURLParameter = { @@ -165,14 +165,14 @@ export const operationId: OperationURLParameter = { serializedName: "operationId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: FeatureValidationRequestBaseMapper + mapper: FeatureValidationRequestBaseMapper, }; export const backupPolicyName: OperationURLParameter = { @@ -181,14 +181,14 @@ export const backupPolicyName: OperationURLParameter = { serializedName: "backupPolicyName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters4: OperationParameter = { parameterPath: "parameters", - mapper: BaseBackupPolicyResourceMapper + mapper: BaseBackupPolicyResourceMapper, }; export const backupInstanceName: OperationURLParameter = { @@ -197,68 +197,68 @@ export const backupInstanceName: OperationURLParameter = { serializedName: "backupInstanceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters5: OperationParameter = { parameterPath: "parameters", - mapper: BackupInstanceResourceMapper + mapper: BackupInstanceResourceMapper, }; export const parameters6: OperationParameter = { parameterPath: "parameters", - mapper: TriggerBackupRequestMapper + mapper: TriggerBackupRequestMapper, }; export const parameters7: OperationParameter = { parameterPath: "parameters", - mapper: ValidateForBackupRequestMapper + mapper: ValidateForBackupRequestMapper, }; export const parameters8: OperationParameter = { parameterPath: "parameters", - mapper: CrossRegionRestoreRequestObjectMapper + mapper: CrossRegionRestoreRequestObjectMapper, }; export const location1: OperationURLParameter = { parameterPath: "location", mapper: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "location", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters9: OperationParameter = { parameterPath: "parameters", - mapper: ValidateCrossRegionRestoreRequestObjectMapper + mapper: ValidateCrossRegionRestoreRequestObjectMapper, }; export const parameters10: OperationParameter = { parameterPath: "parameters", - mapper: AzureBackupRehydrationRequestMapper + mapper: AzureBackupRehydrationRequestMapper, }; export const parameters11: OperationParameter = { parameterPath: "parameters", - mapper: AzureBackupRestoreRequestMapper + mapper: AzureBackupRestoreRequestMapper, }; export const parameters12: OperationParameter = { parameterPath: "parameters", - mapper: SyncBackupInstanceRequestMapper + mapper: SyncBackupInstanceRequestMapper, }; export const parameters13: OperationParameter = { parameterPath: "parameters", - mapper: ValidateRestoreRequestObjectMapper + mapper: ValidateRestoreRequestObjectMapper, }; export const filter: OperationQueryParameter = { @@ -266,9 +266,9 @@ export const filter: OperationQueryParameter = { mapper: { serializedName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const skipToken: OperationQueryParameter = { @@ -276,9 +276,9 @@ export const skipToken: OperationQueryParameter = { mapper: { serializedName: "$skipToken", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const recoveryPointId: OperationURLParameter = { @@ -287,24 +287,24 @@ export const recoveryPointId: OperationURLParameter = { serializedName: "recoveryPointId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters14: OperationParameter = { parameterPath: "parameters", - mapper: FetchSecondaryRPsRequestParametersMapper + mapper: FetchSecondaryRPsRequestParametersMapper, }; export const parameters15: OperationParameter = { parameterPath: "parameters", - mapper: CrossRegionRestoreJobRequestMapper + mapper: CrossRegionRestoreJobRequestMapper, }; export const parameters16: OperationParameter = { parameterPath: "parameters", - mapper: CrossRegionRestoreJobsRequestMapper + mapper: CrossRegionRestoreJobsRequestMapper, }; export const jobId: OperationURLParameter = { @@ -313,19 +313,19 @@ export const jobId: OperationURLParameter = { serializedName: "jobId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters17: OperationParameter = { parameterPath: "parameters", - mapper: AzureBackupFindRestorableTimeRangesRequestMapper + mapper: AzureBackupFindRestorableTimeRangesRequestMapper, }; export const parameters18: OperationParameter = { parameterPath: "parameters", - mapper: ResourceGuardResourceMapper + mapper: ResourceGuardResourceMapper, }; export const resourceGuardsName: OperationURLParameter = { @@ -334,14 +334,14 @@ export const resourceGuardsName: OperationURLParameter = { serializedName: "resourceGuardsName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters19: OperationParameter = { parameterPath: "parameters", - mapper: PatchResourceGuardInputMapper + mapper: PatchResourceGuardInputMapper, }; export const requestName: OperationURLParameter = { @@ -350,31 +350,31 @@ export const requestName: OperationURLParameter = { serializedName: "requestName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceGuardProxyName: OperationURLParameter = { parameterPath: "resourceGuardProxyName", mapper: { constraints: { - Pattern: new RegExp("^[A-Za-z0-9]*$") + Pattern: new RegExp("^[A-Za-z0-9]*$"), }, serializedName: "resourceGuardProxyName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters20: OperationParameter = { parameterPath: "parameters", - mapper: ResourceGuardProxyBaseResourceMapper + mapper: ResourceGuardProxyBaseResourceMapper, }; export const parameters21: OperationParameter = { parameterPath: "parameters", - mapper: UnlockDeleteRequestMapper + mapper: UnlockDeleteRequestMapper, }; diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/backupInstances.ts b/sdk/dataprotection/arm-dataprotection/src/operations/backupInstances.ts index ccaf94dc67c4..7d445cb5cc10 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/backupInstances.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/backupInstances.ts @@ -16,7 +16,7 @@ import { DataProtectionClient } from "../dataProtectionClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -58,7 +58,7 @@ import { ValidateRestoreRequestObject, BackupInstancesValidateForRestoreOptionalParams, BackupInstancesValidateForRestoreResponse, - BackupInstancesListNextResponse + BackupInstancesListNextResponse, } from "../models"; /// @@ -83,7 +83,7 @@ export class BackupInstancesImpl implements BackupInstances { public list( resourceGroupName: string, vaultName: string, - options?: BackupInstancesListOptionalParams + options?: BackupInstancesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, vaultName, options); return { @@ -101,9 +101,9 @@ export class BackupInstancesImpl implements BackupInstances { resourceGroupName, vaultName, options, - settings + settings, ); - } + }, }; } @@ -111,7 +111,7 @@ export class BackupInstancesImpl implements BackupInstances { resourceGroupName: string, vaultName: string, options?: BackupInstancesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BackupInstancesListResponse; let continuationToken = settings?.continuationToken; @@ -127,7 +127,7 @@ export class BackupInstancesImpl implements BackupInstances { resourceGroupName, vaultName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -139,12 +139,12 @@ export class BackupInstancesImpl implements BackupInstances { private async *listPagingAll( resourceGroupName: string, vaultName: string, - options?: BackupInstancesListOptionalParams + options?: BackupInstancesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, vaultName, - options + options, )) { yield* page; } @@ -159,11 +159,11 @@ export class BackupInstancesImpl implements BackupInstances { private _list( resourceGroupName: string, vaultName: string, - options?: BackupInstancesListOptionalParams + options?: BackupInstancesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, options }, - listOperationSpec + listOperationSpec, ); } @@ -178,11 +178,11 @@ export class BackupInstancesImpl implements BackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: BackupInstancesGetOptionalParams + options?: BackupInstancesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, backupInstanceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -199,7 +199,7 @@ export class BackupInstancesImpl implements BackupInstances { vaultName: string, backupInstanceName: string, parameters: BackupInstanceResource, - options?: BackupInstancesCreateOrUpdateOptionalParams + options?: BackupInstancesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -208,21 +208,20 @@ export class BackupInstancesImpl implements BackupInstances { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -231,8 +230,8 @@ export class BackupInstancesImpl implements BackupInstances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -240,8 +239,8 @@ export class BackupInstancesImpl implements BackupInstances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -252,16 +251,16 @@ export class BackupInstancesImpl implements BackupInstances { vaultName, backupInstanceName, parameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< BackupInstancesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -280,14 +279,14 @@ export class BackupInstancesImpl implements BackupInstances { vaultName: string, backupInstanceName: string, parameters: BackupInstanceResource, - options?: BackupInstancesCreateOrUpdateOptionalParams + options?: BackupInstancesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, vaultName, backupInstanceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -303,25 +302,24 @@ export class BackupInstancesImpl implements BackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: BackupInstancesDeleteOptionalParams + options?: BackupInstancesDeleteOptionalParams, ): 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); @@ -330,8 +328,8 @@ export class BackupInstancesImpl implements BackupInstances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -339,19 +337,19 @@ export class BackupInstancesImpl implements BackupInstances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vaultName, backupInstanceName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -368,13 +366,13 @@ export class BackupInstancesImpl implements BackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: BackupInstancesDeleteOptionalParams + options?: BackupInstancesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, vaultName, backupInstanceName, - options + options, ); return poller.pollUntilDone(); } @@ -392,7 +390,7 @@ export class BackupInstancesImpl implements BackupInstances { vaultName: string, backupInstanceName: string, parameters: TriggerBackupRequest, - options?: BackupInstancesAdhocBackupOptionalParams + options?: BackupInstancesAdhocBackupOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -401,21 +399,20 @@ export class BackupInstancesImpl implements BackupInstances { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -424,8 +421,8 @@ export class BackupInstancesImpl implements BackupInstances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -433,8 +430,8 @@ export class BackupInstancesImpl implements BackupInstances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -445,9 +442,9 @@ export class BackupInstancesImpl implements BackupInstances { vaultName, backupInstanceName, parameters, - options + options, }, - spec: adhocBackupOperationSpec + spec: adhocBackupOperationSpec, }); const poller = await createHttpPoller< BackupInstancesAdhocBackupResponse, @@ -455,7 +452,7 @@ export class BackupInstancesImpl implements BackupInstances { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -474,14 +471,14 @@ export class BackupInstancesImpl implements BackupInstances { vaultName: string, backupInstanceName: string, parameters: TriggerBackupRequest, - options?: BackupInstancesAdhocBackupOptionalParams + options?: BackupInstancesAdhocBackupOptionalParams, ): Promise { const poller = await this.beginAdhocBackup( resourceGroupName, vaultName, backupInstanceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -497,7 +494,7 @@ export class BackupInstancesImpl implements BackupInstances { resourceGroupName: string, vaultName: string, parameters: ValidateForBackupRequest, - options?: BackupInstancesValidateForBackupOptionalParams + options?: BackupInstancesValidateForBackupOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -506,21 +503,20 @@ export class BackupInstancesImpl implements BackupInstances { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.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 +525,8 @@ export class BackupInstancesImpl implements BackupInstances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -538,15 +534,15 @@ export class BackupInstancesImpl implements BackupInstances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vaultName, parameters, options }, - spec: validateForBackupOperationSpec + spec: validateForBackupOperationSpec, }); const poller = await createHttpPoller< BackupInstancesValidateForBackupResponse, @@ -554,7 +550,7 @@ export class BackupInstancesImpl implements BackupInstances { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -571,13 +567,13 @@ export class BackupInstancesImpl implements BackupInstances { resourceGroupName: string, vaultName: string, parameters: ValidateForBackupRequest, - options?: BackupInstancesValidateForBackupOptionalParams + options?: BackupInstancesValidateForBackupOptionalParams, ): Promise { const poller = await this.beginValidateForBackup( resourceGroupName, vaultName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -595,7 +591,7 @@ export class BackupInstancesImpl implements BackupInstances { vaultName: string, backupInstanceName: string, operationId: string, - options?: BackupInstancesGetBackupInstanceOperationResultOptionalParams + options?: BackupInstancesGetBackupInstanceOperationResultOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -603,9 +599,9 @@ export class BackupInstancesImpl implements BackupInstances { vaultName, backupInstanceName, operationId, - options + options, }, - getBackupInstanceOperationResultOperationSpec + getBackupInstanceOperationResultOperationSpec, ); } @@ -620,7 +616,7 @@ export class BackupInstancesImpl implements BackupInstances { resourceGroupName: string, location: string, parameters: CrossRegionRestoreRequestObject, - options?: BackupInstancesTriggerCrossRegionRestoreOptionalParams + options?: BackupInstancesTriggerCrossRegionRestoreOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -629,21 +625,20 @@ export class BackupInstancesImpl implements BackupInstances { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -652,8 +647,8 @@ export class BackupInstancesImpl implements BackupInstances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -661,15 +656,15 @@ export class BackupInstancesImpl implements BackupInstances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, location, parameters, options }, - spec: triggerCrossRegionRestoreOperationSpec + spec: triggerCrossRegionRestoreOperationSpec, }); const poller = await createHttpPoller< BackupInstancesTriggerCrossRegionRestoreResponse, @@ -677,7 +672,7 @@ export class BackupInstancesImpl implements BackupInstances { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -694,13 +689,13 @@ export class BackupInstancesImpl implements BackupInstances { resourceGroupName: string, location: string, parameters: CrossRegionRestoreRequestObject, - options?: BackupInstancesTriggerCrossRegionRestoreOptionalParams + options?: BackupInstancesTriggerCrossRegionRestoreOptionalParams, ): Promise { const poller = await this.beginTriggerCrossRegionRestore( resourceGroupName, location, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -716,7 +711,7 @@ export class BackupInstancesImpl implements BackupInstances { resourceGroupName: string, location: string, parameters: ValidateCrossRegionRestoreRequestObject, - options?: BackupInstancesValidateCrossRegionRestoreOptionalParams + options?: BackupInstancesValidateCrossRegionRestoreOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -725,21 +720,20 @@ export class BackupInstancesImpl implements BackupInstances { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -748,8 +742,8 @@ export class BackupInstancesImpl implements BackupInstances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -757,15 +751,15 @@ export class BackupInstancesImpl implements BackupInstances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, location, parameters, options }, - spec: validateCrossRegionRestoreOperationSpec + spec: validateCrossRegionRestoreOperationSpec, }); const poller = await createHttpPoller< BackupInstancesValidateCrossRegionRestoreResponse, @@ -773,7 +767,7 @@ export class BackupInstancesImpl implements BackupInstances { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -790,13 +784,13 @@ export class BackupInstancesImpl implements BackupInstances { resourceGroupName: string, location: string, parameters: ValidateCrossRegionRestoreRequestObject, - options?: BackupInstancesValidateCrossRegionRestoreOptionalParams + options?: BackupInstancesValidateCrossRegionRestoreOptionalParams, ): Promise { const poller = await this.beginValidateCrossRegionRestore( resourceGroupName, location, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -814,7 +808,7 @@ export class BackupInstancesImpl implements BackupInstances { vaultName: string, backupInstanceName: string, parameters: AzureBackupRehydrationRequest, - options?: BackupInstancesTriggerRehydrateOptionalParams + options?: BackupInstancesTriggerRehydrateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -823,21 +817,20 @@ export class BackupInstancesImpl implements BackupInstances { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -846,8 +839,8 @@ export class BackupInstancesImpl implements BackupInstances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -855,8 +848,8 @@ export class BackupInstancesImpl implements BackupInstances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -867,16 +860,16 @@ export class BackupInstancesImpl implements BackupInstances { vaultName, backupInstanceName, parameters, - options + options, }, - spec: triggerRehydrateOperationSpec + spec: triggerRehydrateOperationSpec, }); const poller = await createHttpPoller< BackupInstancesTriggerRehydrateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -895,14 +888,14 @@ export class BackupInstancesImpl implements BackupInstances { vaultName: string, backupInstanceName: string, parameters: AzureBackupRehydrationRequest, - options?: BackupInstancesTriggerRehydrateOptionalParams + options?: BackupInstancesTriggerRehydrateOptionalParams, ): Promise { const poller = await this.beginTriggerRehydrate( resourceGroupName, vaultName, backupInstanceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -920,7 +913,7 @@ export class BackupInstancesImpl implements BackupInstances { vaultName: string, backupInstanceName: string, parameters: AzureBackupRestoreRequestUnion, - options?: BackupInstancesTriggerRestoreOptionalParams + options?: BackupInstancesTriggerRestoreOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -929,21 +922,20 @@ export class BackupInstancesImpl implements BackupInstances { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -952,8 +944,8 @@ export class BackupInstancesImpl implements BackupInstances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -961,8 +953,8 @@ export class BackupInstancesImpl implements BackupInstances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -973,9 +965,9 @@ export class BackupInstancesImpl implements BackupInstances { vaultName, backupInstanceName, parameters, - options + options, }, - spec: triggerRestoreOperationSpec + spec: triggerRestoreOperationSpec, }); const poller = await createHttpPoller< BackupInstancesTriggerRestoreResponse, @@ -983,7 +975,7 @@ export class BackupInstancesImpl implements BackupInstances { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1002,14 +994,14 @@ export class BackupInstancesImpl implements BackupInstances { vaultName: string, backupInstanceName: string, parameters: AzureBackupRestoreRequestUnion, - options?: BackupInstancesTriggerRestoreOptionalParams + options?: BackupInstancesTriggerRestoreOptionalParams, ): Promise { const poller = await this.beginTriggerRestore( resourceGroupName, vaultName, backupInstanceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1025,25 +1017,24 @@ export class BackupInstancesImpl implements BackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: BackupInstancesResumeBackupsOptionalParams + options?: BackupInstancesResumeBackupsOptionalParams, ): 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); @@ -1052,8 +1043,8 @@ export class BackupInstancesImpl implements BackupInstances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1061,19 +1052,19 @@ export class BackupInstancesImpl implements BackupInstances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vaultName, backupInstanceName, options }, - spec: resumeBackupsOperationSpec + spec: resumeBackupsOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1090,13 +1081,13 @@ export class BackupInstancesImpl implements BackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: BackupInstancesResumeBackupsOptionalParams + options?: BackupInstancesResumeBackupsOptionalParams, ): Promise { const poller = await this.beginResumeBackups( resourceGroupName, vaultName, backupInstanceName, - options + options, ); return poller.pollUntilDone(); } @@ -1112,25 +1103,24 @@ export class BackupInstancesImpl implements BackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: BackupInstancesResumeProtectionOptionalParams + options?: BackupInstancesResumeProtectionOptionalParams, ): 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); @@ -1139,8 +1129,8 @@ export class BackupInstancesImpl implements BackupInstances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1148,19 +1138,19 @@ export class BackupInstancesImpl implements BackupInstances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vaultName, backupInstanceName, options }, - spec: resumeProtectionOperationSpec + spec: resumeProtectionOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1177,13 +1167,13 @@ export class BackupInstancesImpl implements BackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: BackupInstancesResumeProtectionOptionalParams + options?: BackupInstancesResumeProtectionOptionalParams, ): Promise { const poller = await this.beginResumeProtection( resourceGroupName, vaultName, backupInstanceName, - options + options, ); return poller.pollUntilDone(); } @@ -1199,25 +1189,24 @@ export class BackupInstancesImpl implements BackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: BackupInstancesStopProtectionOptionalParams + options?: BackupInstancesStopProtectionOptionalParams, ): 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); @@ -1226,8 +1215,8 @@ export class BackupInstancesImpl implements BackupInstances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1235,19 +1224,19 @@ export class BackupInstancesImpl implements BackupInstances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vaultName, backupInstanceName, options }, - spec: stopProtectionOperationSpec + spec: stopProtectionOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1264,13 +1253,13 @@ export class BackupInstancesImpl implements BackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: BackupInstancesStopProtectionOptionalParams + options?: BackupInstancesStopProtectionOptionalParams, ): Promise { const poller = await this.beginStopProtection( resourceGroupName, vaultName, backupInstanceName, - options + options, ); return poller.pollUntilDone(); } @@ -1287,25 +1276,24 @@ export class BackupInstancesImpl implements BackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: BackupInstancesSuspendBackupsOptionalParams + options?: BackupInstancesSuspendBackupsOptionalParams, ): 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); @@ -1314,8 +1302,8 @@ export class BackupInstancesImpl implements BackupInstances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1323,19 +1311,19 @@ export class BackupInstancesImpl implements BackupInstances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vaultName, backupInstanceName, options }, - spec: suspendBackupsOperationSpec + spec: suspendBackupsOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1353,13 +1341,13 @@ export class BackupInstancesImpl implements BackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: BackupInstancesSuspendBackupsOptionalParams + options?: BackupInstancesSuspendBackupsOptionalParams, ): Promise { const poller = await this.beginSuspendBackups( resourceGroupName, vaultName, backupInstanceName, - options + options, ); return poller.pollUntilDone(); } @@ -1378,25 +1366,24 @@ export class BackupInstancesImpl implements BackupInstances { vaultName: string, backupInstanceName: string, parameters: SyncBackupInstanceRequest, - options?: BackupInstancesSyncBackupInstanceOptionalParams + options?: BackupInstancesSyncBackupInstanceOptionalParams, ): 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); @@ -1405,8 +1392,8 @@ export class BackupInstancesImpl implements BackupInstances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1414,8 +1401,8 @@ export class BackupInstancesImpl implements BackupInstances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1426,13 +1413,13 @@ export class BackupInstancesImpl implements BackupInstances { vaultName, backupInstanceName, parameters, - options + options, }, - spec: syncBackupInstanceOperationSpec + spec: syncBackupInstanceOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1452,14 +1439,14 @@ export class BackupInstancesImpl implements BackupInstances { vaultName: string, backupInstanceName: string, parameters: SyncBackupInstanceRequest, - options?: BackupInstancesSyncBackupInstanceOptionalParams + options?: BackupInstancesSyncBackupInstanceOptionalParams, ): Promise { const poller = await this.beginSyncBackupInstance( resourceGroupName, vaultName, backupInstanceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1477,7 +1464,7 @@ export class BackupInstancesImpl implements BackupInstances { vaultName: string, backupInstanceName: string, parameters: ValidateRestoreRequestObject, - options?: BackupInstancesValidateForRestoreOptionalParams + options?: BackupInstancesValidateForRestoreOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1486,21 +1473,20 @@ export class BackupInstancesImpl implements BackupInstances { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1509,8 +1495,8 @@ export class BackupInstancesImpl implements BackupInstances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1518,8 +1504,8 @@ export class BackupInstancesImpl implements BackupInstances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1530,9 +1516,9 @@ export class BackupInstancesImpl implements BackupInstances { vaultName, backupInstanceName, parameters, - options + options, }, - spec: validateForRestoreOperationSpec + spec: validateForRestoreOperationSpec, }); const poller = await createHttpPoller< BackupInstancesValidateForRestoreResponse, @@ -1540,7 +1526,7 @@ export class BackupInstancesImpl implements BackupInstances { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1559,14 +1545,14 @@ export class BackupInstancesImpl implements BackupInstances { vaultName: string, backupInstanceName: string, parameters: ValidateRestoreRequestObject, - options?: BackupInstancesValidateForRestoreOptionalParams + options?: BackupInstancesValidateForRestoreOptionalParams, ): Promise { const poller = await this.beginValidateForRestore( resourceGroupName, vaultName, backupInstanceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1582,11 +1568,11 @@ export class BackupInstancesImpl implements BackupInstances { resourceGroupName: string, vaultName: string, nextLink: string, - options?: BackupInstancesListNextOptionalParams + options?: BackupInstancesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -1594,38 +1580,36 @@ export class BackupInstancesImpl implements BackupInstances { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BackupInstanceResourceList + bodyMapper: Mappers.BackupInstanceResourceList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vaultName + Parameters.vaultName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BackupInstanceResource + bodyMapper: Mappers.BackupInstanceResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1633,31 +1617,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.backupInstanceName + Parameters.backupInstanceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.BackupInstanceResource + bodyMapper: Mappers.BackupInstanceResource, }, 201: { - bodyMapper: Mappers.BackupInstanceResource + bodyMapper: Mappers.BackupInstanceResource, }, 202: { - bodyMapper: Mappers.BackupInstanceResource + bodyMapper: Mappers.BackupInstanceResource, }, 204: { - bodyMapper: Mappers.BackupInstanceResource + bodyMapper: Mappers.BackupInstanceResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], @@ -1666,15 +1649,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.backupInstanceName + Parameters.backupInstanceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}", httpMethod: "DELETE", responses: { 200: {}, @@ -1682,8 +1664,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1691,31 +1673,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.backupInstanceName + Parameters.backupInstanceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const adhocBackupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/backup", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/backup", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationJobExtendedInfo + bodyMapper: Mappers.OperationJobExtendedInfo, }, 201: { - bodyMapper: Mappers.OperationJobExtendedInfo + bodyMapper: Mappers.OperationJobExtendedInfo, }, 202: { - bodyMapper: Mappers.OperationJobExtendedInfo + bodyMapper: Mappers.OperationJobExtendedInfo, }, 204: { - bodyMapper: Mappers.OperationJobExtendedInfo + bodyMapper: Mappers.OperationJobExtendedInfo, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], @@ -1724,32 +1705,31 @@ const adhocBackupOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.backupInstanceName + Parameters.backupInstanceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const validateForBackupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/validateForBackup", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/validateForBackup", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationJobExtendedInfo + bodyMapper: Mappers.OperationJobExtendedInfo, }, 201: { - bodyMapper: Mappers.OperationJobExtendedInfo + bodyMapper: Mappers.OperationJobExtendedInfo, }, 202: { - bodyMapper: Mappers.OperationJobExtendedInfo + bodyMapper: Mappers.OperationJobExtendedInfo, }, 204: { - bodyMapper: Mappers.OperationJobExtendedInfo + bodyMapper: Mappers.OperationJobExtendedInfo, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], @@ -1757,57 +1737,56 @@ const validateForBackupOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vaultName + Parameters.vaultName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; -const getBackupInstanceOperationResultOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/operationResults/{operationId}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.BackupInstanceResource +const getBackupInstanceOperationResultOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/operationResults/{operationId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BackupInstanceResource, + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError, + }, }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.vaultName, - Parameters.operationId, - Parameters.backupInstanceName - ], - headerParameters: [Parameters.accept], - serializer -}; + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.vaultName, + Parameters.operationId, + Parameters.backupInstanceName, + ], + headerParameters: [Parameters.accept], + serializer, + }; const triggerCrossRegionRestoreOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/locations/{location}/crossRegionRestore", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/locations/{location}/crossRegionRestore", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationJobExtendedInfo + bodyMapper: Mappers.OperationJobExtendedInfo, }, 201: { - bodyMapper: Mappers.OperationJobExtendedInfo + bodyMapper: Mappers.OperationJobExtendedInfo, }, 202: { - bodyMapper: Mappers.OperationJobExtendedInfo + bodyMapper: Mappers.OperationJobExtendedInfo, }, 204: { - bodyMapper: Mappers.OperationJobExtendedInfo + bodyMapper: Mappers.OperationJobExtendedInfo, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], @@ -1815,32 +1794,31 @@ const triggerCrossRegionRestoreOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const validateCrossRegionRestoreOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/locations/{location}/validateCrossRegionRestore", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/locations/{location}/validateCrossRegionRestore", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationJobExtendedInfo + bodyMapper: Mappers.OperationJobExtendedInfo, }, 201: { - bodyMapper: Mappers.OperationJobExtendedInfo + bodyMapper: Mappers.OperationJobExtendedInfo, }, 202: { - bodyMapper: Mappers.OperationJobExtendedInfo + bodyMapper: Mappers.OperationJobExtendedInfo, }, 204: { - bodyMapper: Mappers.OperationJobExtendedInfo + bodyMapper: Mappers.OperationJobExtendedInfo, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], @@ -1848,32 +1826,31 @@ const validateCrossRegionRestoreOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const triggerRehydrateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/rehydrate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/rehydrate", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.BackupInstancesTriggerRehydrateHeaders + headersMapper: Mappers.BackupInstancesTriggerRehydrateHeaders, }, 201: { - headersMapper: Mappers.BackupInstancesTriggerRehydrateHeaders + headersMapper: Mappers.BackupInstancesTriggerRehydrateHeaders, }, 202: { - headersMapper: Mappers.BackupInstancesTriggerRehydrateHeaders + headersMapper: Mappers.BackupInstancesTriggerRehydrateHeaders, }, 204: { - headersMapper: Mappers.BackupInstancesTriggerRehydrateHeaders + headersMapper: Mappers.BackupInstancesTriggerRehydrateHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], @@ -1882,32 +1859,31 @@ const triggerRehydrateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.backupInstanceName + Parameters.backupInstanceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const triggerRestoreOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/restore", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/restore", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationJobExtendedInfo + bodyMapper: Mappers.OperationJobExtendedInfo, }, 201: { - bodyMapper: Mappers.OperationJobExtendedInfo + bodyMapper: Mappers.OperationJobExtendedInfo, }, 202: { - bodyMapper: Mappers.OperationJobExtendedInfo + bodyMapper: Mappers.OperationJobExtendedInfo, }, 204: { - bodyMapper: Mappers.OperationJobExtendedInfo + bodyMapper: Mappers.OperationJobExtendedInfo, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters11, queryParameters: [Parameters.apiVersion], @@ -1916,15 +1892,14 @@ const triggerRestoreOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.backupInstanceName + Parameters.backupInstanceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const resumeBackupsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/resumeBackups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/resumeBackups", httpMethod: "POST", responses: { 200: {}, @@ -1932,8 +1907,8 @@ const resumeBackupsOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1941,14 +1916,13 @@ const resumeBackupsOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.backupInstanceName + Parameters.backupInstanceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const resumeProtectionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/resumeProtection", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/resumeProtection", httpMethod: "POST", responses: { 200: {}, @@ -1956,8 +1930,8 @@ const resumeProtectionOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1965,14 +1939,13 @@ const resumeProtectionOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.backupInstanceName + Parameters.backupInstanceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const stopProtectionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/stopProtection", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/stopProtection", httpMethod: "POST", responses: { 200: {}, @@ -1980,8 +1953,8 @@ const stopProtectionOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1989,14 +1962,13 @@ const stopProtectionOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.backupInstanceName + Parameters.backupInstanceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const suspendBackupsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/suspendBackups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/suspendBackups", httpMethod: "POST", responses: { 200: {}, @@ -2004,8 +1976,8 @@ const suspendBackupsOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -2013,14 +1985,13 @@ const suspendBackupsOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.backupInstanceName + Parameters.backupInstanceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const syncBackupInstanceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/sync", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/sync", httpMethod: "POST", responses: { 200: {}, @@ -2028,8 +1999,8 @@ const syncBackupInstanceOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], @@ -2038,32 +2009,31 @@ const syncBackupInstanceOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.backupInstanceName + Parameters.backupInstanceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const validateForRestoreOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/validateRestore", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/validateRestore", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationJobExtendedInfo + bodyMapper: Mappers.OperationJobExtendedInfo, }, 201: { - bodyMapper: Mappers.OperationJobExtendedInfo + bodyMapper: Mappers.OperationJobExtendedInfo, }, 202: { - bodyMapper: Mappers.OperationJobExtendedInfo + bodyMapper: Mappers.OperationJobExtendedInfo, }, 204: { - bodyMapper: Mappers.OperationJobExtendedInfo + bodyMapper: Mappers.OperationJobExtendedInfo, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters13, queryParameters: [Parameters.apiVersion], @@ -2072,30 +2042,30 @@ const validateForRestoreOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.backupInstanceName + Parameters.backupInstanceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BackupInstanceResourceList + bodyMapper: Mappers.BackupInstanceResourceList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/backupPolicies.ts b/sdk/dataprotection/arm-dataprotection/src/operations/backupPolicies.ts index 23bc998c7a86..292b869ae781 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/backupPolicies.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/backupPolicies.ts @@ -23,7 +23,7 @@ import { BackupPoliciesCreateOrUpdateOptionalParams, BackupPoliciesCreateOrUpdateResponse, BackupPoliciesDeleteOptionalParams, - BackupPoliciesListNextResponse + BackupPoliciesListNextResponse, } from "../models"; /// @@ -48,7 +48,7 @@ export class BackupPoliciesImpl implements BackupPolicies { public list( resourceGroupName: string, vaultName: string, - options?: BackupPoliciesListOptionalParams + options?: BackupPoliciesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, vaultName, options); return { @@ -66,9 +66,9 @@ export class BackupPoliciesImpl implements BackupPolicies { resourceGroupName, vaultName, options, - settings + settings, ); - } + }, }; } @@ -76,7 +76,7 @@ export class BackupPoliciesImpl implements BackupPolicies { resourceGroupName: string, vaultName: string, options?: BackupPoliciesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BackupPoliciesListResponse; let continuationToken = settings?.continuationToken; @@ -92,7 +92,7 @@ export class BackupPoliciesImpl implements BackupPolicies { resourceGroupName, vaultName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -104,12 +104,12 @@ export class BackupPoliciesImpl implements BackupPolicies { private async *listPagingAll( resourceGroupName: string, vaultName: string, - options?: BackupPoliciesListOptionalParams + options?: BackupPoliciesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, vaultName, - options + options, )) { yield* page; } @@ -124,11 +124,11 @@ export class BackupPoliciesImpl implements BackupPolicies { private _list( resourceGroupName: string, vaultName: string, - options?: BackupPoliciesListOptionalParams + options?: BackupPoliciesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, options }, - listOperationSpec + listOperationSpec, ); } @@ -143,11 +143,11 @@ export class BackupPoliciesImpl implements BackupPolicies { resourceGroupName: string, vaultName: string, backupPolicyName: string, - options?: BackupPoliciesGetOptionalParams + options?: BackupPoliciesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, backupPolicyName, options }, - getOperationSpec + getOperationSpec, ); } @@ -164,11 +164,11 @@ export class BackupPoliciesImpl implements BackupPolicies { vaultName: string, backupPolicyName: string, parameters: BaseBackupPolicyResource, - options?: BackupPoliciesCreateOrUpdateOptionalParams + options?: BackupPoliciesCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, backupPolicyName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -183,11 +183,11 @@ export class BackupPoliciesImpl implements BackupPolicies { resourceGroupName: string, vaultName: string, backupPolicyName: string, - options?: BackupPoliciesDeleteOptionalParams + options?: BackupPoliciesDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, backupPolicyName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -202,11 +202,11 @@ export class BackupPoliciesImpl implements BackupPolicies { resourceGroupName: string, vaultName: string, nextLink: string, - options?: BackupPoliciesListNextOptionalParams + options?: BackupPoliciesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -214,38 +214,36 @@ export class BackupPoliciesImpl implements BackupPolicies { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BaseBackupPolicyResourceList + bodyMapper: Mappers.BaseBackupPolicyResourceList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vaultName + Parameters.vaultName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BaseBackupPolicyResource + bodyMapper: Mappers.BaseBackupPolicyResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -253,22 +251,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.backupPolicyName + Parameters.backupPolicyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.BaseBackupPolicyResource + bodyMapper: Mappers.BaseBackupPolicyResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], @@ -277,22 +274,21 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.backupPolicyName + Parameters.backupPolicyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -300,29 +296,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.backupPolicyName + Parameters.backupPolicyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BaseBackupPolicyResourceList + bodyMapper: Mappers.BaseBackupPolicyResourceList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/backupVaultOperationResults.ts b/sdk/dataprotection/arm-dataprotection/src/operations/backupVaultOperationResults.ts index 930e4c9a8d84..293b72f29fd4 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/backupVaultOperationResults.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/backupVaultOperationResults.ts @@ -13,12 +13,13 @@ import * as Parameters from "../models/parameters"; import { DataProtectionClient } from "../dataProtectionClient"; import { BackupVaultOperationResultsGetOptionalParams, - BackupVaultOperationResultsGetResponse + BackupVaultOperationResultsGetResponse, } from "../models"; /** Class containing BackupVaultOperationResults operations. */ export class BackupVaultOperationResultsImpl - implements BackupVaultOperationResults { + implements BackupVaultOperationResults +{ private readonly client: DataProtectionClient; /** @@ -39,11 +40,11 @@ export class BackupVaultOperationResultsImpl resourceGroupName: string, vaultName: string, operationId: string, - options?: BackupVaultOperationResultsGetOptionalParams + options?: BackupVaultOperationResultsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, operationId, options }, - getOperationSpec + getOperationSpec, ); } } @@ -51,19 +52,18 @@ export class BackupVaultOperationResultsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/operationResults/{operationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/operationResults/{operationId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BackupVaultResource + bodyMapper: Mappers.BackupVaultResource, }, 202: { - headersMapper: Mappers.BackupVaultOperationResultsGetHeaders + headersMapper: Mappers.BackupVaultOperationResultsGetHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -71,8 +71,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/backupVaults.ts b/sdk/dataprotection/arm-dataprotection/src/operations/backupVaults.ts index cd1a45cfca87..66d22659ba3c 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/backupVaults.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/backupVaults.ts @@ -16,7 +16,7 @@ import { DataProtectionClient } from "../dataProtectionClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -39,7 +39,7 @@ import { BackupVaultsCheckNameAvailabilityOptionalParams, BackupVaultsCheckNameAvailabilityResponse, BackupVaultsGetInSubscriptionNextResponse, - BackupVaultsGetInResourceGroupNextResponse + BackupVaultsGetInResourceGroupNextResponse, } from "../models"; /// @@ -60,7 +60,7 @@ export class BackupVaultsImpl implements BackupVaults { * @param options The options parameters. */ public listInSubscription( - options?: BackupVaultsGetInSubscriptionOptionalParams + options?: BackupVaultsGetInSubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.getInSubscriptionPagingAll(options); return { @@ -75,13 +75,13 @@ export class BackupVaultsImpl implements BackupVaults { throw new Error("maxPageSize is not supported by this operation."); } return this.getInSubscriptionPagingPage(options, settings); - } + }, }; } private async *getInSubscriptionPagingPage( options?: BackupVaultsGetInSubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BackupVaultsGetInSubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -102,7 +102,7 @@ export class BackupVaultsImpl implements BackupVaults { } private async *getInSubscriptionPagingAll( - options?: BackupVaultsGetInSubscriptionOptionalParams + options?: BackupVaultsGetInSubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.getInSubscriptionPagingPage(options)) { yield* page; @@ -116,7 +116,7 @@ export class BackupVaultsImpl implements BackupVaults { */ public listInResourceGroup( resourceGroupName: string, - options?: BackupVaultsGetInResourceGroupOptionalParams + options?: BackupVaultsGetInResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.getInResourceGroupPagingAll(resourceGroupName, options); return { @@ -133,16 +133,16 @@ export class BackupVaultsImpl implements BackupVaults { return this.getInResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *getInResourceGroupPagingPage( resourceGroupName: string, options?: BackupVaultsGetInResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BackupVaultsGetInResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -157,7 +157,7 @@ export class BackupVaultsImpl implements BackupVaults { result = await this._getInResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -168,11 +168,11 @@ export class BackupVaultsImpl implements BackupVaults { private async *getInResourceGroupPagingAll( resourceGroupName: string, - options?: BackupVaultsGetInResourceGroupOptionalParams + options?: BackupVaultsGetInResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.getInResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -183,11 +183,11 @@ export class BackupVaultsImpl implements BackupVaults { * @param options The options parameters. */ private _getInSubscription( - options?: BackupVaultsGetInSubscriptionOptionalParams + options?: BackupVaultsGetInSubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - getInSubscriptionOperationSpec + getInSubscriptionOperationSpec, ); } @@ -198,11 +198,11 @@ export class BackupVaultsImpl implements BackupVaults { */ private _getInResourceGroup( resourceGroupName: string, - options?: BackupVaultsGetInResourceGroupOptionalParams + options?: BackupVaultsGetInResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - getInResourceGroupOperationSpec + getInResourceGroupOperationSpec, ); } @@ -215,11 +215,11 @@ export class BackupVaultsImpl implements BackupVaults { get( resourceGroupName: string, vaultName: string, - options?: BackupVaultsGetOptionalParams + options?: BackupVaultsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, options }, - getOperationSpec + getOperationSpec, ); } @@ -234,7 +234,7 @@ export class BackupVaultsImpl implements BackupVaults { resourceGroupName: string, vaultName: string, parameters: BackupVaultResource, - options?: BackupVaultsCreateOrUpdateOptionalParams + options?: BackupVaultsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -243,21 +243,20 @@ export class BackupVaultsImpl implements BackupVaults { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -266,8 +265,8 @@ export class BackupVaultsImpl implements BackupVaults { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -275,22 +274,22 @@ export class BackupVaultsImpl implements BackupVaults { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vaultName, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< BackupVaultsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -307,13 +306,13 @@ export class BackupVaultsImpl implements BackupVaults { resourceGroupName: string, vaultName: string, parameters: BackupVaultResource, - options?: BackupVaultsCreateOrUpdateOptionalParams + options?: BackupVaultsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, vaultName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -327,25 +326,24 @@ export class BackupVaultsImpl implements BackupVaults { async beginDelete( resourceGroupName: string, vaultName: string, - options?: BackupVaultsDeleteOptionalParams + options?: BackupVaultsDeleteOptionalParams, ): 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); @@ -354,8 +352,8 @@ export class BackupVaultsImpl implements BackupVaults { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -363,19 +361,19 @@ export class BackupVaultsImpl implements BackupVaults { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vaultName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -390,12 +388,12 @@ export class BackupVaultsImpl implements BackupVaults { async beginDeleteAndWait( resourceGroupName: string, vaultName: string, - options?: BackupVaultsDeleteOptionalParams + options?: BackupVaultsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, vaultName, - options + options, ); return poller.pollUntilDone(); } @@ -412,7 +410,7 @@ export class BackupVaultsImpl implements BackupVaults { resourceGroupName: string, vaultName: string, parameters: PatchResourceRequestInput, - options?: BackupVaultsUpdateOptionalParams + options?: BackupVaultsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -421,21 +419,20 @@ export class BackupVaultsImpl implements BackupVaults { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -444,8 +441,8 @@ export class BackupVaultsImpl implements BackupVaults { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -453,22 +450,22 @@ export class BackupVaultsImpl implements BackupVaults { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vaultName, parameters, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< BackupVaultsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -486,13 +483,13 @@ export class BackupVaultsImpl implements BackupVaults { resourceGroupName: string, vaultName: string, parameters: PatchResourceRequestInput, - options?: BackupVaultsUpdateOptionalParams + options?: BackupVaultsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, vaultName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -508,11 +505,11 @@ export class BackupVaultsImpl implements BackupVaults { resourceGroupName: string, location: string, parameters: CheckNameAvailabilityRequest, - options?: BackupVaultsCheckNameAvailabilityOptionalParams + options?: BackupVaultsCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, location, parameters, options }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, ); } @@ -523,11 +520,11 @@ export class BackupVaultsImpl implements BackupVaults { */ private _getInSubscriptionNext( nextLink: string, - options?: BackupVaultsGetInSubscriptionNextOptionalParams + options?: BackupVaultsGetInSubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - getInSubscriptionNextOperationSpec + getInSubscriptionNextOperationSpec, ); } @@ -540,11 +537,11 @@ export class BackupVaultsImpl implements BackupVaults { private _getInResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: BackupVaultsGetInResourceGroupNextOptionalParams + options?: BackupVaultsGetInResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - getInResourceGroupNextOperationSpec + getInResourceGroupNextOperationSpec, ); } } @@ -552,85 +549,81 @@ export class BackupVaultsImpl implements BackupVaults { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getInSubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/backupVaults", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/backupVaults", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BackupVaultResourceList + bodyMapper: Mappers.BackupVaultResourceList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getInResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BackupVaultResourceList + bodyMapper: Mappers.BackupVaultResourceList, }, 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 getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BackupVaultResource + bodyMapper: Mappers.BackupVaultResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vaultName + Parameters.vaultName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.BackupVaultResource + bodyMapper: Mappers.BackupVaultResource, }, 201: { - bodyMapper: Mappers.BackupVaultResource + bodyMapper: Mappers.BackupVaultResource, }, 202: { - bodyMapper: Mappers.BackupVaultResource + bodyMapper: Mappers.BackupVaultResource, }, 204: { - bodyMapper: Mappers.BackupVaultResource + bodyMapper: Mappers.BackupVaultResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], @@ -638,15 +631,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vaultName + Parameters.vaultName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}", httpMethod: "DELETE", responses: { 200: {}, @@ -654,39 +646,38 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vaultName + Parameters.vaultName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.BackupVaultResource + bodyMapper: Mappers.BackupVaultResource, }, 201: { - bodyMapper: Mappers.BackupVaultResource + bodyMapper: Mappers.BackupVaultResource, }, 202: { - bodyMapper: Mappers.BackupVaultResource + bodyMapper: Mappers.BackupVaultResource, }, 204: { - bodyMapper: Mappers.BackupVaultResource + bodyMapper: Mappers.BackupVaultResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], @@ -694,23 +685,22 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vaultName + Parameters.vaultName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/locations/{location}/checkNameAvailability", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/locations/{location}/checkNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckNameAvailabilityResult + bodyMapper: Mappers.CheckNameAvailabilityResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], @@ -718,48 +708,48 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getInSubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BackupVaultResourceList + bodyMapper: Mappers.BackupVaultResourceList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getInResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BackupVaultResourceList + bodyMapper: Mappers.BackupVaultResourceList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/dataProtection.ts b/sdk/dataprotection/arm-dataprotection/src/operations/dataProtection.ts index e19a6a87fa58..758b7d4605c4 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/dataProtection.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/dataProtection.ts @@ -14,7 +14,7 @@ import { DataProtectionClient } from "../dataProtectionClient"; import { FeatureValidationRequestBaseUnion, DataProtectionCheckFeatureSupportOptionalParams, - DataProtectionCheckFeatureSupportResponse + DataProtectionCheckFeatureSupportResponse, } from "../models"; /** Class containing DataProtection operations. */ @@ -38,11 +38,11 @@ export class DataProtectionImpl implements DataProtection { checkFeatureSupport( location: string, parameters: FeatureValidationRequestBaseUnion, - options?: DataProtectionCheckFeatureSupportOptionalParams + options?: DataProtectionCheckFeatureSupportOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, parameters, options }, - checkFeatureSupportOperationSpec + checkFeatureSupportOperationSpec, ); } } @@ -50,25 +50,24 @@ export class DataProtectionImpl implements DataProtection { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const checkFeatureSupportOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/checkFeatureSupport", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/checkFeatureSupport", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.FeatureValidationResponseBase + bodyMapper: Mappers.FeatureValidationResponseBase, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters3, 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/dataprotection/arm-dataprotection/src/operations/dataProtectionOperations.ts b/sdk/dataprotection/arm-dataprotection/src/operations/dataProtectionOperations.ts index 9c732b3c8070..333d0cf7a2a3 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/dataProtectionOperations.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/dataProtectionOperations.ts @@ -18,7 +18,7 @@ import { DataProtectionOperationsListNextOptionalParams, DataProtectionOperationsListOptionalParams, DataProtectionOperationsListResponse, - DataProtectionOperationsListNextResponse + DataProtectionOperationsListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class DataProtectionOperationsImpl implements DataProtectionOperations { * @param options The options parameters. */ public list( - options?: DataProtectionOperationsListOptionalParams + options?: DataProtectionOperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class DataProtectionOperationsImpl implements DataProtectionOperations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: DataProtectionOperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DataProtectionOperationsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class DataProtectionOperationsImpl implements DataProtectionOperations { } private async *listPagingAll( - options?: DataProtectionOperationsListOptionalParams + options?: DataProtectionOperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class DataProtectionOperationsImpl implements DataProtectionOperations { * @param options The options parameters. */ private _list( - options?: DataProtectionOperationsListOptionalParams + options?: DataProtectionOperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class DataProtectionOperationsImpl implements DataProtectionOperations { */ private _listNext( nextLink: string, - options?: DataProtectionOperationsListNextOptionalParams + options?: DataProtectionOperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClientDiscoveryResponse + bodyMapper: Mappers.ClientDiscoveryResponse, }, 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.ClientDiscoveryResponse + bodyMapper: Mappers.ClientDiscoveryResponse, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/deletedBackupInstances.ts b/sdk/dataprotection/arm-dataprotection/src/operations/deletedBackupInstances.ts index 4a5937976d2d..4f345a0bbb1a 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/deletedBackupInstances.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/deletedBackupInstances.ts @@ -16,7 +16,7 @@ import { DataProtectionClient } from "../dataProtectionClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -27,7 +27,7 @@ import { DeletedBackupInstancesGetOptionalParams, DeletedBackupInstancesGetResponse, DeletedBackupInstancesUndeleteOptionalParams, - DeletedBackupInstancesListNextResponse + DeletedBackupInstancesListNextResponse, } from "../models"; /// @@ -52,7 +52,7 @@ export class DeletedBackupInstancesImpl implements DeletedBackupInstances { public list( resourceGroupName: string, vaultName: string, - options?: DeletedBackupInstancesListOptionalParams + options?: DeletedBackupInstancesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, vaultName, options); return { @@ -70,9 +70,9 @@ export class DeletedBackupInstancesImpl implements DeletedBackupInstances { resourceGroupName, vaultName, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class DeletedBackupInstancesImpl implements DeletedBackupInstances { resourceGroupName: string, vaultName: string, options?: DeletedBackupInstancesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DeletedBackupInstancesListResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +96,7 @@ export class DeletedBackupInstancesImpl implements DeletedBackupInstances { resourceGroupName, vaultName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -108,12 +108,12 @@ export class DeletedBackupInstancesImpl implements DeletedBackupInstances { private async *listPagingAll( resourceGroupName: string, vaultName: string, - options?: DeletedBackupInstancesListOptionalParams + options?: DeletedBackupInstancesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, vaultName, - options + options, )) { yield* page; } @@ -128,11 +128,11 @@ export class DeletedBackupInstancesImpl implements DeletedBackupInstances { private _list( resourceGroupName: string, vaultName: string, - options?: DeletedBackupInstancesListOptionalParams + options?: DeletedBackupInstancesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, options }, - listOperationSpec + listOperationSpec, ); } @@ -147,11 +147,11 @@ export class DeletedBackupInstancesImpl implements DeletedBackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: DeletedBackupInstancesGetOptionalParams + options?: DeletedBackupInstancesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, backupInstanceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -165,25 +165,24 @@ export class DeletedBackupInstancesImpl implements DeletedBackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: DeletedBackupInstancesUndeleteOptionalParams + options?: DeletedBackupInstancesUndeleteOptionalParams, ): 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); @@ -192,8 +191,8 @@ export class DeletedBackupInstancesImpl implements DeletedBackupInstances { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -201,19 +200,19 @@ export class DeletedBackupInstancesImpl implements DeletedBackupInstances { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vaultName, backupInstanceName, options }, - spec: undeleteOperationSpec + spec: undeleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -229,13 +228,13 @@ export class DeletedBackupInstancesImpl implements DeletedBackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: DeletedBackupInstancesUndeleteOptionalParams + options?: DeletedBackupInstancesUndeleteOptionalParams, ): Promise { const poller = await this.beginUndelete( resourceGroupName, vaultName, backupInstanceName, - options + options, ); return poller.pollUntilDone(); } @@ -251,11 +250,11 @@ export class DeletedBackupInstancesImpl implements DeletedBackupInstances { resourceGroupName: string, vaultName: string, nextLink: string, - options?: DeletedBackupInstancesListNextOptionalParams + options?: DeletedBackupInstancesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -263,38 +262,36 @@ export class DeletedBackupInstancesImpl implements DeletedBackupInstances { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedBackupInstanceResourceList + bodyMapper: Mappers.DeletedBackupInstanceResourceList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vaultName + Parameters.vaultName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances/{backupInstanceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances/{backupInstanceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedBackupInstanceResource + bodyMapper: Mappers.DeletedBackupInstanceResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -302,14 +299,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.backupInstanceName + Parameters.backupInstanceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const undeleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances/{backupInstanceName}/undelete", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances/{backupInstanceName}/undelete", httpMethod: "POST", responses: { 200: {}, @@ -317,8 +313,8 @@ const undeleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -326,29 +322,29 @@ const undeleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.backupInstanceName + Parameters.backupInstanceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedBackupInstanceResourceList + bodyMapper: Mappers.DeletedBackupInstanceResourceList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/dppResourceGuardProxy.ts b/sdk/dataprotection/arm-dataprotection/src/operations/dppResourceGuardProxy.ts index 598348800225..4be1b758afdb 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/dppResourceGuardProxy.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/dppResourceGuardProxy.ts @@ -26,7 +26,7 @@ import { UnlockDeleteRequest, DppResourceGuardProxyUnlockDeleteOptionalParams, DppResourceGuardProxyUnlockDeleteResponse, - DppResourceGuardProxyListNextResponse + DppResourceGuardProxyListNextResponse, } from "../models"; /// @@ -51,7 +51,7 @@ export class DppResourceGuardProxyImpl implements DppResourceGuardProxy { public list( resourceGroupName: string, vaultName: string, - options?: DppResourceGuardProxyListOptionalParams + options?: DppResourceGuardProxyListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, vaultName, options); return { @@ -69,9 +69,9 @@ export class DppResourceGuardProxyImpl implements DppResourceGuardProxy { resourceGroupName, vaultName, options, - settings + settings, ); - } + }, }; } @@ -79,7 +79,7 @@ export class DppResourceGuardProxyImpl implements DppResourceGuardProxy { resourceGroupName: string, vaultName: string, options?: DppResourceGuardProxyListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DppResourceGuardProxyListResponse; let continuationToken = settings?.continuationToken; @@ -95,7 +95,7 @@ export class DppResourceGuardProxyImpl implements DppResourceGuardProxy { resourceGroupName, vaultName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,12 +107,12 @@ export class DppResourceGuardProxyImpl implements DppResourceGuardProxy { private async *listPagingAll( resourceGroupName: string, vaultName: string, - options?: DppResourceGuardProxyListOptionalParams + options?: DppResourceGuardProxyListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, vaultName, - options + options, )) { yield* page; } @@ -127,11 +127,11 @@ export class DppResourceGuardProxyImpl implements DppResourceGuardProxy { private _list( resourceGroupName: string, vaultName: string, - options?: DppResourceGuardProxyListOptionalParams + options?: DppResourceGuardProxyListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, options }, - listOperationSpec + listOperationSpec, ); } @@ -147,11 +147,11 @@ export class DppResourceGuardProxyImpl implements DppResourceGuardProxy { resourceGroupName: string, vaultName: string, resourceGuardProxyName: string, - options?: DppResourceGuardProxyGetOptionalParams + options?: DppResourceGuardProxyGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, resourceGuardProxyName, options }, - getOperationSpec + getOperationSpec, ); } @@ -168,7 +168,7 @@ export class DppResourceGuardProxyImpl implements DppResourceGuardProxy { vaultName: string, resourceGuardProxyName: string, parameters: ResourceGuardProxyBaseResource, - options?: DppResourceGuardProxyCreateOrUpdateOptionalParams + options?: DppResourceGuardProxyCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -176,9 +176,9 @@ export class DppResourceGuardProxyImpl implements DppResourceGuardProxy { vaultName, resourceGuardProxyName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -193,11 +193,11 @@ export class DppResourceGuardProxyImpl implements DppResourceGuardProxy { resourceGroupName: string, vaultName: string, resourceGuardProxyName: string, - options?: DppResourceGuardProxyDeleteOptionalParams + options?: DppResourceGuardProxyDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, resourceGuardProxyName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -214,7 +214,7 @@ export class DppResourceGuardProxyImpl implements DppResourceGuardProxy { vaultName: string, resourceGuardProxyName: string, parameters: UnlockDeleteRequest, - options?: DppResourceGuardProxyUnlockDeleteOptionalParams + options?: DppResourceGuardProxyUnlockDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -222,9 +222,9 @@ export class DppResourceGuardProxyImpl implements DppResourceGuardProxy { vaultName, resourceGuardProxyName, parameters, - options + options, }, - unlockDeleteOperationSpec + unlockDeleteOperationSpec, ); } @@ -239,11 +239,11 @@ export class DppResourceGuardProxyImpl implements DppResourceGuardProxy { resourceGroupName: string, vaultName: string, nextLink: string, - options?: DppResourceGuardProxyListNextOptionalParams + options?: DppResourceGuardProxyListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -251,38 +251,36 @@ export class DppResourceGuardProxyImpl implements DppResourceGuardProxy { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceGuardProxyBaseResourceList + bodyMapper: Mappers.ResourceGuardProxyBaseResourceList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vaultName + Parameters.vaultName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceGuardProxyBaseResource + bodyMapper: Mappers.ResourceGuardProxyBaseResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -290,22 +288,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.resourceGuardProxyName + Parameters.resourceGuardProxyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ResourceGuardProxyBaseResource + bodyMapper: Mappers.ResourceGuardProxyBaseResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters20, queryParameters: [Parameters.apiVersion], @@ -314,22 +311,21 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.resourceGuardProxyName + Parameters.resourceGuardProxyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -337,22 +333,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.resourceGuardProxyName + Parameters.resourceGuardProxyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const unlockDeleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}/unlockDelete", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}/unlockDelete", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.UnlockDeleteResponse + bodyMapper: Mappers.UnlockDeleteResponse, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters21, queryParameters: [Parameters.apiVersion], @@ -361,30 +356,30 @@ const unlockDeleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.resourceGuardProxyName + Parameters.resourceGuardProxyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceGuardProxyBaseResourceList + bodyMapper: Mappers.ResourceGuardProxyBaseResourceList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/exportJobs.ts b/sdk/dataprotection/arm-dataprotection/src/operations/exportJobs.ts index d79c4d580bce..7fcb37f9fa68 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/exportJobs.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/exportJobs.ts @@ -14,12 +14,12 @@ import { DataProtectionClient } from "../dataProtectionClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { ExportJobsTriggerOptionalParams, - ExportJobsTriggerResponse + ExportJobsTriggerResponse, } from "../models"; /** Class containing ExportJobs operations. */ @@ -43,7 +43,7 @@ export class ExportJobsImpl implements ExportJobs { async beginTrigger( resourceGroupName: string, vaultName: string, - options?: ExportJobsTriggerOptionalParams + options?: ExportJobsTriggerOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -52,21 +52,20 @@ export class ExportJobsImpl implements ExportJobs { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -75,8 +74,8 @@ export class ExportJobsImpl implements ExportJobs { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -84,15 +83,15 @@ export class ExportJobsImpl implements ExportJobs { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vaultName, options }, - spec: triggerOperationSpec + spec: triggerOperationSpec, }); const poller = await createHttpPoller< ExportJobsTriggerResponse, @@ -100,7 +99,7 @@ export class ExportJobsImpl implements ExportJobs { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -115,12 +114,12 @@ export class ExportJobsImpl implements ExportJobs { async beginTriggerAndWait( resourceGroupName: string, vaultName: string, - options?: ExportJobsTriggerOptionalParams + options?: ExportJobsTriggerOptionalParams, ): Promise { const poller = await this.beginTrigger( resourceGroupName, vaultName, - options + options, ); return poller.pollUntilDone(); } @@ -129,33 +128,32 @@ export class ExportJobsImpl implements ExportJobs { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const triggerOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/exportBackupJobs", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/exportBackupJobs", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.ExportJobsTriggerHeaders + headersMapper: Mappers.ExportJobsTriggerHeaders, }, 201: { - headersMapper: Mappers.ExportJobsTriggerHeaders + headersMapper: Mappers.ExportJobsTriggerHeaders, }, 202: { - headersMapper: Mappers.ExportJobsTriggerHeaders + headersMapper: Mappers.ExportJobsTriggerHeaders, }, 204: { - headersMapper: Mappers.ExportJobsTriggerHeaders + headersMapper: Mappers.ExportJobsTriggerHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vaultName + Parameters.vaultName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/exportJobsOperationResult.ts b/sdk/dataprotection/arm-dataprotection/src/operations/exportJobsOperationResult.ts index 5f1c3f8645fa..eefc7b9906e8 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/exportJobsOperationResult.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/exportJobsOperationResult.ts @@ -13,12 +13,13 @@ import * as Parameters from "../models/parameters"; import { DataProtectionClient } from "../dataProtectionClient"; import { ExportJobsOperationResultGetOptionalParams, - ExportJobsOperationResultGetResponse + ExportJobsOperationResultGetResponse, } from "../models"; /** Class containing ExportJobsOperationResult operations. */ export class ExportJobsOperationResultImpl - implements ExportJobsOperationResult { + implements ExportJobsOperationResult +{ private readonly client: DataProtectionClient; /** @@ -42,11 +43,11 @@ export class ExportJobsOperationResultImpl resourceGroupName: string, vaultName: string, operationId: string, - options?: ExportJobsOperationResultGetOptionalParams + options?: ExportJobsOperationResultGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, operationId, options }, - getOperationSpec + getOperationSpec, ); } } @@ -54,17 +55,16 @@ export class ExportJobsOperationResultImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs/operations/{operationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs/operations/{operationId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ExportJobsResult + bodyMapper: Mappers.ExportJobsResult, }, 202: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -72,8 +72,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/fetchCrossRegionRestoreJob.ts b/sdk/dataprotection/arm-dataprotection/src/operations/fetchCrossRegionRestoreJob.ts index de84f55b7282..4c1da1508997 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/fetchCrossRegionRestoreJob.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/fetchCrossRegionRestoreJob.ts @@ -14,12 +14,13 @@ import { DataProtectionClient } from "../dataProtectionClient"; import { CrossRegionRestoreJobRequest, FetchCrossRegionRestoreJobGetOptionalParams, - FetchCrossRegionRestoreJobGetResponse + FetchCrossRegionRestoreJobGetResponse, } from "../models"; /** Class containing FetchCrossRegionRestoreJob operations. */ export class FetchCrossRegionRestoreJobImpl - implements FetchCrossRegionRestoreJob { + implements FetchCrossRegionRestoreJob +{ private readonly client: DataProtectionClient; /** @@ -41,11 +42,11 @@ export class FetchCrossRegionRestoreJobImpl resourceGroupName: string, location: string, parameters: CrossRegionRestoreJobRequest, - options?: FetchCrossRegionRestoreJobGetOptionalParams + options?: FetchCrossRegionRestoreJobGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, location, parameters, options }, - getOperationSpec + getOperationSpec, ); } } @@ -53,16 +54,15 @@ export class FetchCrossRegionRestoreJobImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/locations/{location}/fetchCrossRegionRestoreJob", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/locations/{location}/fetchCrossRegionRestoreJob", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AzureBackupJobResource + bodyMapper: Mappers.AzureBackupJobResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters15, queryParameters: [Parameters.apiVersion], @@ -70,9 +70,9 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/fetchCrossRegionRestoreJobs.ts b/sdk/dataprotection/arm-dataprotection/src/operations/fetchCrossRegionRestoreJobs.ts index 66dfe18c0dc6..fb540303b954 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/fetchCrossRegionRestoreJobs.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/fetchCrossRegionRestoreJobs.ts @@ -19,13 +19,14 @@ import { FetchCrossRegionRestoreJobsListNextOptionalParams, FetchCrossRegionRestoreJobsListOptionalParams, FetchCrossRegionRestoreJobsListResponse, - FetchCrossRegionRestoreJobsListNextResponse + FetchCrossRegionRestoreJobsListNextResponse, } from "../models"; /// /** Class containing FetchCrossRegionRestoreJobs operations. */ export class FetchCrossRegionRestoreJobsImpl - implements FetchCrossRegionRestoreJobs { + implements FetchCrossRegionRestoreJobs +{ private readonly client: DataProtectionClient; /** @@ -47,13 +48,13 @@ export class FetchCrossRegionRestoreJobsImpl resourceGroupName: string, location: string, parameters: CrossRegionRestoreJobsRequest, - options?: FetchCrossRegionRestoreJobsListOptionalParams + options?: FetchCrossRegionRestoreJobsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, location, parameters, - options + options, ); return { next() { @@ -71,9 +72,9 @@ export class FetchCrossRegionRestoreJobsImpl location, parameters, options, - settings + settings, ); - } + }, }; } @@ -82,7 +83,7 @@ export class FetchCrossRegionRestoreJobsImpl location: string, parameters: CrossRegionRestoreJobsRequest, options?: FetchCrossRegionRestoreJobsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: FetchCrossRegionRestoreJobsListResponse; let continuationToken = settings?.continuationToken; @@ -91,7 +92,7 @@ export class FetchCrossRegionRestoreJobsImpl resourceGroupName, location, parameters, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -104,7 +105,7 @@ export class FetchCrossRegionRestoreJobsImpl location, parameters, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,13 +118,13 @@ export class FetchCrossRegionRestoreJobsImpl resourceGroupName: string, location: string, parameters: CrossRegionRestoreJobsRequest, - options?: FetchCrossRegionRestoreJobsListOptionalParams + options?: FetchCrossRegionRestoreJobsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, location, parameters, - options + options, )) { yield* page; } @@ -140,11 +141,11 @@ export class FetchCrossRegionRestoreJobsImpl resourceGroupName: string, location: string, parameters: CrossRegionRestoreJobsRequest, - options?: FetchCrossRegionRestoreJobsListOptionalParams + options?: FetchCrossRegionRestoreJobsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, location, parameters, options }, - listOperationSpec + listOperationSpec, ); } @@ -161,11 +162,11 @@ export class FetchCrossRegionRestoreJobsImpl location: string, parameters: CrossRegionRestoreJobsRequest, nextLink: string, - options?: FetchCrossRegionRestoreJobsListNextOptionalParams + options?: FetchCrossRegionRestoreJobsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, location, parameters, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -173,16 +174,15 @@ export class FetchCrossRegionRestoreJobsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/locations/{location}/fetchCrossRegionRestoreJobs", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/locations/{location}/fetchCrossRegionRestoreJobs", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AzureBackupJobResourceList + bodyMapper: Mappers.AzureBackupJobResourceList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters16, queryParameters: [Parameters.apiVersion, Parameters.filter], @@ -190,31 +190,31 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AzureBackupJobResourceList + bodyMapper: Mappers.AzureBackupJobResourceList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.nextLink, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/fetchSecondaryRecoveryPoints.ts b/sdk/dataprotection/arm-dataprotection/src/operations/fetchSecondaryRecoveryPoints.ts index d456fd13c541..14c01d74bae0 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/fetchSecondaryRecoveryPoints.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/fetchSecondaryRecoveryPoints.ts @@ -19,13 +19,14 @@ import { FetchSecondaryRecoveryPointsListNextOptionalParams, FetchSecondaryRecoveryPointsListOptionalParams, FetchSecondaryRecoveryPointsListResponse, - FetchSecondaryRecoveryPointsListNextResponse + FetchSecondaryRecoveryPointsListNextResponse, } from "../models"; /// /** Class containing FetchSecondaryRecoveryPoints operations. */ export class FetchSecondaryRecoveryPointsImpl - implements FetchSecondaryRecoveryPoints { + implements FetchSecondaryRecoveryPoints +{ private readonly client: DataProtectionClient; /** @@ -48,13 +49,13 @@ export class FetchSecondaryRecoveryPointsImpl resourceGroupName: string, location: string, parameters: FetchSecondaryRPsRequestParameters, - options?: FetchSecondaryRecoveryPointsListOptionalParams + options?: FetchSecondaryRecoveryPointsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, location, parameters, - options + options, ); return { next() { @@ -72,9 +73,9 @@ export class FetchSecondaryRecoveryPointsImpl location, parameters, options, - settings + settings, ); - } + }, }; } @@ -83,7 +84,7 @@ export class FetchSecondaryRecoveryPointsImpl location: string, parameters: FetchSecondaryRPsRequestParameters, options?: FetchSecondaryRecoveryPointsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: FetchSecondaryRecoveryPointsListResponse; let continuationToken = settings?.continuationToken; @@ -92,7 +93,7 @@ export class FetchSecondaryRecoveryPointsImpl resourceGroupName, location, parameters, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -105,7 +106,7 @@ export class FetchSecondaryRecoveryPointsImpl location, parameters, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -118,13 +119,13 @@ export class FetchSecondaryRecoveryPointsImpl resourceGroupName: string, location: string, parameters: FetchSecondaryRPsRequestParameters, - options?: FetchSecondaryRecoveryPointsListOptionalParams + options?: FetchSecondaryRecoveryPointsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, location, parameters, - options + options, )) { yield* page; } @@ -142,11 +143,11 @@ export class FetchSecondaryRecoveryPointsImpl resourceGroupName: string, location: string, parameters: FetchSecondaryRPsRequestParameters, - options?: FetchSecondaryRecoveryPointsListOptionalParams + options?: FetchSecondaryRecoveryPointsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, location, parameters, options }, - listOperationSpec + listOperationSpec, ); } @@ -163,11 +164,11 @@ export class FetchSecondaryRecoveryPointsImpl location: string, parameters: FetchSecondaryRPsRequestParameters, nextLink: string, - options?: FetchSecondaryRecoveryPointsListNextOptionalParams + options?: FetchSecondaryRecoveryPointsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, location, parameters, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -175,52 +176,51 @@ export class FetchSecondaryRecoveryPointsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/locations/{location}/fetchSecondaryRecoveryPoints", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/locations/{location}/fetchSecondaryRecoveryPoints", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AzureBackupRecoveryPointResourceList + bodyMapper: Mappers.AzureBackupRecoveryPointResourceList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters14, queryParameters: [ Parameters.apiVersion, Parameters.filter, - Parameters.skipToken + Parameters.skipToken, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AzureBackupRecoveryPointResourceList + bodyMapper: Mappers.AzureBackupRecoveryPointResourceList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.nextLink, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/jobs.ts b/sdk/dataprotection/arm-dataprotection/src/operations/jobs.ts index bb7261d83513..efd2161153ef 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/jobs.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/jobs.ts @@ -20,7 +20,7 @@ import { JobsListResponse, JobsGetOptionalParams, JobsGetResponse, - JobsListNextResponse + JobsListNextResponse, } from "../models"; /// @@ -45,7 +45,7 @@ export class JobsImpl implements Jobs { public list( resourceGroupName: string, vaultName: string, - options?: JobsListOptionalParams + options?: JobsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, vaultName, options); return { @@ -63,9 +63,9 @@ export class JobsImpl implements Jobs { resourceGroupName, vaultName, options, - settings + settings, ); - } + }, }; } @@ -73,7 +73,7 @@ export class JobsImpl implements Jobs { resourceGroupName: string, vaultName: string, options?: JobsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: JobsListResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class JobsImpl implements Jobs { resourceGroupName, vaultName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -101,12 +101,12 @@ export class JobsImpl implements Jobs { private async *listPagingAll( resourceGroupName: string, vaultName: string, - options?: JobsListOptionalParams + options?: JobsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, vaultName, - options + options, )) { yield* page; } @@ -121,11 +121,11 @@ export class JobsImpl implements Jobs { private _list( resourceGroupName: string, vaultName: string, - options?: JobsListOptionalParams + options?: JobsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, options }, - listOperationSpec + listOperationSpec, ); } @@ -141,11 +141,11 @@ export class JobsImpl implements Jobs { resourceGroupName: string, vaultName: string, jobId: string, - options?: JobsGetOptionalParams + options?: JobsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, jobId, options }, - getOperationSpec + getOperationSpec, ); } @@ -160,11 +160,11 @@ export class JobsImpl implements Jobs { resourceGroupName: string, vaultName: string, nextLink: string, - options?: JobsListNextOptionalParams + options?: JobsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -172,38 +172,36 @@ export class JobsImpl implements Jobs { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AzureBackupJobResourceList + bodyMapper: Mappers.AzureBackupJobResourceList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vaultName + Parameters.vaultName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs/{jobId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs/{jobId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AzureBackupJobResource + bodyMapper: Mappers.AzureBackupJobResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -211,29 +209,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.jobId + Parameters.jobId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AzureBackupJobResourceList + bodyMapper: Mappers.AzureBackupJobResourceList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/operationResult.ts b/sdk/dataprotection/arm-dataprotection/src/operations/operationResult.ts index bf9307248707..ed30f5af0c7e 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/operationResult.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/operationResult.ts @@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters"; import { DataProtectionClient } from "../dataProtectionClient"; import { OperationResultGetOptionalParams, - OperationResultGetResponse + OperationResultGetResponse, } from "../models"; /** Class containing OperationResult operations. */ @@ -37,11 +37,11 @@ export class OperationResultImpl implements OperationResult { get( operationId: string, location: string, - options?: OperationResultGetOptionalParams + options?: OperationResultGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { operationId, location, options }, - getOperationSpec + getOperationSpec, ); } } @@ -49,27 +49,26 @@ export class OperationResultImpl implements OperationResult { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/operationResults/{operationId}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/operationResults/{operationId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationJobExtendedInfo + bodyMapper: Mappers.OperationJobExtendedInfo, }, 202: { - headersMapper: Mappers.OperationResultGetHeaders + headersMapper: Mappers.OperationResultGetHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/operationStatus.ts b/sdk/dataprotection/arm-dataprotection/src/operations/operationStatus.ts index 5036e96cfe9e..c46d6d003c65 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/operationStatus.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/operationStatus.ts @@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters"; import { DataProtectionClient } from "../dataProtectionClient"; import { OperationStatusGetOptionalParams, - OperationStatusGetResponse + OperationStatusGetResponse, } from "../models"; /** Class containing OperationStatus operations. */ @@ -37,11 +37,11 @@ export class OperationStatusImpl implements OperationStatus { get( location: string, operationId: string, - options?: OperationStatusGetOptionalParams + options?: OperationStatusGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, operationId, options }, - getOperationSpec + getOperationSpec, ); } } @@ -49,24 +49,23 @@ export class OperationStatusImpl implements OperationStatus { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/operationStatus/{operationId}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/operationStatus/{operationId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationResource + bodyMapper: Mappers.OperationResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/operationStatusBackupVaultContext.ts b/sdk/dataprotection/arm-dataprotection/src/operations/operationStatusBackupVaultContext.ts index 91a2b002b140..d68562bfea71 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/operationStatusBackupVaultContext.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/operationStatusBackupVaultContext.ts @@ -13,12 +13,13 @@ import * as Parameters from "../models/parameters"; import { DataProtectionClient } from "../dataProtectionClient"; import { OperationStatusBackupVaultContextGetOptionalParams, - OperationStatusBackupVaultContextGetResponse + OperationStatusBackupVaultContextGetResponse, } from "../models"; /** Class containing OperationStatusBackupVaultContext operations. */ export class OperationStatusBackupVaultContextImpl - implements OperationStatusBackupVaultContext { + implements OperationStatusBackupVaultContext +{ private readonly client: DataProtectionClient; /** @@ -40,11 +41,11 @@ export class OperationStatusBackupVaultContextImpl resourceGroupName: string, vaultName: string, operationId: string, - options?: OperationStatusBackupVaultContextGetOptionalParams + options?: OperationStatusBackupVaultContextGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, operationId, options }, - getOperationSpec + getOperationSpec, ); } } @@ -52,16 +53,15 @@ export class OperationStatusBackupVaultContextImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/operationStatus/{operationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/operationStatus/{operationId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationResource + bodyMapper: Mappers.OperationResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -69,8 +69,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/operationStatusResourceGroupContext.ts b/sdk/dataprotection/arm-dataprotection/src/operations/operationStatusResourceGroupContext.ts index 7ffa84d41157..7ff062e01133 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/operationStatusResourceGroupContext.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/operationStatusResourceGroupContext.ts @@ -13,12 +13,13 @@ import * as Parameters from "../models/parameters"; import { DataProtectionClient } from "../dataProtectionClient"; import { OperationStatusResourceGroupContextGetOptionalParams, - OperationStatusResourceGroupContextGetResponse + OperationStatusResourceGroupContextGetResponse, } from "../models"; /** Class containing OperationStatusResourceGroupContext operations. */ export class OperationStatusResourceGroupContextImpl - implements OperationStatusResourceGroupContext { + implements OperationStatusResourceGroupContext +{ private readonly client: DataProtectionClient; /** @@ -38,11 +39,11 @@ export class OperationStatusResourceGroupContextImpl get( resourceGroupName: string, operationId: string, - options?: OperationStatusResourceGroupContextGetOptionalParams + options?: OperationStatusResourceGroupContextGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, operationId, options }, - getOperationSpec + getOperationSpec, ); } } @@ -50,24 +51,23 @@ export class OperationStatusResourceGroupContextImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/operationStatus/{operationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/operationStatus/{operationId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationResource + bodyMapper: Mappers.OperationResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/recoveryPoints.ts b/sdk/dataprotection/arm-dataprotection/src/operations/recoveryPoints.ts index fcf5dc74dee6..9fa4e06cd0cc 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/recoveryPoints.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/recoveryPoints.ts @@ -20,7 +20,7 @@ import { RecoveryPointsListResponse, RecoveryPointsGetOptionalParams, RecoveryPointsGetResponse, - RecoveryPointsListNextResponse + RecoveryPointsListNextResponse, } from "../models"; /// @@ -47,13 +47,13 @@ export class RecoveryPointsImpl implements RecoveryPoints { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: RecoveryPointsListOptionalParams + options?: RecoveryPointsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, vaultName, backupInstanceName, - options + options, ); return { next() { @@ -71,9 +71,9 @@ export class RecoveryPointsImpl implements RecoveryPoints { vaultName, backupInstanceName, options, - settings + settings, ); - } + }, }; } @@ -82,7 +82,7 @@ export class RecoveryPointsImpl implements RecoveryPoints { vaultName: string, backupInstanceName: string, options?: RecoveryPointsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RecoveryPointsListResponse; let continuationToken = settings?.continuationToken; @@ -91,7 +91,7 @@ export class RecoveryPointsImpl implements RecoveryPoints { resourceGroupName, vaultName, backupInstanceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -104,7 +104,7 @@ export class RecoveryPointsImpl implements RecoveryPoints { vaultName, backupInstanceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,13 +117,13 @@ export class RecoveryPointsImpl implements RecoveryPoints { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: RecoveryPointsListOptionalParams + options?: RecoveryPointsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, vaultName, backupInstanceName, - options + options, )) { yield* page; } @@ -140,11 +140,11 @@ export class RecoveryPointsImpl implements RecoveryPoints { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: RecoveryPointsListOptionalParams + options?: RecoveryPointsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, backupInstanceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -161,7 +161,7 @@ export class RecoveryPointsImpl implements RecoveryPoints { vaultName: string, backupInstanceName: string, recoveryPointId: string, - options?: RecoveryPointsGetOptionalParams + options?: RecoveryPointsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -169,9 +169,9 @@ export class RecoveryPointsImpl implements RecoveryPoints { vaultName, backupInstanceName, recoveryPointId, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -188,11 +188,11 @@ export class RecoveryPointsImpl implements RecoveryPoints { vaultName: string, backupInstanceName: string, nextLink: string, - options?: RecoveryPointsListNextOptionalParams + options?: RecoveryPointsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, backupInstanceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -200,43 +200,41 @@ export class RecoveryPointsImpl implements RecoveryPoints { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/recoveryPoints", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/recoveryPoints", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AzureBackupRecoveryPointResourceList + bodyMapper: Mappers.AzureBackupRecoveryPointResourceList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.filter, - Parameters.skipToken + Parameters.skipToken, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.backupInstanceName + Parameters.backupInstanceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/recoveryPoints/{recoveryPointId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/recoveryPoints/{recoveryPointId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AzureBackupRecoveryPointResource + bodyMapper: Mappers.AzureBackupRecoveryPointResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -245,21 +243,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vaultName, Parameters.backupInstanceName, - Parameters.recoveryPointId + Parameters.recoveryPointId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AzureBackupRecoveryPointResourceList + bodyMapper: Mappers.AzureBackupRecoveryPointResourceList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -267,8 +265,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vaultName, Parameters.nextLink, - Parameters.backupInstanceName + Parameters.backupInstanceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/resourceGuards.ts b/sdk/dataprotection/arm-dataprotection/src/operations/resourceGuards.ts index b8c6ac5d5d3d..06e4b01c45c2 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/resourceGuards.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/resourceGuards.ts @@ -67,7 +67,7 @@ import { ResourceGuardsGetBackupSecurityPINRequestsObjectsNextResponse, ResourceGuardsGetDeleteProtectedItemRequestsObjectsNextResponse, ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsNextResponse, - ResourceGuardsGetUpdateProtectedItemRequestsObjectsNextResponse + ResourceGuardsGetUpdateProtectedItemRequestsObjectsNextResponse, } from "../models"; /// @@ -88,7 +88,7 @@ export class ResourceGuardsImpl implements ResourceGuards { * @param options The options parameters. */ public listResourcesInSubscription( - options?: ResourceGuardsGetResourcesInSubscriptionOptionalParams + options?: ResourceGuardsGetResourcesInSubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.getResourcesInSubscriptionPagingAll(options); return { @@ -103,13 +103,13 @@ export class ResourceGuardsImpl implements ResourceGuards { throw new Error("maxPageSize is not supported by this operation."); } return this.getResourcesInSubscriptionPagingPage(options, settings); - } + }, }; } private async *getResourcesInSubscriptionPagingPage( options?: ResourceGuardsGetResourcesInSubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ResourceGuardsGetResourcesInSubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -123,7 +123,7 @@ export class ResourceGuardsImpl implements ResourceGuards { while (continuationToken) { result = await this._getResourcesInSubscriptionNext( continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -133,10 +133,10 @@ export class ResourceGuardsImpl implements ResourceGuards { } private async *getResourcesInSubscriptionPagingAll( - options?: ResourceGuardsGetResourcesInSubscriptionOptionalParams + options?: ResourceGuardsGetResourcesInSubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.getResourcesInSubscriptionPagingPage( - options + options, )) { yield* page; } @@ -149,11 +149,11 @@ export class ResourceGuardsImpl implements ResourceGuards { */ public listResourcesInResourceGroup( resourceGroupName: string, - options?: ResourceGuardsGetResourcesInResourceGroupOptionalParams + options?: ResourceGuardsGetResourcesInResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.getResourcesInResourceGroupPagingAll( resourceGroupName, - options + options, ); return { next() { @@ -169,23 +169,23 @@ export class ResourceGuardsImpl implements ResourceGuards { return this.getResourcesInResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *getResourcesInResourceGroupPagingPage( resourceGroupName: string, options?: ResourceGuardsGetResourcesInResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ResourceGuardsGetResourcesInResourceGroupResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._getResourcesInResourceGroup( resourceGroupName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -196,7 +196,7 @@ export class ResourceGuardsImpl implements ResourceGuards { result = await this._getResourcesInResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -207,11 +207,11 @@ export class ResourceGuardsImpl implements ResourceGuards { private async *getResourcesInResourceGroupPagingAll( resourceGroupName: string, - options?: ResourceGuardsGetResourcesInResourceGroupOptionalParams + options?: ResourceGuardsGetResourcesInResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.getResourcesInResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -227,12 +227,12 @@ export class ResourceGuardsImpl implements ResourceGuards { public listDisableSoftDeleteRequestsObjects( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetDisableSoftDeleteRequestsObjectsOptionalParams + options?: ResourceGuardsGetDisableSoftDeleteRequestsObjectsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.getDisableSoftDeleteRequestsObjectsPagingAll( resourceGroupName, resourceGuardsName, - options + options, ); return { next() { @@ -249,9 +249,9 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName, resourceGuardsName, options, - settings + settings, ); - } + }, }; } @@ -259,7 +259,7 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName: string, resourceGuardsName: string, options?: ResourceGuardsGetDisableSoftDeleteRequestsObjectsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ResourceGuardsGetDisableSoftDeleteRequestsObjectsResponse; let continuationToken = settings?.continuationToken; @@ -267,7 +267,7 @@ export class ResourceGuardsImpl implements ResourceGuards { result = await this._getDisableSoftDeleteRequestsObjects( resourceGroupName, resourceGuardsName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -279,7 +279,7 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName, resourceGuardsName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -291,12 +291,12 @@ export class ResourceGuardsImpl implements ResourceGuards { private async *getDisableSoftDeleteRequestsObjectsPagingAll( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetDisableSoftDeleteRequestsObjectsOptionalParams + options?: ResourceGuardsGetDisableSoftDeleteRequestsObjectsOptionalParams, ): AsyncIterableIterator { for await (const page of this.getDisableSoftDeleteRequestsObjectsPagingPage( resourceGroupName, resourceGuardsName, - options + options, )) { yield* page; } @@ -312,12 +312,12 @@ export class ResourceGuardsImpl implements ResourceGuards { public listDeleteResourceGuardProxyRequestsObjects( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsOptionalParams + options?: ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.getDeleteResourceGuardProxyRequestsObjectsPagingAll( resourceGroupName, resourceGuardsName, - options + options, ); return { next() { @@ -334,9 +334,9 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName, resourceGuardsName, options, - settings + settings, ); - } + }, }; } @@ -344,7 +344,7 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName: string, resourceGuardsName: string, options?: ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsResponse; let continuationToken = settings?.continuationToken; @@ -352,7 +352,7 @@ export class ResourceGuardsImpl implements ResourceGuards { result = await this._getDeleteResourceGuardProxyRequestsObjects( resourceGroupName, resourceGuardsName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -364,7 +364,7 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName, resourceGuardsName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -376,12 +376,12 @@ export class ResourceGuardsImpl implements ResourceGuards { private async *getDeleteResourceGuardProxyRequestsObjectsPagingAll( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsOptionalParams + options?: ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsOptionalParams, ): AsyncIterableIterator { for await (const page of this.getDeleteResourceGuardProxyRequestsObjectsPagingPage( resourceGroupName, resourceGuardsName, - options + options, )) { yield* page; } @@ -397,12 +397,12 @@ export class ResourceGuardsImpl implements ResourceGuards { public listBackupSecurityPINRequestsObjects( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetBackupSecurityPINRequestsObjectsOptionalParams + options?: ResourceGuardsGetBackupSecurityPINRequestsObjectsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.getBackupSecurityPINRequestsObjectsPagingAll( resourceGroupName, resourceGuardsName, - options + options, ); return { next() { @@ -419,9 +419,9 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName, resourceGuardsName, options, - settings + settings, ); - } + }, }; } @@ -429,7 +429,7 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName: string, resourceGuardsName: string, options?: ResourceGuardsGetBackupSecurityPINRequestsObjectsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ResourceGuardsGetBackupSecurityPINRequestsObjectsResponse; let continuationToken = settings?.continuationToken; @@ -437,7 +437,7 @@ export class ResourceGuardsImpl implements ResourceGuards { result = await this._getBackupSecurityPINRequestsObjects( resourceGroupName, resourceGuardsName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -449,7 +449,7 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName, resourceGuardsName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -461,12 +461,12 @@ export class ResourceGuardsImpl implements ResourceGuards { private async *getBackupSecurityPINRequestsObjectsPagingAll( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetBackupSecurityPINRequestsObjectsOptionalParams + options?: ResourceGuardsGetBackupSecurityPINRequestsObjectsOptionalParams, ): AsyncIterableIterator { for await (const page of this.getBackupSecurityPINRequestsObjectsPagingPage( resourceGroupName, resourceGuardsName, - options + options, )) { yield* page; } @@ -482,12 +482,12 @@ export class ResourceGuardsImpl implements ResourceGuards { public listDeleteProtectedItemRequestsObjects( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetDeleteProtectedItemRequestsObjectsOptionalParams + options?: ResourceGuardsGetDeleteProtectedItemRequestsObjectsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.getDeleteProtectedItemRequestsObjectsPagingAll( resourceGroupName, resourceGuardsName, - options + options, ); return { next() { @@ -504,9 +504,9 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName, resourceGuardsName, options, - settings + settings, ); - } + }, }; } @@ -514,7 +514,7 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName: string, resourceGuardsName: string, options?: ResourceGuardsGetDeleteProtectedItemRequestsObjectsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ResourceGuardsGetDeleteProtectedItemRequestsObjectsResponse; let continuationToken = settings?.continuationToken; @@ -522,7 +522,7 @@ export class ResourceGuardsImpl implements ResourceGuards { result = await this._getDeleteProtectedItemRequestsObjects( resourceGroupName, resourceGuardsName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -534,7 +534,7 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName, resourceGuardsName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -546,12 +546,12 @@ export class ResourceGuardsImpl implements ResourceGuards { private async *getDeleteProtectedItemRequestsObjectsPagingAll( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetDeleteProtectedItemRequestsObjectsOptionalParams + options?: ResourceGuardsGetDeleteProtectedItemRequestsObjectsOptionalParams, ): AsyncIterableIterator { for await (const page of this.getDeleteProtectedItemRequestsObjectsPagingPage( resourceGroupName, resourceGuardsName, - options + options, )) { yield* page; } @@ -567,12 +567,12 @@ export class ResourceGuardsImpl implements ResourceGuards { public listUpdateProtectionPolicyRequestsObjects( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsOptionalParams + options?: ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.getUpdateProtectionPolicyRequestsObjectsPagingAll( resourceGroupName, resourceGuardsName, - options + options, ); return { next() { @@ -589,9 +589,9 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName, resourceGuardsName, options, - settings + settings, ); - } + }, }; } @@ -599,7 +599,7 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName: string, resourceGuardsName: string, options?: ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsResponse; let continuationToken = settings?.continuationToken; @@ -607,7 +607,7 @@ export class ResourceGuardsImpl implements ResourceGuards { result = await this._getUpdateProtectionPolicyRequestsObjects( resourceGroupName, resourceGuardsName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -619,7 +619,7 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName, resourceGuardsName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -631,12 +631,12 @@ export class ResourceGuardsImpl implements ResourceGuards { private async *getUpdateProtectionPolicyRequestsObjectsPagingAll( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsOptionalParams + options?: ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsOptionalParams, ): AsyncIterableIterator { for await (const page of this.getUpdateProtectionPolicyRequestsObjectsPagingPage( resourceGroupName, resourceGuardsName, - options + options, )) { yield* page; } @@ -652,12 +652,12 @@ export class ResourceGuardsImpl implements ResourceGuards { public listUpdateProtectedItemRequestsObjects( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetUpdateProtectedItemRequestsObjectsOptionalParams + options?: ResourceGuardsGetUpdateProtectedItemRequestsObjectsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.getUpdateProtectedItemRequestsObjectsPagingAll( resourceGroupName, resourceGuardsName, - options + options, ); return { next() { @@ -674,9 +674,9 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName, resourceGuardsName, options, - settings + settings, ); - } + }, }; } @@ -684,7 +684,7 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName: string, resourceGuardsName: string, options?: ResourceGuardsGetUpdateProtectedItemRequestsObjectsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ResourceGuardsGetUpdateProtectedItemRequestsObjectsResponse; let continuationToken = settings?.continuationToken; @@ -692,7 +692,7 @@ export class ResourceGuardsImpl implements ResourceGuards { result = await this._getUpdateProtectedItemRequestsObjects( resourceGroupName, resourceGuardsName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -704,7 +704,7 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName, resourceGuardsName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -716,12 +716,12 @@ export class ResourceGuardsImpl implements ResourceGuards { private async *getUpdateProtectedItemRequestsObjectsPagingAll( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetUpdateProtectedItemRequestsObjectsOptionalParams + options?: ResourceGuardsGetUpdateProtectedItemRequestsObjectsOptionalParams, ): AsyncIterableIterator { for await (const page of this.getUpdateProtectedItemRequestsObjectsPagingPage( resourceGroupName, resourceGuardsName, - options + options, )) { yield* page; } @@ -732,11 +732,11 @@ export class ResourceGuardsImpl implements ResourceGuards { * @param options The options parameters. */ private _getResourcesInSubscription( - options?: ResourceGuardsGetResourcesInSubscriptionOptionalParams + options?: ResourceGuardsGetResourcesInSubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - getResourcesInSubscriptionOperationSpec + getResourcesInSubscriptionOperationSpec, ); } @@ -747,11 +747,11 @@ export class ResourceGuardsImpl implements ResourceGuards { */ private _getResourcesInResourceGroup( resourceGroupName: string, - options?: ResourceGuardsGetResourcesInResourceGroupOptionalParams + options?: ResourceGuardsGetResourcesInResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - getResourcesInResourceGroupOperationSpec + getResourcesInResourceGroupOperationSpec, ); } @@ -766,11 +766,11 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName: string, resourceGuardsName: string, parameters: ResourceGuardResource, - options?: ResourceGuardsPutOptionalParams + options?: ResourceGuardsPutOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceGuardsName, parameters, options }, - putOperationSpec + putOperationSpec, ); } @@ -783,11 +783,11 @@ export class ResourceGuardsImpl implements ResourceGuards { get( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetOptionalParams + options?: ResourceGuardsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceGuardsName, options }, - getOperationSpec + getOperationSpec, ); } @@ -800,11 +800,11 @@ export class ResourceGuardsImpl implements ResourceGuards { delete( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsDeleteOptionalParams + options?: ResourceGuardsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceGuardsName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -820,11 +820,11 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName: string, resourceGuardsName: string, parameters: PatchResourceGuardInput, - options?: ResourceGuardsPatchOptionalParams + options?: ResourceGuardsPatchOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceGuardsName, parameters, options }, - patchOperationSpec + patchOperationSpec, ); } @@ -838,11 +838,11 @@ export class ResourceGuardsImpl implements ResourceGuards { private _getDisableSoftDeleteRequestsObjects( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetDisableSoftDeleteRequestsObjectsOptionalParams + options?: ResourceGuardsGetDisableSoftDeleteRequestsObjectsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceGuardsName, options }, - getDisableSoftDeleteRequestsObjectsOperationSpec + getDisableSoftDeleteRequestsObjectsOperationSpec, ); } @@ -856,11 +856,11 @@ export class ResourceGuardsImpl implements ResourceGuards { private _getDeleteResourceGuardProxyRequestsObjects( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsOptionalParams + options?: ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceGuardsName, options }, - getDeleteResourceGuardProxyRequestsObjectsOperationSpec + getDeleteResourceGuardProxyRequestsObjectsOperationSpec, ); } @@ -874,11 +874,11 @@ export class ResourceGuardsImpl implements ResourceGuards { private _getBackupSecurityPINRequestsObjects( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetBackupSecurityPINRequestsObjectsOptionalParams + options?: ResourceGuardsGetBackupSecurityPINRequestsObjectsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceGuardsName, options }, - getBackupSecurityPINRequestsObjectsOperationSpec + getBackupSecurityPINRequestsObjectsOperationSpec, ); } @@ -892,11 +892,11 @@ export class ResourceGuardsImpl implements ResourceGuards { private _getDeleteProtectedItemRequestsObjects( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetDeleteProtectedItemRequestsObjectsOptionalParams + options?: ResourceGuardsGetDeleteProtectedItemRequestsObjectsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceGuardsName, options }, - getDeleteProtectedItemRequestsObjectsOperationSpec + getDeleteProtectedItemRequestsObjectsOperationSpec, ); } @@ -910,11 +910,11 @@ export class ResourceGuardsImpl implements ResourceGuards { private _getUpdateProtectionPolicyRequestsObjects( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsOptionalParams + options?: ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceGuardsName, options }, - getUpdateProtectionPolicyRequestsObjectsOperationSpec + getUpdateProtectionPolicyRequestsObjectsOperationSpec, ); } @@ -928,11 +928,11 @@ export class ResourceGuardsImpl implements ResourceGuards { private _getUpdateProtectedItemRequestsObjects( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetUpdateProtectedItemRequestsObjectsOptionalParams + options?: ResourceGuardsGetUpdateProtectedItemRequestsObjectsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceGuardsName, options }, - getUpdateProtectedItemRequestsObjectsOperationSpec + getUpdateProtectedItemRequestsObjectsOperationSpec, ); } @@ -948,11 +948,11 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName: string, resourceGuardsName: string, requestName: string, - options?: ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectOptionalParams + options?: ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceGuardsName, requestName, options }, - getDefaultDisableSoftDeleteRequestsObjectOperationSpec + getDefaultDisableSoftDeleteRequestsObjectOperationSpec, ); } @@ -968,13 +968,11 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName: string, resourceGuardsName: string, requestName: string, - options?: ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectOptionalParams - ): Promise< - ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectResponse - > { + options?: ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceGuardsName, requestName, options }, - getDefaultDeleteResourceGuardProxyRequestsObjectOperationSpec + getDefaultDeleteResourceGuardProxyRequestsObjectOperationSpec, ); } @@ -990,11 +988,11 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName: string, resourceGuardsName: string, requestName: string, - options?: ResourceGuardsGetDefaultBackupSecurityPINRequestsObjectOptionalParams + options?: ResourceGuardsGetDefaultBackupSecurityPINRequestsObjectOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceGuardsName, requestName, options }, - getDefaultBackupSecurityPINRequestsObjectOperationSpec + getDefaultBackupSecurityPINRequestsObjectOperationSpec, ); } @@ -1010,13 +1008,11 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName: string, resourceGuardsName: string, requestName: string, - options?: ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectOptionalParams - ): Promise< - ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectResponse - > { + options?: ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceGuardsName, requestName, options }, - getDefaultDeleteProtectedItemRequestsObjectOperationSpec + getDefaultDeleteProtectedItemRequestsObjectOperationSpec, ); } @@ -1032,13 +1028,11 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName: string, resourceGuardsName: string, requestName: string, - options?: ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectOptionalParams - ): Promise< - ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectResponse - > { + options?: ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceGuardsName, requestName, options }, - getDefaultUpdateProtectionPolicyRequestsObjectOperationSpec + getDefaultUpdateProtectionPolicyRequestsObjectOperationSpec, ); } @@ -1054,13 +1048,11 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName: string, resourceGuardsName: string, requestName: string, - options?: ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectOptionalParams - ): Promise< - ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectResponse - > { + options?: ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceGuardsName, requestName, options }, - getDefaultUpdateProtectedItemRequestsObjectOperationSpec + getDefaultUpdateProtectedItemRequestsObjectOperationSpec, ); } @@ -1072,11 +1064,11 @@ export class ResourceGuardsImpl implements ResourceGuards { */ private _getResourcesInSubscriptionNext( nextLink: string, - options?: ResourceGuardsGetResourcesInSubscriptionNextOptionalParams + options?: ResourceGuardsGetResourcesInSubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - getResourcesInSubscriptionNextOperationSpec + getResourcesInSubscriptionNextOperationSpec, ); } @@ -1090,11 +1082,11 @@ export class ResourceGuardsImpl implements ResourceGuards { private _getResourcesInResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: ResourceGuardsGetResourcesInResourceGroupNextOptionalParams + options?: ResourceGuardsGetResourcesInResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - getResourcesInResourceGroupNextOperationSpec + getResourcesInResourceGroupNextOperationSpec, ); } @@ -1110,11 +1102,11 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName: string, resourceGuardsName: string, nextLink: string, - options?: ResourceGuardsGetDisableSoftDeleteRequestsObjectsNextOptionalParams + options?: ResourceGuardsGetDisableSoftDeleteRequestsObjectsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceGuardsName, nextLink, options }, - getDisableSoftDeleteRequestsObjectsNextOperationSpec + getDisableSoftDeleteRequestsObjectsNextOperationSpec, ); } @@ -1130,13 +1122,11 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName: string, resourceGuardsName: string, nextLink: string, - options?: ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsNextOptionalParams - ): Promise< - ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsNextResponse - > { + options?: ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsNextOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceGuardsName, nextLink, options }, - getDeleteResourceGuardProxyRequestsObjectsNextOperationSpec + getDeleteResourceGuardProxyRequestsObjectsNextOperationSpec, ); } @@ -1152,11 +1142,11 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName: string, resourceGuardsName: string, nextLink: string, - options?: ResourceGuardsGetBackupSecurityPINRequestsObjectsNextOptionalParams + options?: ResourceGuardsGetBackupSecurityPINRequestsObjectsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceGuardsName, nextLink, options }, - getBackupSecurityPINRequestsObjectsNextOperationSpec + getBackupSecurityPINRequestsObjectsNextOperationSpec, ); } @@ -1172,11 +1162,11 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName: string, resourceGuardsName: string, nextLink: string, - options?: ResourceGuardsGetDeleteProtectedItemRequestsObjectsNextOptionalParams + options?: ResourceGuardsGetDeleteProtectedItemRequestsObjectsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceGuardsName, nextLink, options }, - getDeleteProtectedItemRequestsObjectsNextOperationSpec + getDeleteProtectedItemRequestsObjectsNextOperationSpec, ); } @@ -1192,13 +1182,11 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName: string, resourceGuardsName: string, nextLink: string, - options?: ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsNextOptionalParams - ): Promise< - ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsNextResponse - > { + options?: ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsNextOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceGuardsName, nextLink, options }, - getUpdateProtectionPolicyRequestsObjectsNextOperationSpec + getUpdateProtectionPolicyRequestsObjectsNextOperationSpec, ); } @@ -1214,11 +1202,11 @@ export class ResourceGuardsImpl implements ResourceGuards { resourceGroupName: string, resourceGuardsName: string, nextLink: string, - options?: ResourceGuardsGetUpdateProtectedItemRequestsObjectsNextOptionalParams + options?: ResourceGuardsGetUpdateProtectedItemRequestsObjectsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceGuardsName, nextLink, options }, - getUpdateProtectedItemRequestsObjectsNextOperationSpec + getUpdateProtectedItemRequestsObjectsNextOperationSpec, ); } } @@ -1226,57 +1214,54 @@ export class ResourceGuardsImpl implements ResourceGuards { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getResourcesInSubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/resourceGuards", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/resourceGuards", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceGuardResourceList + bodyMapper: Mappers.ResourceGuardResourceList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getResourcesInResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceGuardResourceList + bodyMapper: Mappers.ResourceGuardResourceList, }, 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 putOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ResourceGuardResource + bodyMapper: Mappers.ResourceGuardResource, }, 201: { - bodyMapper: Mappers.ResourceGuardResource + bodyMapper: Mappers.ResourceGuardResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters18, queryParameters: [Parameters.apiVersion], @@ -1284,66 +1269,63 @@ const putOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceGuardsName + Parameters.resourceGuardsName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceGuardResource + bodyMapper: Mappers.ResourceGuardResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceGuardsName + Parameters.resourceGuardsName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceGuardsName + Parameters.resourceGuardsName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const patchOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.ResourceGuardResource + bodyMapper: Mappers.ResourceGuardResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters19, queryParameters: [Parameters.apiVersion], @@ -1351,444 +1333,450 @@ const patchOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.resourceGuardsName + Parameters.resourceGuardsName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; -const getDisableSoftDeleteRequestsObjectsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/disableSoftDeleteRequests", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DppBaseResourceList +const getDisableSoftDeleteRequestsObjectsOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/disableSoftDeleteRequests", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DppBaseResourceList, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceGuardsName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getDeleteResourceGuardProxyRequestsObjectsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/deleteResourceGuardProxyRequests", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DppBaseResourceList + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceGuardsName, + ], + headerParameters: [Parameters.accept], + serializer, + }; +const getDeleteResourceGuardProxyRequestsObjectsOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/deleteResourceGuardProxyRequests", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DppBaseResourceList, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceGuardsName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getBackupSecurityPINRequestsObjectsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/getBackupSecurityPINRequests", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DppBaseResourceList + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceGuardsName, + ], + headerParameters: [Parameters.accept], + serializer, + }; +const getBackupSecurityPINRequestsObjectsOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/getBackupSecurityPINRequests", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DppBaseResourceList, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceGuardsName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getDeleteProtectedItemRequestsObjectsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/deleteProtectedItemRequests", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DppBaseResourceList + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceGuardsName, + ], + headerParameters: [Parameters.accept], + serializer, + }; +const getDeleteProtectedItemRequestsObjectsOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/deleteProtectedItemRequests", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DppBaseResourceList, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceGuardsName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getUpdateProtectionPolicyRequestsObjectsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/updateProtectionPolicyRequests", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DppBaseResourceList + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceGuardsName, + ], + headerParameters: [Parameters.accept], + serializer, + }; +const getUpdateProtectionPolicyRequestsObjectsOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/updateProtectionPolicyRequests", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DppBaseResourceList, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceGuardsName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getUpdateProtectedItemRequestsObjectsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/updateProtectedItemRequests", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DppBaseResourceList + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceGuardsName, + ], + headerParameters: [Parameters.accept], + serializer, + }; +const getUpdateProtectedItemRequestsObjectsOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/updateProtectedItemRequests", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DppBaseResourceList, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceGuardsName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getDefaultDisableSoftDeleteRequestsObjectOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/disableSoftDeleteRequests/{requestName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DppBaseResource + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceGuardsName, + ], + headerParameters: [Parameters.accept], + serializer, + }; +const getDefaultDisableSoftDeleteRequestsObjectOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/disableSoftDeleteRequests/{requestName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DppBaseResource, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceGuardsName, - Parameters.requestName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getDefaultDeleteResourceGuardProxyRequestsObjectOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/deleteResourceGuardProxyRequests/{requestName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DppBaseResource + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceGuardsName, + Parameters.requestName, + ], + headerParameters: [Parameters.accept], + serializer, + }; +const getDefaultDeleteResourceGuardProxyRequestsObjectOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/deleteResourceGuardProxyRequests/{requestName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DppBaseResource, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceGuardsName, - Parameters.requestName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getDefaultBackupSecurityPINRequestsObjectOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/getBackupSecurityPINRequests/{requestName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DppBaseResource + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceGuardsName, + Parameters.requestName, + ], + headerParameters: [Parameters.accept], + serializer, + }; +const getDefaultBackupSecurityPINRequestsObjectOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/getBackupSecurityPINRequests/{requestName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DppBaseResource, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceGuardsName, - Parameters.requestName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getDefaultDeleteProtectedItemRequestsObjectOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/deleteProtectedItemRequests/{requestName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DppBaseResource + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceGuardsName, + Parameters.requestName, + ], + headerParameters: [Parameters.accept], + serializer, + }; +const getDefaultDeleteProtectedItemRequestsObjectOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/deleteProtectedItemRequests/{requestName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DppBaseResource, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceGuardsName, - Parameters.requestName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getDefaultUpdateProtectionPolicyRequestsObjectOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/updateProtectionPolicyRequests/{requestName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DppBaseResource + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceGuardsName, + Parameters.requestName, + ], + headerParameters: [Parameters.accept], + serializer, + }; +const getDefaultUpdateProtectionPolicyRequestsObjectOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/updateProtectionPolicyRequests/{requestName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DppBaseResource, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceGuardsName, - Parameters.requestName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getDefaultUpdateProtectedItemRequestsObjectOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/updateProtectedItemRequests/{requestName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DppBaseResource + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceGuardsName, + Parameters.requestName, + ], + headerParameters: [Parameters.accept], + serializer, + }; +const getDefaultUpdateProtectedItemRequestsObjectOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/updateProtectedItemRequests/{requestName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DppBaseResource, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceGuardsName, - Parameters.requestName - ], - headerParameters: [Parameters.accept], - serializer -}; + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceGuardsName, + Parameters.requestName, + ], + headerParameters: [Parameters.accept], + serializer, + }; const getResourcesInSubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceGuardResourceList + bodyMapper: Mappers.ResourceGuardResourceList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getResourcesInResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceGuardResourceList + bodyMapper: Mappers.ResourceGuardResourceList, }, default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; -const getDisableSoftDeleteRequestsObjectsNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DppBaseResourceList + bodyMapper: Mappers.CloudError, }, - default: { - bodyMapper: Mappers.CloudError - } }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.nextLink, - Parameters.resourceGuardsName ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const getDeleteResourceGuardProxyRequestsObjectsNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DppBaseResourceList +const getDisableSoftDeleteRequestsObjectsNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DppBaseResourceList, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.nextLink, - Parameters.resourceGuardsName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getBackupSecurityPINRequestsObjectsNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DppBaseResourceList + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.resourceGuardsName, + ], + headerParameters: [Parameters.accept], + serializer, + }; +const getDeleteResourceGuardProxyRequestsObjectsNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DppBaseResourceList, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.nextLink, - Parameters.resourceGuardsName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getDeleteProtectedItemRequestsObjectsNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DppBaseResourceList + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.resourceGuardsName, + ], + headerParameters: [Parameters.accept], + serializer, + }; +const getBackupSecurityPINRequestsObjectsNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DppBaseResourceList, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.nextLink, - Parameters.resourceGuardsName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getUpdateProtectionPolicyRequestsObjectsNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DppBaseResourceList + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.resourceGuardsName, + ], + headerParameters: [Parameters.accept], + serializer, + }; +const getDeleteProtectedItemRequestsObjectsNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DppBaseResourceList, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.nextLink, - Parameters.resourceGuardsName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getUpdateProtectedItemRequestsObjectsNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DppBaseResourceList + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.resourceGuardsName, + ], + headerParameters: [Parameters.accept], + serializer, + }; +const getUpdateProtectionPolicyRequestsObjectsNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DppBaseResourceList, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.nextLink, - Parameters.resourceGuardsName - ], - headerParameters: [Parameters.accept], - serializer -}; + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.resourceGuardsName, + ], + headerParameters: [Parameters.accept], + serializer, + }; +const getUpdateProtectedItemRequestsObjectsNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DppBaseResourceList, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.resourceGuardsName, + ], + headerParameters: [Parameters.accept], + serializer, + }; diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/restorableTimeRanges.ts b/sdk/dataprotection/arm-dataprotection/src/operations/restorableTimeRanges.ts index 60a5d0e0eba0..b31c2f3afb00 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/restorableTimeRanges.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/restorableTimeRanges.ts @@ -14,7 +14,7 @@ import { DataProtectionClient } from "../dataProtectionClient"; import { AzureBackupFindRestorableTimeRangesRequest, RestorableTimeRangesFindOptionalParams, - RestorableTimeRangesFindResponse + RestorableTimeRangesFindResponse, } from "../models"; /** Class containing RestorableTimeRanges operations. */ @@ -41,11 +41,11 @@ export class RestorableTimeRangesImpl implements RestorableTimeRanges { vaultName: string, backupInstanceName: string, parameters: AzureBackupFindRestorableTimeRangesRequest, - options?: RestorableTimeRangesFindOptionalParams + options?: RestorableTimeRangesFindOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vaultName, backupInstanceName, parameters, options }, - findOperationSpec + findOperationSpec, ); } } @@ -53,16 +53,15 @@ export class RestorableTimeRangesImpl implements RestorableTimeRanges { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const findOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/findRestorableTimeRanges", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/findRestorableTimeRanges", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AzureBackupFindRestorableTimeRangesResponseResource + bodyMapper: Mappers.AzureBackupFindRestorableTimeRangesResponseResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters17, queryParameters: [Parameters.apiVersion], @@ -71,9 +70,9 @@ const findOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vaultName, - Parameters.backupInstanceName + Parameters.backupInstanceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupInstances.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupInstances.ts index 7e5657026617..6e17875f4d0f 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupInstances.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupInstances.ts @@ -44,7 +44,7 @@ import { BackupInstancesSyncBackupInstanceOptionalParams, ValidateRestoreRequestObject, BackupInstancesValidateForRestoreOptionalParams, - BackupInstancesValidateForRestoreResponse + BackupInstancesValidateForRestoreResponse, } from "../models"; /// @@ -59,7 +59,7 @@ export interface BackupInstances { list( resourceGroupName: string, vaultName: string, - options?: BackupInstancesListOptionalParams + options?: BackupInstancesListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a backup instance with name in a backup vault @@ -72,7 +72,7 @@ export interface BackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: BackupInstancesGetOptionalParams + options?: BackupInstancesGetOptionalParams, ): Promise; /** * Create or update a backup instance in a backup vault @@ -87,7 +87,7 @@ export interface BackupInstances { vaultName: string, backupInstanceName: string, parameters: BackupInstanceResource, - options?: BackupInstancesCreateOrUpdateOptionalParams + options?: BackupInstancesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -107,7 +107,7 @@ export interface BackupInstances { vaultName: string, backupInstanceName: string, parameters: BackupInstanceResource, - options?: BackupInstancesCreateOrUpdateOptionalParams + options?: BackupInstancesCreateOrUpdateOptionalParams, ): Promise; /** * Delete a backup instance in a backup vault @@ -120,7 +120,7 @@ export interface BackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: BackupInstancesDeleteOptionalParams + options?: BackupInstancesDeleteOptionalParams, ): Promise, void>>; /** * Delete a backup instance in a backup vault @@ -133,7 +133,7 @@ export interface BackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: BackupInstancesDeleteOptionalParams + options?: BackupInstancesDeleteOptionalParams, ): Promise; /** * Trigger adhoc backup @@ -148,7 +148,7 @@ export interface BackupInstances { vaultName: string, backupInstanceName: string, parameters: TriggerBackupRequest, - options?: BackupInstancesAdhocBackupOptionalParams + options?: BackupInstancesAdhocBackupOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -168,7 +168,7 @@ export interface BackupInstances { vaultName: string, backupInstanceName: string, parameters: TriggerBackupRequest, - options?: BackupInstancesAdhocBackupOptionalParams + options?: BackupInstancesAdhocBackupOptionalParams, ): Promise; /** * Validate whether adhoc backup will be successful or not @@ -181,7 +181,7 @@ export interface BackupInstances { resourceGroupName: string, vaultName: string, parameters: ValidateForBackupRequest, - options?: BackupInstancesValidateForBackupOptionalParams + options?: BackupInstancesValidateForBackupOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -199,7 +199,7 @@ export interface BackupInstances { resourceGroupName: string, vaultName: string, parameters: ValidateForBackupRequest, - options?: BackupInstancesValidateForBackupOptionalParams + options?: BackupInstancesValidateForBackupOptionalParams, ): Promise; /** * Get result of backup instance creation operation @@ -214,7 +214,7 @@ export interface BackupInstances { vaultName: string, backupInstanceName: string, operationId: string, - options?: BackupInstancesGetBackupInstanceOperationResultOptionalParams + options?: BackupInstancesGetBackupInstanceOperationResultOptionalParams, ): Promise; /** * Triggers Cross Region Restore for BackupInstance. @@ -227,7 +227,7 @@ export interface BackupInstances { resourceGroupName: string, location: string, parameters: CrossRegionRestoreRequestObject, - options?: BackupInstancesTriggerCrossRegionRestoreOptionalParams + options?: BackupInstancesTriggerCrossRegionRestoreOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -245,7 +245,7 @@ export interface BackupInstances { resourceGroupName: string, location: string, parameters: CrossRegionRestoreRequestObject, - options?: BackupInstancesTriggerCrossRegionRestoreOptionalParams + options?: BackupInstancesTriggerCrossRegionRestoreOptionalParams, ): Promise; /** * Validates whether Cross Region Restore can be triggered for DataSource. @@ -258,7 +258,7 @@ export interface BackupInstances { resourceGroupName: string, location: string, parameters: ValidateCrossRegionRestoreRequestObject, - options?: BackupInstancesValidateCrossRegionRestoreOptionalParams + options?: BackupInstancesValidateCrossRegionRestoreOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -276,7 +276,7 @@ export interface BackupInstances { resourceGroupName: string, location: string, parameters: ValidateCrossRegionRestoreRequestObject, - options?: BackupInstancesValidateCrossRegionRestoreOptionalParams + options?: BackupInstancesValidateCrossRegionRestoreOptionalParams, ): Promise; /** * rehydrate recovery point for restore for a BackupInstance @@ -291,7 +291,7 @@ export interface BackupInstances { vaultName: string, backupInstanceName: string, parameters: AzureBackupRehydrationRequest, - options?: BackupInstancesTriggerRehydrateOptionalParams + options?: BackupInstancesTriggerRehydrateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -311,7 +311,7 @@ export interface BackupInstances { vaultName: string, backupInstanceName: string, parameters: AzureBackupRehydrationRequest, - options?: BackupInstancesTriggerRehydrateOptionalParams + options?: BackupInstancesTriggerRehydrateOptionalParams, ): Promise; /** * Triggers restore for a BackupInstance @@ -326,7 +326,7 @@ export interface BackupInstances { vaultName: string, backupInstanceName: string, parameters: AzureBackupRestoreRequestUnion, - options?: BackupInstancesTriggerRestoreOptionalParams + options?: BackupInstancesTriggerRestoreOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -346,7 +346,7 @@ export interface BackupInstances { vaultName: string, backupInstanceName: string, parameters: AzureBackupRestoreRequestUnion, - options?: BackupInstancesTriggerRestoreOptionalParams + options?: BackupInstancesTriggerRestoreOptionalParams, ): Promise; /** * This operation will resume backups for backup instance @@ -359,7 +359,7 @@ export interface BackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: BackupInstancesResumeBackupsOptionalParams + options?: BackupInstancesResumeBackupsOptionalParams, ): Promise, void>>; /** * This operation will resume backups for backup instance @@ -372,7 +372,7 @@ export interface BackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: BackupInstancesResumeBackupsOptionalParams + options?: BackupInstancesResumeBackupsOptionalParams, ): Promise; /** * This operation will resume protection for a stopped backup instance @@ -385,7 +385,7 @@ export interface BackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: BackupInstancesResumeProtectionOptionalParams + options?: BackupInstancesResumeProtectionOptionalParams, ): Promise, void>>; /** * This operation will resume protection for a stopped backup instance @@ -398,7 +398,7 @@ export interface BackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: BackupInstancesResumeProtectionOptionalParams + options?: BackupInstancesResumeProtectionOptionalParams, ): Promise; /** * This operation will stop protection of a backup instance and data will be held forever @@ -411,7 +411,7 @@ export interface BackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: BackupInstancesStopProtectionOptionalParams + options?: BackupInstancesStopProtectionOptionalParams, ): Promise, void>>; /** * This operation will stop protection of a backup instance and data will be held forever @@ -424,7 +424,7 @@ export interface BackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: BackupInstancesStopProtectionOptionalParams + options?: BackupInstancesStopProtectionOptionalParams, ): Promise; /** * This operation will stop backup for a backup instance and retains the backup data as per the policy @@ -438,7 +438,7 @@ export interface BackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: BackupInstancesSuspendBackupsOptionalParams + options?: BackupInstancesSuspendBackupsOptionalParams, ): Promise, void>>; /** * This operation will stop backup for a backup instance and retains the backup data as per the policy @@ -452,7 +452,7 @@ export interface BackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: BackupInstancesSuspendBackupsOptionalParams + options?: BackupInstancesSuspendBackupsOptionalParams, ): Promise; /** * Sync backup instance again in case of failure @@ -468,7 +468,7 @@ export interface BackupInstances { vaultName: string, backupInstanceName: string, parameters: SyncBackupInstanceRequest, - options?: BackupInstancesSyncBackupInstanceOptionalParams + options?: BackupInstancesSyncBackupInstanceOptionalParams, ): Promise, void>>; /** * Sync backup instance again in case of failure @@ -484,7 +484,7 @@ export interface BackupInstances { vaultName: string, backupInstanceName: string, parameters: SyncBackupInstanceRequest, - options?: BackupInstancesSyncBackupInstanceOptionalParams + options?: BackupInstancesSyncBackupInstanceOptionalParams, ): Promise; /** * Validates if Restore can be triggered for a DataSource @@ -499,7 +499,7 @@ export interface BackupInstances { vaultName: string, backupInstanceName: string, parameters: ValidateRestoreRequestObject, - options?: BackupInstancesValidateForRestoreOptionalParams + options?: BackupInstancesValidateForRestoreOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -519,6 +519,6 @@ export interface BackupInstances { vaultName: string, backupInstanceName: string, parameters: ValidateRestoreRequestObject, - options?: BackupInstancesValidateForRestoreOptionalParams + options?: BackupInstancesValidateForRestoreOptionalParams, ): Promise; } diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupPolicies.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupPolicies.ts index 6ce37deedf58..bd48bcc3f5dd 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupPolicies.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupPolicies.ts @@ -14,7 +14,7 @@ import { BackupPoliciesGetResponse, BackupPoliciesCreateOrUpdateOptionalParams, BackupPoliciesCreateOrUpdateResponse, - BackupPoliciesDeleteOptionalParams + BackupPoliciesDeleteOptionalParams, } from "../models"; /// @@ -29,7 +29,7 @@ export interface BackupPolicies { list( resourceGroupName: string, vaultName: string, - options?: BackupPoliciesListOptionalParams + options?: BackupPoliciesListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a backup policy belonging to a backup vault @@ -42,7 +42,7 @@ export interface BackupPolicies { resourceGroupName: string, vaultName: string, backupPolicyName: string, - options?: BackupPoliciesGetOptionalParams + options?: BackupPoliciesGetOptionalParams, ): Promise; /** * Creates or Updates a backup policy belonging to a backup vault @@ -57,7 +57,7 @@ export interface BackupPolicies { vaultName: string, backupPolicyName: string, parameters: BaseBackupPolicyResource, - options?: BackupPoliciesCreateOrUpdateOptionalParams + options?: BackupPoliciesCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a backup policy belonging to a backup vault @@ -70,6 +70,6 @@ export interface BackupPolicies { resourceGroupName: string, vaultName: string, backupPolicyName: string, - options?: BackupPoliciesDeleteOptionalParams + options?: BackupPoliciesDeleteOptionalParams, ): Promise; } diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupVaultOperationResults.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupVaultOperationResults.ts index 450f7392125e..3d9a399d379b 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupVaultOperationResults.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupVaultOperationResults.ts @@ -8,7 +8,7 @@ import { BackupVaultOperationResultsGetOptionalParams, - BackupVaultOperationResultsGetResponse + BackupVaultOperationResultsGetResponse, } from "../models"; /** Interface representing a BackupVaultOperationResults. */ @@ -23,6 +23,6 @@ export interface BackupVaultOperationResults { resourceGroupName: string, vaultName: string, operationId: string, - options?: BackupVaultOperationResultsGetOptionalParams + options?: BackupVaultOperationResultsGetOptionalParams, ): Promise; } diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupVaults.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupVaults.ts index 4350624b3b1b..32f8d3d2e494 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupVaults.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupVaults.ts @@ -22,7 +22,7 @@ import { BackupVaultsUpdateResponse, CheckNameAvailabilityRequest, BackupVaultsCheckNameAvailabilityOptionalParams, - BackupVaultsCheckNameAvailabilityResponse + BackupVaultsCheckNameAvailabilityResponse, } from "../models"; /// @@ -33,7 +33,7 @@ export interface BackupVaults { * @param options The options parameters. */ listInSubscription( - options?: BackupVaultsGetInSubscriptionOptionalParams + options?: BackupVaultsGetInSubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Returns resource collection belonging to a resource group. @@ -42,7 +42,7 @@ export interface BackupVaults { */ listInResourceGroup( resourceGroupName: string, - options?: BackupVaultsGetInResourceGroupOptionalParams + options?: BackupVaultsGetInResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Returns a resource belonging to a resource group. @@ -53,7 +53,7 @@ export interface BackupVaults { get( resourceGroupName: string, vaultName: string, - options?: BackupVaultsGetOptionalParams + options?: BackupVaultsGetOptionalParams, ): Promise; /** * Creates or updates a BackupVault resource belonging to a resource group. @@ -66,7 +66,7 @@ export interface BackupVaults { resourceGroupName: string, vaultName: string, parameters: BackupVaultResource, - options?: BackupVaultsCreateOrUpdateOptionalParams + options?: BackupVaultsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -84,7 +84,7 @@ export interface BackupVaults { resourceGroupName: string, vaultName: string, parameters: BackupVaultResource, - options?: BackupVaultsCreateOrUpdateOptionalParams + options?: BackupVaultsCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a BackupVault resource from the resource group. @@ -95,7 +95,7 @@ export interface BackupVaults { beginDelete( resourceGroupName: string, vaultName: string, - options?: BackupVaultsDeleteOptionalParams + options?: BackupVaultsDeleteOptionalParams, ): Promise, void>>; /** * Deletes a BackupVault resource from the resource group. @@ -106,7 +106,7 @@ export interface BackupVaults { beginDeleteAndWait( resourceGroupName: string, vaultName: string, - options?: BackupVaultsDeleteOptionalParams + options?: BackupVaultsDeleteOptionalParams, ): Promise; /** * Updates a BackupVault resource belonging to a resource group. For example, updating tags for a @@ -120,7 +120,7 @@ export interface BackupVaults { resourceGroupName: string, vaultName: string, parameters: PatchResourceRequestInput, - options?: BackupVaultsUpdateOptionalParams + options?: BackupVaultsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -139,7 +139,7 @@ export interface BackupVaults { resourceGroupName: string, vaultName: string, parameters: PatchResourceRequestInput, - options?: BackupVaultsUpdateOptionalParams + options?: BackupVaultsUpdateOptionalParams, ): Promise; /** * API to check for resource name availability @@ -152,6 +152,6 @@ export interface BackupVaults { resourceGroupName: string, location: string, parameters: CheckNameAvailabilityRequest, - options?: BackupVaultsCheckNameAvailabilityOptionalParams + options?: BackupVaultsCheckNameAvailabilityOptionalParams, ): Promise; } diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/dataProtection.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/dataProtection.ts index 794e3b118b53..6d2c1ba10a77 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/dataProtection.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/dataProtection.ts @@ -9,7 +9,7 @@ import { FeatureValidationRequestBaseUnion, DataProtectionCheckFeatureSupportOptionalParams, - DataProtectionCheckFeatureSupportResponse + DataProtectionCheckFeatureSupportResponse, } from "../models"; /** Interface representing a DataProtection. */ @@ -23,6 +23,6 @@ export interface DataProtection { checkFeatureSupport( location: string, parameters: FeatureValidationRequestBaseUnion, - options?: DataProtectionCheckFeatureSupportOptionalParams + options?: DataProtectionCheckFeatureSupportOptionalParams, ): Promise; } diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/dataProtectionOperations.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/dataProtectionOperations.ts index 39ff1ed85898..442419831d28 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/dataProtectionOperations.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/dataProtectionOperations.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ClientDiscoveryValueForSingleApi, - DataProtectionOperationsListOptionalParams + DataProtectionOperationsListOptionalParams, } from "../models"; /// @@ -20,6 +20,6 @@ export interface DataProtectionOperations { * @param options The options parameters. */ list( - options?: DataProtectionOperationsListOptionalParams + options?: DataProtectionOperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/deletedBackupInstances.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/deletedBackupInstances.ts index 0adc41284ec8..75bd4a978fce 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/deletedBackupInstances.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/deletedBackupInstances.ts @@ -13,7 +13,7 @@ import { DeletedBackupInstancesListOptionalParams, DeletedBackupInstancesGetOptionalParams, DeletedBackupInstancesGetResponse, - DeletedBackupInstancesUndeleteOptionalParams + DeletedBackupInstancesUndeleteOptionalParams, } from "../models"; /// @@ -28,7 +28,7 @@ export interface DeletedBackupInstances { list( resourceGroupName: string, vaultName: string, - options?: DeletedBackupInstancesListOptionalParams + options?: DeletedBackupInstancesListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a deleted backup instance with name in a backup vault @@ -41,7 +41,7 @@ export interface DeletedBackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: DeletedBackupInstancesGetOptionalParams + options?: DeletedBackupInstancesGetOptionalParams, ): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -53,7 +53,7 @@ export interface DeletedBackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: DeletedBackupInstancesUndeleteOptionalParams + options?: DeletedBackupInstancesUndeleteOptionalParams, ): Promise, void>>; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -65,6 +65,6 @@ export interface DeletedBackupInstances { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: DeletedBackupInstancesUndeleteOptionalParams + options?: DeletedBackupInstancesUndeleteOptionalParams, ): Promise; } diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/dppResourceGuardProxy.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/dppResourceGuardProxy.ts index 37f1c88f15ea..c3adcd70e5fa 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/dppResourceGuardProxy.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/dppResourceGuardProxy.ts @@ -17,7 +17,7 @@ import { DppResourceGuardProxyDeleteOptionalParams, UnlockDeleteRequest, DppResourceGuardProxyUnlockDeleteOptionalParams, - DppResourceGuardProxyUnlockDeleteResponse + DppResourceGuardProxyUnlockDeleteResponse, } from "../models"; /// @@ -32,7 +32,7 @@ export interface DppResourceGuardProxy { list( resourceGroupName: string, vaultName: string, - options?: DppResourceGuardProxyListOptionalParams + options?: DppResourceGuardProxyListOptionalParams, ): PagedAsyncIterableIterator; /** * Returns the ResourceGuardProxy object associated with the vault, and that matches the name in the @@ -46,7 +46,7 @@ export interface DppResourceGuardProxy { resourceGroupName: string, vaultName: string, resourceGuardProxyName: string, - options?: DppResourceGuardProxyGetOptionalParams + options?: DppResourceGuardProxyGetOptionalParams, ): Promise; /** * Creates or Updates a ResourceGuardProxy @@ -61,7 +61,7 @@ export interface DppResourceGuardProxy { vaultName: string, resourceGuardProxyName: string, parameters: ResourceGuardProxyBaseResource, - options?: DppResourceGuardProxyCreateOrUpdateOptionalParams + options?: DppResourceGuardProxyCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the ResourceGuardProxy @@ -74,7 +74,7 @@ export interface DppResourceGuardProxy { resourceGroupName: string, vaultName: string, resourceGuardProxyName: string, - options?: DppResourceGuardProxyDeleteOptionalParams + options?: DppResourceGuardProxyDeleteOptionalParams, ): Promise; /** * UnlockDelete call for ResourceGuardProxy, executed before one can delete it @@ -89,6 +89,6 @@ export interface DppResourceGuardProxy { vaultName: string, resourceGuardProxyName: string, parameters: UnlockDeleteRequest, - options?: DppResourceGuardProxyUnlockDeleteOptionalParams + options?: DppResourceGuardProxyUnlockDeleteOptionalParams, ): Promise; } diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/exportJobs.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/exportJobs.ts index 03b8711032da..c35e00fbf786 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/exportJobs.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/exportJobs.ts @@ -9,7 +9,7 @@ import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ExportJobsTriggerOptionalParams, - ExportJobsTriggerResponse + ExportJobsTriggerResponse, } from "../models"; /** Interface representing a ExportJobs. */ @@ -23,7 +23,7 @@ export interface ExportJobs { beginTrigger( resourceGroupName: string, vaultName: string, - options?: ExportJobsTriggerOptionalParams + options?: ExportJobsTriggerOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -39,6 +39,6 @@ export interface ExportJobs { beginTriggerAndWait( resourceGroupName: string, vaultName: string, - options?: ExportJobsTriggerOptionalParams + options?: ExportJobsTriggerOptionalParams, ): Promise; } diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/exportJobsOperationResult.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/exportJobsOperationResult.ts index d27b9e447f8e..c5834e3374b6 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/exportJobsOperationResult.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/exportJobsOperationResult.ts @@ -8,7 +8,7 @@ import { ExportJobsOperationResultGetOptionalParams, - ExportJobsOperationResultGetResponse + ExportJobsOperationResultGetResponse, } from "../models"; /** Interface representing a ExportJobsOperationResult. */ @@ -26,6 +26,6 @@ export interface ExportJobsOperationResult { resourceGroupName: string, vaultName: string, operationId: string, - options?: ExportJobsOperationResultGetOptionalParams + options?: ExportJobsOperationResultGetOptionalParams, ): Promise; } diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/fetchCrossRegionRestoreJob.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/fetchCrossRegionRestoreJob.ts index ab7669c61f1b..18c5d8b70c37 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/fetchCrossRegionRestoreJob.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/fetchCrossRegionRestoreJob.ts @@ -9,7 +9,7 @@ import { CrossRegionRestoreJobRequest, FetchCrossRegionRestoreJobGetOptionalParams, - FetchCrossRegionRestoreJobGetResponse + FetchCrossRegionRestoreJobGetResponse, } from "../models"; /** Interface representing a FetchCrossRegionRestoreJob. */ @@ -25,6 +25,6 @@ export interface FetchCrossRegionRestoreJob { resourceGroupName: string, location: string, parameters: CrossRegionRestoreJobRequest, - options?: FetchCrossRegionRestoreJobGetOptionalParams + options?: FetchCrossRegionRestoreJobGetOptionalParams, ): Promise; } diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/fetchCrossRegionRestoreJobs.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/fetchCrossRegionRestoreJobs.ts index f7c66121d69d..ebe7893ca95d 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/fetchCrossRegionRestoreJobs.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/fetchCrossRegionRestoreJobs.ts @@ -10,7 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AzureBackupJobResource, CrossRegionRestoreJobsRequest, - FetchCrossRegionRestoreJobsListOptionalParams + FetchCrossRegionRestoreJobsListOptionalParams, } from "../models"; /// @@ -27,6 +27,6 @@ export interface FetchCrossRegionRestoreJobs { resourceGroupName: string, location: string, parameters: CrossRegionRestoreJobsRequest, - options?: FetchCrossRegionRestoreJobsListOptionalParams + options?: FetchCrossRegionRestoreJobsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/fetchSecondaryRecoveryPoints.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/fetchSecondaryRecoveryPoints.ts index 4ebe08b4b204..e9cdcf49f271 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/fetchSecondaryRecoveryPoints.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/fetchSecondaryRecoveryPoints.ts @@ -10,7 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AzureBackupRecoveryPointResource, FetchSecondaryRPsRequestParameters, - FetchSecondaryRecoveryPointsListOptionalParams + FetchSecondaryRecoveryPointsListOptionalParams, } from "../models"; /// @@ -28,6 +28,6 @@ export interface FetchSecondaryRecoveryPoints { resourceGroupName: string, location: string, parameters: FetchSecondaryRPsRequestParameters, - options?: FetchSecondaryRecoveryPointsListOptionalParams + options?: FetchSecondaryRecoveryPointsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/jobs.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/jobs.ts index a181f6a84fe3..7ea68a66c4f4 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/jobs.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/jobs.ts @@ -11,7 +11,7 @@ import { AzureBackupJobResource, JobsListOptionalParams, JobsGetOptionalParams, - JobsGetResponse + JobsGetResponse, } from "../models"; /// @@ -26,7 +26,7 @@ export interface Jobs { list( resourceGroupName: string, vaultName: string, - options?: JobsListOptionalParams + options?: JobsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a job with id in a backup vault @@ -40,6 +40,6 @@ export interface Jobs { resourceGroupName: string, vaultName: string, jobId: string, - options?: JobsGetOptionalParams + options?: JobsGetOptionalParams, ): Promise; } diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationResult.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationResult.ts index 7f8ae87eb6d9..c3acd6ab4e09 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationResult.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationResult.ts @@ -8,7 +8,7 @@ import { OperationResultGetOptionalParams, - OperationResultGetResponse + OperationResultGetResponse, } from "../models"; /** Interface representing a OperationResult. */ @@ -22,6 +22,6 @@ export interface OperationResult { get( operationId: string, location: string, - options?: OperationResultGetOptionalParams + options?: OperationResultGetOptionalParams, ): Promise; } diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationStatus.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationStatus.ts index d84afc756527..ecf40013f221 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationStatus.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationStatus.ts @@ -8,7 +8,7 @@ import { OperationStatusGetOptionalParams, - OperationStatusGetResponse + OperationStatusGetResponse, } from "../models"; /** Interface representing a OperationStatus. */ @@ -22,6 +22,6 @@ export interface OperationStatus { get( location: string, operationId: string, - options?: OperationStatusGetOptionalParams + options?: OperationStatusGetOptionalParams, ): Promise; } diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationStatusBackupVaultContext.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationStatusBackupVaultContext.ts index 69e14b376a02..af682fefa6ae 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationStatusBackupVaultContext.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationStatusBackupVaultContext.ts @@ -8,7 +8,7 @@ import { OperationStatusBackupVaultContextGetOptionalParams, - OperationStatusBackupVaultContextGetResponse + OperationStatusBackupVaultContextGetResponse, } from "../models"; /** Interface representing a OperationStatusBackupVaultContext. */ @@ -24,6 +24,6 @@ export interface OperationStatusBackupVaultContext { resourceGroupName: string, vaultName: string, operationId: string, - options?: OperationStatusBackupVaultContextGetOptionalParams + options?: OperationStatusBackupVaultContextGetOptionalParams, ): Promise; } diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationStatusResourceGroupContext.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationStatusResourceGroupContext.ts index 05470ad2385f..e86dc5e2e3e8 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationStatusResourceGroupContext.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationStatusResourceGroupContext.ts @@ -8,7 +8,7 @@ import { OperationStatusResourceGroupContextGetOptionalParams, - OperationStatusResourceGroupContextGetResponse + OperationStatusResourceGroupContextGetResponse, } from "../models"; /** Interface representing a OperationStatusResourceGroupContext. */ @@ -22,6 +22,6 @@ export interface OperationStatusResourceGroupContext { get( resourceGroupName: string, operationId: string, - options?: OperationStatusResourceGroupContextGetOptionalParams + options?: OperationStatusResourceGroupContextGetOptionalParams, ): Promise; } diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/recoveryPoints.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/recoveryPoints.ts index 9da493a7df3e..7a199387eaa0 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/recoveryPoints.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/recoveryPoints.ts @@ -11,7 +11,7 @@ import { AzureBackupRecoveryPointResource, RecoveryPointsListOptionalParams, RecoveryPointsGetOptionalParams, - RecoveryPointsGetResponse + RecoveryPointsGetResponse, } from "../models"; /// @@ -28,7 +28,7 @@ export interface RecoveryPoints { resourceGroupName: string, vaultName: string, backupInstanceName: string, - options?: RecoveryPointsListOptionalParams + options?: RecoveryPointsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a Recovery Point using recoveryPointId for a Datasource. @@ -43,6 +43,6 @@ export interface RecoveryPoints { vaultName: string, backupInstanceName: string, recoveryPointId: string, - options?: RecoveryPointsGetOptionalParams + options?: RecoveryPointsGetOptionalParams, ): Promise; } diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/resourceGuards.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/resourceGuards.ts index 29ad78a020bc..c1f1b48c7c4c 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/resourceGuards.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/resourceGuards.ts @@ -37,7 +37,7 @@ import { ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectOptionalParams, ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectResponse, ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectOptionalParams, - ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectResponse + ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectResponse, } from "../models"; /// @@ -48,7 +48,7 @@ export interface ResourceGuards { * @param options The options parameters. */ listResourcesInSubscription( - options?: ResourceGuardsGetResourcesInSubscriptionOptionalParams + options?: ResourceGuardsGetResourcesInSubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Returns ResourceGuards collection belonging to a ResourceGroup. @@ -57,7 +57,7 @@ export interface ResourceGuards { */ listResourcesInResourceGroup( resourceGroupName: string, - options?: ResourceGuardsGetResourcesInResourceGroupOptionalParams + options?: ResourceGuardsGetResourcesInResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Returns collection of operation request objects for a critical operation protected by the given @@ -69,7 +69,7 @@ export interface ResourceGuards { listDisableSoftDeleteRequestsObjects( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetDisableSoftDeleteRequestsObjectsOptionalParams + options?: ResourceGuardsGetDisableSoftDeleteRequestsObjectsOptionalParams, ): PagedAsyncIterableIterator; /** * Returns collection of operation request objects for a critical operation protected by the given @@ -81,7 +81,7 @@ export interface ResourceGuards { listDeleteResourceGuardProxyRequestsObjects( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsOptionalParams + options?: ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsOptionalParams, ): PagedAsyncIterableIterator; /** * Returns collection of operation request objects for a critical operation protected by the given @@ -93,7 +93,7 @@ export interface ResourceGuards { listBackupSecurityPINRequestsObjects( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetBackupSecurityPINRequestsObjectsOptionalParams + options?: ResourceGuardsGetBackupSecurityPINRequestsObjectsOptionalParams, ): PagedAsyncIterableIterator; /** * Returns collection of operation request objects for a critical operation protected by the given @@ -105,7 +105,7 @@ export interface ResourceGuards { listDeleteProtectedItemRequestsObjects( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetDeleteProtectedItemRequestsObjectsOptionalParams + options?: ResourceGuardsGetDeleteProtectedItemRequestsObjectsOptionalParams, ): PagedAsyncIterableIterator; /** * Returns collection of operation request objects for a critical operation protected by the given @@ -117,7 +117,7 @@ export interface ResourceGuards { listUpdateProtectionPolicyRequestsObjects( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsOptionalParams + options?: ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsOptionalParams, ): PagedAsyncIterableIterator; /** * Returns collection of operation request objects for a critical operation protected by the given @@ -129,7 +129,7 @@ export interface ResourceGuards { listUpdateProtectedItemRequestsObjects( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetUpdateProtectedItemRequestsObjectsOptionalParams + options?: ResourceGuardsGetUpdateProtectedItemRequestsObjectsOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a ResourceGuard resource belonging to a resource group. @@ -142,7 +142,7 @@ export interface ResourceGuards { resourceGroupName: string, resourceGuardsName: string, parameters: ResourceGuardResource, - options?: ResourceGuardsPutOptionalParams + options?: ResourceGuardsPutOptionalParams, ): Promise; /** * Returns a ResourceGuard belonging to a resource group. @@ -153,7 +153,7 @@ export interface ResourceGuards { get( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsGetOptionalParams + options?: ResourceGuardsGetOptionalParams, ): Promise; /** * Deletes a ResourceGuard resource from the resource group. @@ -164,7 +164,7 @@ export interface ResourceGuards { delete( resourceGroupName: string, resourceGuardsName: string, - options?: ResourceGuardsDeleteOptionalParams + options?: ResourceGuardsDeleteOptionalParams, ): Promise; /** * Updates a ResourceGuard resource belonging to a resource group. For example, updating tags for a @@ -178,7 +178,7 @@ export interface ResourceGuards { resourceGroupName: string, resourceGuardsName: string, parameters: PatchResourceGuardInput, - options?: ResourceGuardsPatchOptionalParams + options?: ResourceGuardsPatchOptionalParams, ): Promise; /** * Returns collection of operation request objects for a critical operation protected by the given @@ -192,7 +192,7 @@ export interface ResourceGuards { resourceGroupName: string, resourceGuardsName: string, requestName: string, - options?: ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectOptionalParams + options?: ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectOptionalParams, ): Promise; /** * Returns collection of operation request objects for a critical operation protected by the given @@ -206,10 +206,8 @@ export interface ResourceGuards { resourceGroupName: string, resourceGuardsName: string, requestName: string, - options?: ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectOptionalParams - ): Promise< - ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectResponse - >; + options?: ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectOptionalParams, + ): Promise; /** * Returns collection of operation request objects for a critical operation protected by the given * ResourceGuard resource. @@ -222,7 +220,7 @@ export interface ResourceGuards { resourceGroupName: string, resourceGuardsName: string, requestName: string, - options?: ResourceGuardsGetDefaultBackupSecurityPINRequestsObjectOptionalParams + options?: ResourceGuardsGetDefaultBackupSecurityPINRequestsObjectOptionalParams, ): Promise; /** * Returns collection of operation request objects for a critical operation protected by the given @@ -236,7 +234,7 @@ export interface ResourceGuards { resourceGroupName: string, resourceGuardsName: string, requestName: string, - options?: ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectOptionalParams + options?: ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectOptionalParams, ): Promise; /** * Returns collection of operation request objects for a critical operation protected by the given @@ -250,10 +248,8 @@ export interface ResourceGuards { resourceGroupName: string, resourceGuardsName: string, requestName: string, - options?: ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectOptionalParams - ): Promise< - ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectResponse - >; + options?: ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectOptionalParams, + ): Promise; /** * Returns collection of operation request objects for a critical operation protected by the given * ResourceGuard resource. @@ -266,6 +262,6 @@ export interface ResourceGuards { resourceGroupName: string, resourceGuardsName: string, requestName: string, - options?: ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectOptionalParams + options?: ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectOptionalParams, ): Promise; } diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/restorableTimeRanges.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/restorableTimeRanges.ts index 7b9848001f9b..be1e357061a4 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/restorableTimeRanges.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/restorableTimeRanges.ts @@ -9,7 +9,7 @@ import { AzureBackupFindRestorableTimeRangesRequest, RestorableTimeRangesFindOptionalParams, - RestorableTimeRangesFindResponse + RestorableTimeRangesFindResponse, } from "../models"; /** Interface representing a RestorableTimeRanges. */ @@ -26,6 +26,6 @@ export interface RestorableTimeRanges { vaultName: string, backupInstanceName: string, parameters: AzureBackupFindRestorableTimeRangesRequest, - options?: RestorableTimeRangesFindOptionalParams + options?: RestorableTimeRangesFindOptionalParams, ): Promise; } diff --git a/sdk/dataprotection/arm-dataprotection/src/pagingHelper.ts b/sdk/dataprotection/arm-dataprotection/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/dataprotection/arm-dataprotection/src/pagingHelper.ts +++ b/sdk/dataprotection/arm-dataprotection/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/dataprotection/arm-dataprotection/test/sampleTest.ts b/sdk/dataprotection/arm-dataprotection/test/sampleTest.ts new file mode 100644 index 000000000000..d64be981b694 --- /dev/null +++ b/sdk/dataprotection/arm-dataprotection/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env, +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/dataprotection/arm-dataprotection/tsconfig.json b/sdk/dataprotection/arm-dataprotection/tsconfig.json index 1f65f09046a1..3e6ae96443f3 100644 --- a/sdk/dataprotection/arm-dataprotection/tsconfig.json +++ b/sdk/dataprotection/arm-dataprotection/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-dataprotection": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"